]> git.sur5r.net Git - cc65/blobdiff - src/cc65/global.h
Fixed the cc65 code that handled an addition of a pointer to a 32-bit offset.
[cc65] / src / cc65 / global.h
index f384c3852d2021dce89911a41a3467dcf6a25cef..8b0af5a83729355f2e9520d4368f1d8a4cc734d2 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                global.h                                  */
+/*                                 global.h                                  */
 /*                                                                           */
-/*                Global variables for the cc65 C compiler                  */
+/*                 Global variables for the cc65 C compiler                  */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2015, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
+/* common */
+#include "intstack.h"
+#include "strbuf.h"
+
+
+
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
-/* Supported systems */
-#define TGT_NONE       0
-#define TGT_ATARI      1
-#define TGT_C64                2
-#define TGT_C128       3
-#define TGT_ACE                4
-#define TGT_PLUS4      5
-#define TGT_CBM610     6
-#define TGT_PET                7
-#define TGT_NES                8
-#define TGT_APPLE2     9
-#define TGT_GEOS       10
-#define TGT_COUNT      11
-
+/* Options */
+extern unsigned char    AddSource;              /* Add source lines as comments */
+extern unsigned char    AutoCDecl;              /* Make functions default to __cdecl__ */
+extern unsigned char    DebugInfo;              /* Add debug info to the obj */
+extern unsigned char    PreprocessOnly;         /* Just preprocess the input */
+extern unsigned char    DebugOptOutput;         /* Output debug stuff */
+extern unsigned         RegisterSpace;          /* Space available for register vars */
 
+/* Stackable options */
+extern IntStack         WritableStrings;        /* Literal strings are r/w */
+extern IntStack         LocalStrings;           /* Emit string literals immediately */
+extern IntStack         InlineStdFuncs;         /* Inline some known functions */
+extern IntStack         EnableRegVars;          /* Enable register variables */
+extern IntStack         AllowRegVarAddr;        /* Allow taking addresses of register vars */
+extern IntStack         RegVarsToCallStack;     /* Save reg variables on call stack */
+extern IntStack         StaticLocals;           /* Make local variables static */
+extern IntStack         SignedChars;            /* Make characters signed by default */
+extern IntStack         CheckStack;             /* Generate stack overflow checks */
+extern IntStack         Optimize;               /* Optimize flag */
+extern IntStack         CodeSizeFactor;         /* Size factor for generated code */
+extern IntStack         DataAlignment;          /* Alignment for data */
 
-extern unsigned char   Target;                 /* Target system */
-extern unsigned char   ANSI;                   /* Strict ANSI flag */
-extern unsigned char   WriteableStrings;       /* Literal strings are r/w */
-extern unsigned char   NoWarn;                 /* Suppress warnings */
-extern unsigned char   Optimize;               /* Optimize flag */
-extern unsigned char   FavourSize;             /* Favour size over speed */
-extern unsigned char    InlineStdFuncs;                /* Inline some known functions */
-extern unsigned char   EnableRegVars;          /* Enable register variables */
-extern unsigned char   AllowRegVarAddr;        /* Allow taking addresses of register vars */
-extern unsigned char   RegVarsToCallStack;     /* Save reg variables on call stack */
-extern unsigned char           StaticLocals;           /* Make local variables static */
-extern unsigned char   SignedChars;            /* Make characters signed by default */
-extern unsigned char   Verbose;                /* Verbose flag */
-extern unsigned char   AddSource;              /* Add source lines as comments */
-extern unsigned char   DebugInfo;              /* Add debug info to the obj */
-extern unsigned char   Debug;                  /* Debug mode */
+/* File names */
+extern StrBuf           DepName;                /* Name of dependencies file */
+extern StrBuf           FullDepName;            /* Name of full dependencies file */
+extern StrBuf           DepTarget;              /* Name of dependency target */
 
 
 
 /* End of global.h */
 
 #endif
-
-
-
-