Add toascii() implementation.

svn path=/trunk/yasm/; revision=67
This commit is contained in:
Peter Johnson 2001-06-29 02:11:36 +00:00
parent 8a6e7a9d48
commit bfd5122925
4 changed files with 36 additions and 4 deletions

View file

@ -1,4 +1,4 @@
/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $
/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $
* Defines prototypes for replacement functions if needed.
*
* Copyright (C) 2001 Peter Johnson
@ -26,4 +26,12 @@
char *strdup(const char *str);
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
#ifndef HAVE_TOASCII
# define toascii(c) ((c) & 0x7F)
#endif
#endif

View file

@ -1,4 +1,4 @@
/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $
/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $
* Defines prototypes for replacement functions if needed.
*
* Copyright (C) 2001 Peter Johnson
@ -26,4 +26,12 @@
char *strdup(const char *str);
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
#ifndef HAVE_TOASCII
# define toascii(c) ((c) & 0x7F)
#endif
#endif

View file

@ -1,4 +1,4 @@
/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $
/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $
* Defines prototypes for replacement functions if needed.
*
* Copyright (C) 2001 Peter Johnson
@ -26,4 +26,12 @@
char *strdup(const char *str);
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
#ifndef HAVE_TOASCII
# define toascii(c) ((c) & 0x7F)
#endif
#endif

10
util.h
View file

@ -1,4 +1,4 @@
/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $
/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $
* Defines prototypes for replacement functions if needed.
*
* Copyright (C) 2001 Peter Johnson
@ -26,4 +26,12 @@
char *strdup(const char *str);
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
#ifndef HAVE_TOASCII
# define toascii(c) ((c) & 0x7F)
#endif
#endif