mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 16:50:21 +00:00
Various changes associated with symbol tables. Most from Pelle Windestam
This commit is contained in:
parent
3f78ddb2fa
commit
33121dd0d0
14 changed files with 107 additions and 20 deletions
|
|
@ -66,7 +66,7 @@ namespace std
|
|||
using ::rmdir;
|
||||
using ::getopt;
|
||||
using ::getoptargp;
|
||||
using ::getopindgp;
|
||||
using ::getoptindp;
|
||||
using ::getoptoptp;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,8 @@ typedef void *imaxdiv_t; /* Dummy type since imaxdiv is not yet supported */
|
|||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
|
@ -174,13 +175,13 @@ extern "C" {
|
|||
* macros. Function prototypes shall be provided."
|
||||
*/
|
||||
|
||||
EXTERN intmax_t imaxabs(intmax_t);
|
||||
EXTERN imaxdiv_t imaxdiv(intmax_t, intmax_t);
|
||||
EXTERN intmax_t strtoimax(const char *, char **, int);
|
||||
EXTERN uintmax_t strtoumax(const char *, char **, int);
|
||||
intmax_t imaxabs(intmax_t);
|
||||
imaxdiv_t imaxdiv(intmax_t, intmax_t);
|
||||
intmax_t strtoimax(const char *, char **, int);
|
||||
uintmax_t strtoumax(const char *, char **, int);
|
||||
|
||||
EXTERN intmax_t wcstoimax(const wchar_t *, wchar_t **, int);
|
||||
EXTERN uintmax_t wcstoumax(const wchar_t *, wchar_t **, int);
|
||||
intmax_t wcstoimax(const wchar_t *, wchar_t **, int);
|
||||
uintmax_t wcstoumax(const wchar_t *, wchar_t **, int);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -150,6 +150,14 @@ double round (double x);
|
|||
long double roundl(long double x);
|
||||
#endif
|
||||
|
||||
float rintf(float x); /* Not implemented */
|
||||
#if CONFIG_HAVE_DOUBLE
|
||||
double_t rint(double_t x);
|
||||
#endif
|
||||
#ifdef CONFIG_HAVE_LONG_DOUBLE
|
||||
long double rintl(long double x); /* Not implemented */
|
||||
#endif
|
||||
|
||||
float fabsf (float x);
|
||||
#if CONFIG_HAVE_DOUBLE
|
||||
double fabs (double x);
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ EXTERN int optind; /* Index into argv */
|
|||
EXTERN int optopt; /* unrecognized option character */
|
||||
#else
|
||||
# define optarg (*(getoptargp()))
|
||||
# define optind (*(getopindgp()))
|
||||
# define optind (*(getoptindp()))
|
||||
# define optopt (*(getoptoptp()))
|
||||
#endif
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ int getopt(int argc, FAR char *const argv[], FAR const char *optstring);
|
|||
*/
|
||||
|
||||
FAR char **getoptargp(void); /* Optional argument following option */
|
||||
int *getopindgp(void); /* Index into argv */
|
||||
int *getoptindp(void); /* Index into argv */
|
||||
int *getoptoptp(void); /* unrecognized option character */
|
||||
|
||||
#undef EXTERN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue