]> granicus.if.org Git - yasm/commitdiff
Add toascii() implementation.
authorPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 02:11:36 +0000 (02:11 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 02:11:36 +0000 (02:11 -0000)
svn path=/trunk/yasm/; revision=67

include/util.h
libyasm/util.h
src/util.h
util.h

index 448e7c14975744c4dc49b4728c6065444e987692..dd5392a5f1635762ef123ec8808931097e459428 100644 (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
 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
index 448e7c14975744c4dc49b4728c6065444e987692..dd5392a5f1635762ef123ec8808931097e459428 100644 (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
 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
index 448e7c14975744c4dc49b4728c6065444e987692..dd5392a5f1635762ef123ec8808931097e459428 100644 (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
 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
diff --git a/util.h b/util.h
index 448e7c14975744c4dc49b4728c6065444e987692..dd5392a5f1635762ef123ec8808931097e459428 100644 (file)
--- a/util.h
+++ b/util.h
@@ -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
 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