]> git.sur5r.net Git - cc65/blobdiff - src/common/chartype.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / chartype.h
index 72ccf7560890bc0ca4e6c4c0560a668e7279f3e1..5278dbc59e7b361855f9067d00df4ad15781207a 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                               chartype.h                                 */
+/*                                chartype.h                                 */
 /*                                                                           */
-/*                   Character classification functions                     */
+/*                    Character classification functions                     */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 2000-2004 Ullrich von Bassewitz                                       */
+/*               Roemerstrasse 52                                            */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /* This module contains replacements for functions in ctype.h besides other
- * functions. There is a problem with using ctype.h directly:
- * The parameter must have a value of "unsigned char" or EOF.
- * So on platforms where a char is signed, this may give problems or at
- * least warnings. The wrapper functions below will have an "char" parameter
- * but handle it correctly. They will NOT work for EOF, but this is not a
- * problem, since EOF is always handled separately.
- */
+** functions. There is a problem with using ctype.h directly:
+** The parameter must have a value of "unsigned char" or EOF.
+** So on platforms where a char is signed, this may give problems or at
+** least warnings. The wrapper functions below will have an "char" parameter
+** but handle it correctly. They will NOT work for EOF, but this is not a
+** problem, since EOF is always handled separately.
+*/
 
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -80,7 +80,7 @@ INLINE int IsControl (char C)
     return iscntrl ((unsigned char) C);
 }
 #else
-#  define IsControl(C)                 iscntrl (C)
+#  define IsControl(C)          iscntrl (C)
 #endif
 
 int IsSpace (char C);
@@ -98,6 +98,9 @@ int IsUpper (char C);
 int IsBDigit (char C);
 /* Check for binary digits (0/1) */
 
+int IsODigit (char C);
+/* Check for octal digits (0..7) */
+
 int IsXDigit (char C);
 /* Check for hexadecimal digits */
 
@@ -109,6 +112,3 @@ int IsQuote (char C);
 /* End of chartype.h */
 
 #endif
-
-
-