|
Packit |
992a25 |
/***********************************************************************
|
|
Packit |
992a25 |
* *
|
|
Packit |
992a25 |
* This software is part of the ast package *
|
|
Packit |
992a25 |
* Copyright (c) 1985-2011 AT&T Intellectual Property *
|
|
Packit |
992a25 |
* and is licensed under the *
|
|
Packit |
992a25 |
* Eclipse Public License, Version 1.0 *
|
|
Packit |
992a25 |
* by AT&T Intellectual Property *
|
|
Packit |
992a25 |
* *
|
|
Packit |
992a25 |
* A copy of the License is available at *
|
|
Packit |
992a25 |
* http://www.eclipse.org/org/documents/epl-v10.html *
|
|
Packit |
992a25 |
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
|
|
Packit |
992a25 |
* *
|
|
Packit |
992a25 |
* Information and Software Systems Research *
|
|
Packit |
992a25 |
* AT&T Research *
|
|
Packit |
992a25 |
* Florham Park NJ *
|
|
Packit |
992a25 |
* *
|
|
Packit |
992a25 |
* Glenn Fowler <gsf@research.att.com> *
|
|
Packit |
992a25 |
* David Korn <dgk@research.att.com> *
|
|
Packit |
992a25 |
* Phong Vo <kpv@research.att.com> *
|
|
Packit |
992a25 |
* *
|
|
Packit |
992a25 |
***********************************************************************/
|
|
Packit |
992a25 |
#pragma prototyped
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
/*
|
|
Packit |
992a25 |
* transient code to aid transition between releases
|
|
Packit |
992a25 |
*/
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#include <ast.h>
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#if defined(__EXPORT__)
|
|
Packit |
992a25 |
#define extern __EXPORT__
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#define STUB 1
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
/*
|
|
Packit |
992a25 |
* 2006-09-28
|
|
Packit |
992a25 |
*
|
|
Packit |
992a25 |
* on some systems the _std_strtol iffe changed (due to a faulty
|
|
Packit |
992a25 |
* test prototype) and the cause programs dynamically linked to
|
|
Packit |
992a25 |
* an updated -last to fail at runtime with missing _ast_strtol etc.
|
|
Packit |
992a25 |
*/
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#if !_std_strtol
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#ifndef strtol
|
|
Packit |
992a25 |
#undef STUB
|
|
Packit |
992a25 |
extern long
|
|
Packit |
992a25 |
_ast_strtol(const char* a, char** b, int c)
|
|
Packit |
992a25 |
{
|
|
Packit |
992a25 |
return strtol(a, b, c);
|
|
Packit |
992a25 |
}
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#ifndef strtoul
|
|
Packit |
992a25 |
#undef STUB
|
|
Packit |
992a25 |
extern unsigned long
|
|
Packit |
992a25 |
_ast_strtoul(const char* a, char** b, int c)
|
|
Packit |
992a25 |
{
|
|
Packit |
992a25 |
return strtoul(a, b, c);
|
|
Packit |
992a25 |
}
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#ifndef strtoll
|
|
Packit |
992a25 |
#undef STUB
|
|
Packit |
992a25 |
extern intmax_t
|
|
Packit |
992a25 |
_ast_strtoll(const char* a, char** b, int c)
|
|
Packit |
992a25 |
{
|
|
Packit |
992a25 |
return strtoll(a, b, c);
|
|
Packit |
992a25 |
}
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#ifndef strtoull
|
|
Packit |
992a25 |
#undef STUB
|
|
Packit |
992a25 |
extern uintmax_t
|
|
Packit |
992a25 |
_ast_strtoull(const char* a, char** b, int c)
|
|
Packit |
992a25 |
{
|
|
Packit |
992a25 |
return strtoull(a, b, c);
|
|
Packit |
992a25 |
}
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#endif
|
|
Packit |
992a25 |
|
|
Packit |
992a25 |
#if STUB
|
|
Packit |
992a25 |
NoN(transition)
|
|
Packit |
992a25 |
#endif
|