]> git.sur5r.net Git - cc65/blob - src/ca65/global.c
Added new emulation feature: loose_char_term
[cc65] / src / ca65 / global.c
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 global.c                                  */
4 /*                                                                           */
5 /*               Global variables for the ca65 macroassembler                */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 1998-2000 Ullrich von Bassewitz                                       */
10 /*               Wacholderweg 14                                             */
11 /*               D-70597 Stuttgart                                           */
12 /* EMail:        uz@musoftware.de                                            */
13 /*                                                                           */
14 /*                                                                           */
15 /* This software is provided 'as-is', without any expressed or implied       */
16 /* warranty.  In no event will the authors be held liable for any damages    */
17 /* arising from the use of this software.                                    */
18 /*                                                                           */
19 /* Permission is granted to anyone to use this software for any purpose,     */
20 /* including commercial applications, and to alter it and redistribute it    */
21 /* freely, subject to the following restrictions:                            */
22 /*                                                                           */
23 /* 1. The origin of this software must not be misrepresented; you must not   */
24 /*    claim that you wrote the original software. If you use this software   */
25 /*    in a product, an acknowledgment in the product documentation would be  */
26 /*    appreciated but is not required.                                       */
27 /* 2. Altered source versions must be plainly marked as such, and must not   */
28 /*    be misrepresented as being the original software.                      */
29 /* 3. This notice may not be removed or altered from any source              */
30 /*    distribution.                                                          */
31 /*                                                                           */
32 /*****************************************************************************/
33
34
35
36 #include "global.h"
37
38
39
40 /*****************************************************************************/
41 /*                                   Data                                    */
42 /*****************************************************************************/
43
44
45
46 /* File names */
47 const char* InFile            = 0;      /* Name of input file */
48 const char* OutFile           = 0;      /* Name of output file */
49 const char* ListFile          = 0;      /* Name of listing file */
50
51 /* Default extensions */
52 const char ObjExt[]           = ".o";   /* Default object extension */
53 const char ListExt[]          = ".lst"; /* Default listing extension */
54
55 char LocalStart               = '@';    /* This char starts local symbols */
56
57 unsigned char IgnoreCase      = 0;      /* Ignore case on identifiers? */
58 unsigned char AutoImport      = 0;      /* Mark unresolveds as import */
59 unsigned char Verbose         = 0;      /* Verbose operation flag */
60 unsigned char SmartMode       = 0;      /* Smart mode */
61 unsigned char DbgSyms         = 0;      /* Add debug symbols */
62 unsigned char Listing         = 0;      /* Create listing file */
63 unsigned char LineCont        = 0;      /* Allow line continuation */
64
65 /* Emulation features */
66 unsigned char DollarIsPC      = 0;      /* Allow the $ symbol as current PC */
67 unsigned char NoColonLabels   = 0;      /* Allow labels without a colon */
68 unsigned char LooseStringTerm = 0;      /* Allow ' as string terminator */
69 unsigned char LooseCharTerm   = 0;      /* Allow " for char constants */
70 unsigned char AtInIdents      = 0;      /* Allow '@' in identifiers */
71 unsigned char DollarInIdents  = 0;      /* Allow '$' in identifiers */
72 unsigned char PCAssignment    = 0;      /* Allow "* = $XXX" or "$ = $XXX" */
73
74
75