]> git.sur5r.net Git - cc65/blobdiff - src/common/optdefs.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / optdefs.h
index b256147e9ff79b16568cac2f3751304ae3b707eb..fae517667d7f9e7a1648560118dd0d9fa9c767e7 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                        optdefs.h                                 */
+/*                                 optdefs.h                                 */
 /*                                                                           */
-/*                   Definitions for object file options                    */
+/*                    Definitions for object file options                    */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 /* Type of options */
-#define OPT_ARGMASK    0xC0            /* Mask for argument */
-#define OPT_ARGSTR     0x00            /* String argument */
-#define OPT_ARGNUM     0x40            /* Numerical argument */
+#define OPT_ARGMASK     0xC0            /* Mask for argument */
+#define OPT_ARGSTR      0x00            /* String argument */
+#define OPT_ARGNUM      0x40            /* Numerical argument */
 
-#define OPT_COMMENT    (OPT_ARGSTR+0)  /* Generic comment */
-#define OPT_AUTHOR     (OPT_ARGSTR+1)  /* Author specification */
-#define OPT_TRANSLATOR (OPT_ARGSTR+2)  /* Translator specification */
-#define OPT_COMPILER   (OPT_ARGSTR+3)  /* Compiler specification */
-#define OPT_OS         (OPT_ARGSTR+4)  /* Operating system specification */
+#define OPT_COMMENT     (OPT_ARGSTR+0)  /* Generic comment */
+#define OPT_AUTHOR      (OPT_ARGSTR+1)  /* Author specification */
+#define OPT_TRANSLATOR  (OPT_ARGSTR+2)  /* Translator specification */
+#define OPT_COMPILER    (OPT_ARGSTR+3)  /* Compiler specification */
+#define OPT_OS          (OPT_ARGSTR+4)  /* Operating system specification */
 
-#define        OPT_DATETIME    (OPT_ARGNUM+0)  /* Date/time of translation */
+#define OPT_DATETIME    (OPT_ARGNUM+0)  /* Date/time of translation */
 
 
 
 /* Structure to encode options */
-typedef struct Option_ Option;
-struct Option_ {
-    Option*            Next;           /* For list of options */
-    unsigned char      Type;           /* Type of option */
-    union {
-       const char*     Str;            /* String attribute */
-       unsigned long   Val;            /* Value attribute */
-    } V;
+typedef struct Option Option;
+struct Option {
+    Option*             Next;           /* For list of options */
+    unsigned char       Type;           /* Type of option */
+    unsigned long       Val;            /* Value attribute or string index */
 };
 
 
@@ -75,6 +72,3 @@ struct Option_ {
 /* End of optdefs.h */
 
 #endif
-
-
-