@@ -288,34 +288,21 @@ extern int errno;
288
288
void * malloc (size_t );
289
289
void * realloc (void * , size_t );
290
290
void free (void * );
291
- int isdigit (int );
292
- int isspace (int );
293
- int tolower (int );
294
- int isupper (int );
295
- int isxdigit (int );
296
- int isalnum (int );
297
291
void * memcpy (void * , const void * , size_t );
298
292
void * memset (void * , int , size_t );
299
293
void * memchr (const void * , int , size_t );
300
294
int memcmp (const void * , const void * , size_t );
301
295
void * memmove (void * , const void * , size_t );
302
- int strcmp (const char * , const char * );
303
- int strncmp (const char * , const char * , size_t );
304
296
char * strcpy (char * , const char * );
305
297
char * strncpy (char * , const char * , size_t );
306
- size_t strlen (const char * );
307
298
char * strcat (char * , const char * );
308
299
char * strchr (const char * , int );
309
300
int strcasecmp (const char * , const char * );
310
301
int strncasecmp (const char * , const char * , size_t );
311
302
char * strncpy (char * , const char * , size_t );
312
- int strncmp (const char * , const char * , size_t );
313
- char * strrchr (const char * , int );
314
303
unsigned long strtoul (const char * , char * * , int );
315
304
long strtol (const char * , char * * , int );
316
305
char * strerror (int );
317
- size_t strspn (const char * , const char * );
318
- size_t strcspn (const char * , const char * );
319
306
int printf (const char * , ...);
320
307
int sscanf (const char * , const char * , ...);
321
308
int open (const char * , int , ...);
@@ -351,7 +338,6 @@ gid_t getegid (void);
351
338
void qsort (void * , size_t , size_t , int (* )(const void * , const void * ));
352
339
char * getenv (const char * );
353
340
void exit (int );
354
- void abort (void );
355
341
__sighandler_t * signal (int , __sighandler_t * );
356
342
357
343
//
@@ -361,7 +347,7 @@ extern FILE *stderr;
361
347
extern FILE * stdin ;
362
348
extern FILE * stdout ;
363
349
364
- #define AsciiStrLen (x ) strlena (x)
350
+ #define AsciiStrLen (x ) strlen (x)
365
351
#define AsciiStrnCmp (s1 , s2 , len ) strncmpa((CHAR8 *)s1, (CHAR8 *)s2, len)
366
352
367
353
//
@@ -372,17 +358,10 @@ extern FILE *stdout;
372
358
#define memchr (buf ,ch ,count ) ScanMem8((CHAR8 *)buf,(UINTN)(count),ch)
373
359
#define memcmp (buf1 ,buf2 ,count ) (int)(CompareMem(buf1,buf2,(UINTN)(count)))
374
360
#define memmove (dest ,source ,count ) CopyMem(dest,source,(UINTN)(count))
375
- #define strlen (str ) (size_t)(AsciiStrLen((CHAR8 *)str))
376
- #define strcpy (strDest ,strSource ) AsciiStrCpy((CHAR8 *)strDest,(const CHAR8 *)strSource)
377
- #define strncpy (strDest ,strSource ,count ) AsciiStrnCpy((CHAR8 *)strDest,(const CHAR8 *)strSource,(UINTN)count)
378
- #define strcat (strDest ,strSource ) AsciiStrCat((CHAR8 *)strDest,(const CHAR8 *)strSource)
379
- #define strchr (str ,ch ) (char *)(ScanMem8((CHAR8 *)str,AsciiStrSize((CHAR8 *)str),ch))
380
- #define strncmp (string1 ,string2 ,count ) (int)(AsciiStrnCmp((const CHAR8 *)string1, (const CHAR8 *)string2,(UINTN)(count)))
381
361
#define localtime (timer ) NULL
382
362
#define assert (expression )
383
363
#define atoi (nptr ) AsciiStrDecimalToUintn((const CHAR8 *)nptr)
384
364
#define gettimeofday (tvp ,tz ) do { (tvp)->tv_sec = time(NULL); (tvp)->tv_usec = 0; } while (0)
385
365
#define gmtime_r (timer ,result ) (result = NULL)
386
- #define abort ()
387
366
388
367
#endif
0 commit comments