1 /***********************************************************************
2 * *
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2011 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Eclipse Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
8 * *
9 * A copy of the License is available at *
10 * http://www.eclipse.org/org/documents/epl-v10.html *
11 * (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12 * *
13 * Information and Software Systems Research *
14 * AT&T Research *
15 * Florham Park NJ *
16 * *
17 * Glenn Fowler <glenn.s.fowler@gmail.com> *
18 * David Korn <dgkorn@gmail.com> *
19 * Phong Vo <phongvo@gmail.com> *
20 * *
21 ***********************************************************************/
22 #pragma prototyped
23
24 /*
25 * transient code to aid transition between releases
26 */
27
28 #include <ast.h>
29
30 #if defined(__EXPORT__)
31 #define extern __EXPORT__
32 #endif
33
34 #define STUB 1
35
36 /*
37 * 2006-09-28
38 *
39 * on some systems the _std_strtol iffe changed (due to a faulty
40 * test prototype) and the cause programs dynamically linked to
41 * an updated -last to fail at runtime with missing _ast_strtol etc.
42 */
43
44 #if !_std_strtol
45
46 #ifndef strtol
47 #undef STUB
48 extern long
_ast_strtol(const char * a,char ** b,int c)49 _ast_strtol(const char* a, char** b, int c)
50 {
51 return strtol(a, b, c);
52 }
53 #endif
54
55 #ifndef strtoul
56 #undef STUB
57 extern unsigned long
_ast_strtoul(const char * a,char ** b,int c)58 _ast_strtoul(const char* a, char** b, int c)
59 {
60 return strtoul(a, b, c);
61 }
62 #endif
63
64 #ifndef strtoll
65 #undef STUB
66 extern intmax_t
_ast_strtoll(const char * a,char ** b,int c)67 _ast_strtoll(const char* a, char** b, int c)
68 {
69 return strtoll(a, b, c);
70 }
71 #endif
72
73 #ifndef strtoull
74 #undef STUB
75 extern uintmax_t
_ast_strtoull(const char * a,char ** b,int c)76 _ast_strtoull(const char* a, char** b, int c)
77 {
78 return strtoull(a, b, c);
79 }
80 #endif
81
82 #endif
83
84 #if STUB
85 NoN(transition)
86 #endif
87