]> git.sur5r.net Git - cc65/commitdiff
Changed most "backticks" (grave accents) into apostrophes.
authorGreg King <gregdk@users.sf.net>
Sat, 5 Jan 2019 19:57:12 +0000 (14:57 -0500)
committerGreg King <gregdk@users.sf.net>
Sat, 5 Jan 2019 19:57:12 +0000 (14:57 -0500)
Quotations that are embraced by tick marks now look better, in most fonts.

109 files changed:
doc/Makefile
doc/ar65.sgml
doc/atari.sgml
doc/ca65.sgml
doc/cl65.sgml
doc/geos.sgml
doc/ld65.sgml
doc/sim65.sgml
libsrc/Makefile
libsrc/lynx/lynx-snd.s
samples/Makefile
src/Makefile
src/ar65/exports.c
src/ar65/library.c
src/ar65/objdata.c
src/ar65/objfile.c
src/ca65/dbginfo.c
src/ca65/ea65.c
src/ca65/enum.c
src/ca65/expr.c
src/ca65/filetab.c
src/ca65/listing.c
src/ca65/macro.c
src/ca65/main.c
src/ca65/nexttok.c
src/ca65/objfile.c
src/ca65/pseudo.c
src/ca65/scanner.c
src/ca65/segment.c
src/ca65/struct.c
src/ca65/studyexpr.c
src/ca65/symbol.c
src/ca65/symentry.c
src/ca65/symtab.c
src/cc65/asmstmt.c
src/cc65/codeinfo.c
src/cc65/codeopt.c
src/cc65/codeseg.c
src/cc65/compile.c
src/cc65/declare.c
src/cc65/declattr.c
src/cc65/expr.c
src/cc65/function.c
src/cc65/hexval.c
src/cc65/input.c
src/cc65/locals.c
src/cc65/macrotab.c
src/cc65/main.c
src/cc65/output.c
src/cc65/pragma.c
src/cc65/preproc.c
src/cc65/scanner.c
src/cc65/scanstrbuf.c
src/cc65/stmt.c
src/cc65/swstmt.c
src/cc65/symtab.c
src/cc65/typeconv.c
src/chrcvt65/main.c
src/cl65/main.c
src/cl65/spawn-unix.inc
src/co65/convert.c
src/co65/main.c
src/co65/o65.c
src/common/check.c
src/common/cmdline.c
src/da65/asminc.c
src/da65/code.c
src/da65/main.c
src/da65/output.c
src/da65/scanner.c
src/dbginfo/dbginfo.c
src/grc65/main.c
src/ld65/asserts.c
src/ld65/bin.c
src/ld65/config.c
src/ld65/dbgfile.c
src/ld65/exports.c
src/ld65/expr.c
src/ld65/extsyms.c
src/ld65/library.c
src/ld65/lineinfo.c
src/ld65/main.c
src/ld65/mapfile.c
src/ld65/o65.c
src/ld65/objdata.c
src/ld65/objfile.c
src/ld65/scanner.c
src/ld65/scopes.c
src/ld65/segments.c
src/od65/main.c
src/sim65/main.c
src/sp65/asm.c
src/sp65/attr.c
src/sp65/bin.c
src/sp65/c.c
src/sp65/convert.c
src/sp65/input.c
src/sp65/lynxsprite.c
src/sp65/main.c
src/sp65/output.c
src/sp65/pcx.c
src/sp65/vic2sprite.c
test/misc/goto.ref
test/ref/cc65090124.c
test/ref/cc65091022.c
test/ref/cc65101102.c
test/ref/cc65110210.c
test/ref/paranoia.c
test/val/compare1.c

index 33b5c26865ac2476ca2c8ff339192a309f53caa0..bb8f551ad22f82ac5e27c7be826bb8ffcf7bfc55 100644 (file)
@@ -46,7 +46,7 @@ clean:
        $(RM) -r ../html ../info
 
 install:
-       $(if $(PREFIX),,$(error variable `PREFIX' must be set))
+       $(if $(PREFIX),,$(error variable "PREFIX" must be set))
 ifeq ($(wildcard ../html),../html)
        $(INSTALL) -d $(DESTDIR)$(htmldir)
        $(INSTALL) -m0644 ../html/*.* $(DESTDIR)$(htmldir)
index d5e91a3a3d22158623581b0deb75d69e6cee7281..df4154539544fd4b5e25295349afc3c6beda813b 100644 (file)
@@ -40,7 +40,7 @@ The archiver is called as follows:
                V       Print the archiver version
 </verb></tscreen>
 
-You may add modules to a library using the `r' command (`a' is deprecated). If the library
+You may add modules to a library using the <tt/'r'/ command ('a' is deprecated). If the library
 does not exist, it is created (and a warning message is printed which you
 may ignore if creation of the library was your intention). You may
 specify any number of modules on the command line following the library.
@@ -55,7 +55,7 @@ Here's an example:
        ar65 r mysubs.lib sub1.o sub2.o
 </verb></tscreen>
 
-This will add two modules to the library `mysubs.lib' creating the
+This will add two modules to the library 'mysubs.lib' creating the
 library if necessary. If the library contains modules named sub1.o or
 sub2.o, they are replaced by the new ones.
 
@@ -65,9 +65,9 @@ Modules names in the library are stored without the path, so, using
        ar65 v v r mysubs.lib ofiles/sub1.o ofiles/sub2.o
 </verb></tscreen>
 
-will verbose add two modules named `sub1.o' and `sub2.o' to the library.
+will verbose add two modules named 'sub1.o' and 'sub2.o' to the library.
 
-Deleting modules from a library is done with the `d' command. You may not
+Deleting modules from a library is done with the <tt/'d'/ command. You may not
 give a path when naming the modules.
 
 Example:
@@ -76,11 +76,11 @@ Example:
        ar65 d mysubs.lib sub1.o
 </verb></tscreen>
 
-This will delete the module named `sub1.o' from the library, printing an
+This will delete the module named 'sub1.o' from the library, printing an
 error if the library does not contain that module.
 
 
-The `t' command prints a table of all modules in the library (`l' is deprecated).
+The <tt/'t'/ command prints a table of all modules in the library ('l' is deprecated).
 Any module names on the command line are ignored.
 
 Example:
@@ -90,7 +90,7 @@ Example:
 </verb></tscreen>
 
 
-Using the `x' command, you may extract modules from the library. The
+Using the <tt/'x'/ command, you may extract modules from the library. The
 modules named on the command line are extracted from the library and put
 into the current directory.
 
@@ -107,7 +107,7 @@ Example for extracting a module from the library:
 </verb></tscreen>
 
 
-The `V' command prints the version number of the assembler. If you send
+The <tt/'V'/ command prints the version number of the assembler. If you send
 any suggestions or bugfixes, please include your version number.
 
 In addition to these operations, the archiver will check for, and warn
index 2531c8d03540e9c5fd4227bbbcc8c4942c6d1d54..80293d82f6df41b40310e686cedf45187c1caabb 100644 (file)
@@ -1082,7 +1082,7 @@ If you are using a customized linker config file you might get some errors
 regarding the MAINHDR segment. Like this:
 
 <tscreen><verb>
-ld65: Error: Missing memory area assignment for segment `MAINHDR'
+ld65: Error: Missing memory area assignment for segment 'MAINHDR'
 </verb></tscreen>
 
 The old "HEADER" memory description contained six bytes: &dollar;FFFF
index 52e9634aeb44b408f2a571c772804c71ce5b1546..1f8f2f0d3a6dcb1bdce0e41cf81a8d0ed2b2c7c4 100644 (file)
@@ -2730,7 +2730,7 @@ Here's a list of all control commands and a description, what they do:
 
   <tag><tt>at_in_identifiers</tt><label id="at_in_identifiers"></tag>
 
-    Accept the at character (`@') as a valid character in identifiers. The
+    Accept the at character ('@') as a valid character in identifiers. The
     at character is not allowed to start an identifier, even with this
     feature enabled.
 
@@ -2765,13 +2765,13 @@ Here's a list of all control commands and a description, what they do:
 
   <tag><tt>dollar_in_identifiers</tt><label id="dollar_in_identifiers"></tag>
 
-    Accept the dollar sign (`&dollar;') as a valid character in identifiers. The
+    Accept the dollar sign ('&dollar;') as a valid character in identifiers. The
     dollar character is not allowed to start an identifier, even with this
     feature enabled.
 
   <tag><tt>dollar_is_pc</tt><label id="dollar_is_pc"></tag>
 
-    The dollar sign may be used as an alias for the star (`*'), which
+    The dollar sign may be used as an alias for the star ('*'), which
     gives the value of the current PC in expressions.
     Note: Assignment to the pseudo variable is not allowed.
 
@@ -2789,7 +2789,7 @@ Here's a list of all control commands and a description, what they do:
 
   <tag><tt>leading_dot_in_identifiers</tt><label id="leading_dot_in_identifiers"></tag>
 
-    Accept the dot (`.') as the first character of an identifier. This may be
+    Accept the dot ('.') as the first character of an identifier. This may be
     used for example to create macro names that start with a dot emulating
     control directives of other assemblers. Note however, that none of the
     reserved keywords built into the assembler, that starts with a dot, may be
@@ -2825,7 +2825,7 @@ Here's a list of all control commands and a description, what they do:
 
   <tag><tt>pc_assignment</tt><label id="pc_assignment"></tag>
 
-    Allow assignments to the PC symbol (`*' or `&dollar;' if <tt/dollar_is_pc/
+    Allow assignments to the PC symbol ('*' or '&dollar;' if <tt/dollar_is_pc/
     is enabled). Such an assignment is handled identical to the <tt><ref
     id=".ORG" name=".ORG"></tt> command (which is usually not needed, so just
     removing the lines with the assignments may also be an option when porting
@@ -3799,7 +3799,7 @@ Here's a list of all control commands and a description, what they do:
   page and direct (short) addressing is possible for data in this segment.
 
   Beware: Only labels in a segment with the zeropage attribute are marked
-  as reachable by short addressing. The `*' (PC counter) operator will
+  as reachable by short addressing. The '*' (PC counter) operator will
   work as in other segments and will create absolute variable values.
 
   Please note that a segment cannot have two different address sizes. A
index ef7309eecc3e46adcc8602d6a918bc4bdfbed77f..c6761ed9e14b01a13aa336f103e5ccb2695dadba 100644 (file)
@@ -44,7 +44,7 @@ Short options:
   -o name                       Name the output file
   -r                            Enable register variables
   -t sys                        Set the target system
-  -u sym                        Force an import of symbol `sym'
+  -u sym                        Force an import of symbol 'sym'
   -v                            Verbose mode
   -vm                           Verbose map file
   -C name                       Use linker config file
@@ -90,7 +90,7 @@ Long options:
   --debug                       Debug mode
   --debug-info                  Add debug info
   --feature name                Set an emulation feature
-  --force-import sym            Force an import of symbol `sym'
+  --force-import sym            Force an import of symbol 'sym'
   --help                        Help (this text)
   --include-dir dir             Set a compiler include directory path
   --ld-args options             Pass options to the linker
index 08e642c24f902f5891cce4ead6ea4936cefc6e42..eb8d749392817baf4f294c3fa9f9c3c3495904fc 100644 (file)
@@ -1561,7 +1561,7 @@ char text = "foo";
        DB_VARSTR (TXT_LN_X, TXT_LN_1_Y, &amp;r15),
        ...
 </verb></tscreen>
-will cause the word ``foo'' to appear in the window, but you may store the pointer to any text in
+will cause the word ''foo'' to appear in the window, but you may store the pointer to any text in
 <tt/r15/ (in this case) before the call to DoDlgBox.
 <p>
 <tt/DB_GETSTR(x, y, ptr, length)/ - will add a input-from-keyboard feature. <tt/ptr/ works as in the
index 9cbb5aad8d19b9431499223c349fc79972a8c60c..beb2144bfa728e21023763b4a84e26db20a0fe04 100644 (file)
@@ -66,7 +66,7 @@ Short options:
   -m name               Create a map file
   -o name               Name the default output file
   -t sys                Set the target system
-  -u sym                Force an import of symbol `sym'
+  -u sym                Force an import of symbol 'sym'
   -v                    Verbose mode
   -vm                   Verbose map file
 
@@ -76,7 +76,7 @@ Long options:
   --dbgfile name        Generate debug information
   --define sym=val      Define a symbol
   --end-group           End a library group
-  --force-import sym    Force an import of symbol `sym'
+  --force-import sym    Force an import of symbol 'sym'
   --help                Help (this text)
   --lib file            Link this library
   --lib-path path       Specify a library search path
@@ -487,7 +487,7 @@ There are of course more attributes for a memory section than just start and
 size. Start and size are mandatory attributes, that means, each memory area
 defined <em/must/ have these attributes given (the linker will check that). I
 will cover other attributes later. As you may have noticed, I've used a
-comment in the example above. Comments start with a hash mark (`#'), the
+comment in the example above. Comments start with a hash mark ('#'), the
 remainder of the line is ignored if this character is found.
 
 
@@ -572,7 +572,7 @@ default behaviour is OK for our purposes, I did not use the attribute in the
 example above. Let's have a look at it now.
 
 The "file" attribute (the keyword may also be written as "FILE" if you like
-that better) takes a string enclosed in double quotes (`&dquot;') that specifies the
+that better) takes a string enclosed in double quotes ('&dquot;') that specifies the
 file, where the data is written. You may specify the same file several times,
 in that case the data for all memory areas having this file name is written
 into this file, in the order of the memory areas defined in the <tt/MEMORY/
index 14741dd31e0f2fe76317ed11634a6d4e22edd5df..286c46c56453b025ef1fb3eb415c0b45304810b0 100644 (file)
@@ -89,7 +89,7 @@ Example output for the command
 sim65 --verbose --verbose samples/gunzip65
 </verb></tscreen>
 <tscreen><verb>
-Loaded `samples/gunzip65' at $0200-$151F
+Loaded 'samples/gunzip65' at $0200-$151F
 PVWrite ($0001, $13C9, $000F)
 GZIP file name:PVWrite ($0001, $151F, $0001)
 
index 0d0cd320b4247bd491f2e2e30d0784b04c8d6ff4..0ebec46b159a9d41d2990b33be6bed56552ee880 100644 (file)
@@ -93,7 +93,7 @@ INSTALL = install
 
 define INSTALL_recipe
 
-$(if $(PREFIX),,$(error variable `PREFIX' must be set))
+$(if $(PREFIX),,$(error variable "PREFIX" must be set))
 $(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
 $(INSTALL) -m0644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
 
index 9d0b8b7af0e973db879092ebf3928279c9f1040c..82b05276fc158379530ac11091c99633ad8cb92a 100644 (file)
@@ -1062,7 +1062,7 @@ SndSetValues:
                 ldx #4-1
 set0:                ldy SndOffsets,x
                   lda SndChannel+2,y
-                  _IFNE                        ; flag == 0 => don`t set
+                  _IFNE                        ; flag == 0 => don't set
 
             bit #$80
                     _IFNE                       ;
index 601d19d76c484e293e40071e9d4b26f617dce514..74094aeae8909f15a298996723bcfce4c4268f2b 100644 (file)
@@ -296,7 +296,7 @@ INSTALL = install
 samplesdir = $(PREFIX)/share/cc65/samples
 
 install:
-       $(if $(PREFIX),,$(error variable `PREFIX' must be set))
+       $(if $(PREFIX),,$(error variable "PREFIX" must be set))
        $(INSTALL) -d $(DESTDIR)$(samplesdir)
        $(INSTALL) -d $(DESTDIR)$(samplesdir)/geos
        $(INSTALL) -d $(DESTDIR)$(samplesdir)/tutorial
index c1f11ff5898e3aa08eb2e8c5dd0d02e80aea5a1d..c93a8645f7df477804ecae22d17f784435926542 100644 (file)
@@ -107,7 +107,7 @@ $(RM) /usr/local/bin/$(prog)
 endef # UNAVAIL_recipe
 
 install:
-       $(if $(PREFIX),,$(error variable `PREFIX' must be set))
+       $(if $(PREFIX),,$(error variable "PREFIX" must be set))
        $(INSTALL) -d $(DESTDIR)$(bindir)
        $(INSTALL) ../bin/* $(DESTDIR)$(bindir)
 
index b3bb4cebea5791c78d9f4bacf010ffb8899a1be9..b1e133e72d38354bb41aa543317d8213d20d3850 100644 (file)
@@ -113,8 +113,8 @@ void ExpInsert (const char* Name, const ObjData* Module)
     while (1) {
         if (strcmp (L->Name, Name) == 0) {
             /* Duplicate entry */
-            Warning ("External symbol `%s' in module `%s', library `%s', "
-                     "is duplicated in module `%s'",
+            Warning ("External symbol '%s' in module '%s', library '%s', "
+                     "is duplicated in module '%s'",
                      Name, L->Module->Name, LibName, Module->Name);
         }
         if (L->Next == 0) {
index c72e6e3cf3cad9761a9f21c2e433c07248d38bc3..4d18168d809ed5dd275c5eafb73f4c1e06ae9f9e 100644 (file)
@@ -95,11 +95,11 @@ static void ReadHeader (void)
     /* Read the header fields, checking magic and version */
     Header.Magic   = Read32 (Lib);
     if (Header.Magic != LIB_MAGIC) {
-        Error ("`%s' is not a valid library file", LibName);
+        Error ("'%s' is not a valid library file", LibName);
     }
     Header.Version = Read16 (Lib);
     if (Header.Version != LIB_VERSION) {
-        Error ("Wrong data version in `%s'", LibName);
+        Error ("Wrong data version in '%s'", LibName);
     }
     Header.Flags   = Read16 (Lib);
     Header.IndexOffs = Read32 (Lib);
@@ -229,11 +229,11 @@ void LibOpen (const char* Name, int MustExist, int NeedTemp)
 
         /* File does not exist */
         if (MustExist) {
-            Error ("Library `%s' does not exist", Name);
+            Error ("Library '%s' does not exist", Name);
         } else {
             /* Announce the library's creation if ar65 is verbose. */
             Print (stdout, 1,
-                   "%s: Library `%s' will be created.\n", ProgName, Name);
+                   "%s: Library '%s' will be created.\n", ProgName, Name);
         }
 
     } else {
@@ -317,7 +317,7 @@ static void LibCheckExports (ObjData* O)
     unsigned I;
 
     /* Let the user know what we do */
-    Print (stdout, 2, "Module `%s' (%u exports):\n", O->Name, CollCount (&O->Exports));
+    Print (stdout, 2, "Module '%s' (%u exports):\n", O->Name, CollCount (&O->Exports));
 
     /* Insert the exports into the global table */
     for (I = 0; I < CollCount (&O->Exports); ++I) {
@@ -381,7 +381,7 @@ void LibClose (void)
         /* Reopen the library and truncate it */
         Lib = fopen (LibName, "wb");
         if (Lib == 0) {
-            Error ("Cannot open library `%s' for writing: %s",
+            Error ("Cannot open library '%s' for writing: %s",
                    LibName, strerror (errno));
         }
 
@@ -389,14 +389,14 @@ void LibClose (void)
         fseek (NewLib, 0, SEEK_SET);
         while ((Count = fread (Buf, 1, sizeof (Buf), NewLib)) != 0) {
             if (fwrite (Buf, 1, Count, Lib) != Count) {
-                Error ("Cannot write to `%s': %s", LibName, strerror (errno));
+                Error ("Cannot write to '%s': %s", LibName, strerror (errno));
             }
         }
     }
 
     /* Close both files */
     if (Lib && fclose (Lib) != 0) {
-        Error ("Problem closing `%s': %s", LibName, strerror (errno));
+        Error ("Problem closing '%s': %s", LibName, strerror (errno));
     }
     if (NewLib && fclose (NewLib) != 0) {
         Error ("Problem closing temporary library file: %s", strerror (errno));
index 5a8f0c5fb1bf8ab9e157d84b0abf892b2da6683b..252ebe6ab33223a6acd40d48033f1bb5d60c8f5e 100644 (file)
@@ -165,5 +165,5 @@ void DelObjData (const char* Module)
     }
 
     /* Not found! */
-    Warning ("Module `%s' not found in library `%s'", Module, LibName);
+    Warning ("Module '%s' not found in library '%s'", Module, LibName);
 }
index 0434f7e59fcc388a95d716cd7471bff798bfa821..ac7dccb0d9a9d85c755ace5f11a32d2ff280edc1 100644 (file)
@@ -68,7 +68,7 @@ static const char* GetModule (const char* Name)
 
     /* Must not end with a path separator */
     if (*Module == 0) {
-        Error ("Cannot make module name from `%s'", Name);
+        Error ("Cannot make module name from '%s'", Name);
     }
 
     /* Done */
@@ -82,11 +82,11 @@ static void ObjReadHeader (FILE* Obj, ObjHeader* H, const char* Name)
 {
     H->Magic      = Read32 (Obj);
     if (H->Magic != OBJ_MAGIC) {
-        Error ("`%s' is not an object file", Name);
+        Error ("'%s' is not an object file", Name);
     }
     H->Version    = Read16 (Obj);
     if (H->Version != OBJ_VERSION) {
-        Error ("Object file `%s' has wrong version", Name);
+        Error ("Object file '%s' has wrong version", Name);
     }
     H->Flags        = Read16 (Obj);
     H->OptionOffs   = Read32 (Obj);
@@ -236,7 +236,7 @@ void ObjAdd (const char* Name)
     /* Open the object file */
     FILE* Obj = fopen (Name, "rb");
     if (Obj == 0) {
-        Error ("Could not open `%s': %s", Name, strerror (errno));
+        Error ("Could not open '%s': %s", Name, strerror (errno));
     }
 
     /* Get the modification time of the object file. There's a race condition
@@ -248,7 +248,7 @@ void ObjAdd (const char* Name)
     ** here.
     */
     if (FileStat (Name, &StatBuf) != 0) {
-        Error ("Cannot stat object file `%s': %s", Name, strerror (errno));
+        Error ("Cannot stat object file '%s': %s", Name, strerror (errno));
     }
 
     /* Read and check the header */
@@ -267,7 +267,7 @@ void ObjAdd (const char* Name)
         ** and the external one.
         */
         if (difftime ((time_t)O->MTime, StatBuf.st_mtime) > 0.0) {
-            Warning ("Replacing module `%s' by older version in library `%s'",
+            Warning ("Replacing module '%s' by older version in library '%s'",
                      O->Name, LibName);
         }
 
@@ -313,13 +313,13 @@ void ObjExtract (const char* Name)
 
     /* Bail out if the module does not exist */
     if (O == 0) {
-        Error ("Module `%s' not found in library `%s'", Module, LibName);
+        Error ("Module '%s' not found in library '%s'", Module, LibName);
     }
 
     /* Open the output file */
     Obj = fopen (Name, "w+b");
     if (Obj == 0) {
-        Error ("Cannot open target file `%s': %s", Name, strerror (errno));
+        Error ("Cannot open target file '%s': %s", Name, strerror (errno));
     }
 
     /* Copy the complete object file data from the library to the new object
@@ -329,11 +329,11 @@ void ObjExtract (const char* Name)
 
     /* Close the file */
     if (fclose (Obj) != 0) {
-        Error ("Problem closing object file `%s': %s", Name, strerror (errno));
+        Error ("Problem closing object file '%s': %s", Name, strerror (errno));
     }
 
     /* Set access and modification time */
     if (SetFileTimes (Name, O->MTime) != 0) {
-        Error ("Cannot set mod time on `%s': %s", Name, strerror (errno));
+        Error ("Cannot set mod time on '%s': %s", Name, strerror (errno));
     }
 }
index 135739fb5213abc80ceffa343ea51827ba695d3d..c9dd7ab6d14bfeee540be8d80e3b3e0785a57b60 100644 (file)
@@ -468,7 +468,7 @@ void DbgInfoCheck (void)
         /* Search for the symbol name */
         S->Sym = SymFindAny (S->Scope, GetStrBuf (S->AsmName));
         if (S->Sym == 0) {
-            PError (&S->Pos, "Assembler symbol `%s' not found",
+            PError (&S->Pos, "Assembler symbol '%s' not found",
                     GetString (S->AsmName));
         } else {
             /* Set the backlink */
index 2f7c2bfa9c51895910ae8c69a62086e5986fcda3..275d90b563ff15f9729ec0a3f20157a8d255eeb6 100644 (file)
@@ -133,7 +133,7 @@ void GetEA (EffAddr* A)
                 A->AddrModeSet = AM65_STACK_REL_IND_Y;
                 Consume (IndirectLeave, IndirectExpect);
                 ConsumeComma ();
-                Consume (TOK_Y, "`Y' expected");
+                Consume (TOK_Y, "'Y' expected");
             } else {
                 Error ("Syntax error");
             }
@@ -152,7 +152,7 @@ void GetEA (EffAddr* A)
                     A->AddrModeSet = AM65_DIR_IND;
                     break;
                 default:
-                    Consume (TOK_Y, "`Y' expected");
+                    Consume (TOK_Y, "'Y' expected");
                     A->AddrModeSet = AM65_DIR_IND_Y;
                     break;
                 }
@@ -173,7 +173,7 @@ void GetEA (EffAddr* A)
         if (CurTok.Tok == TOK_COMMA) {
             /* [dir],y */
             NextTok ();
-            Consume (TOK_Y, "`Y' expected");
+            Consume (TOK_Y, "'Y' expected");
             A->AddrModeSet = AM65_DIR_IND_LONG_Y;
         } else {
             /* [dir] */
index f0561b6922c5b2249292e2381b55ffd7ade97b44..339b3230f3bf2fd674eb7c42b347976b586e7c53 100644 (file)
@@ -146,7 +146,7 @@ void DoEnum (void)
     }
 
     /* End of enum definition */
-    Consume (TOK_ENDENUM, "`.ENDENUM' expected");
+    Consume (TOK_ENDENUM, "'.ENDENUM' expected");
 
     /* Free the base expression */
     FreeExpr (BaseExpr);
index ff4232c0050b42b8e0d0ed3a3bf0e49d3f1f2bab..982bb05c65dce6856408428b038afe56ca1c6960 100644 (file)
@@ -699,7 +699,7 @@ static ExprNode* FuncAddrSize (void)
         /* Cheap local symbol */
         Sym = SymFindLocal (SymLast, &CurTok.SVal, SYM_FIND_EXISTING);
         if (Sym == 0) {
-            Error ("Unknown symbol or scope: `%m%p'", &CurTok.SVal);
+            Error ("Unknown symbol or scope: '%m%p'", &CurTok.SVal);
         } else {
             AddrSize = Sym->AddrSize;
         }
@@ -739,13 +739,13 @@ static ExprNode* FuncAddrSize (void)
         if (Sym) {
             AddrSize = Sym->AddrSize;
         } else {
-            Error ("Unknown symbol or scope: `%m%p%m%p'", &ScopeName, &Name);
+            Error ("Unknown symbol or scope: '%m%p%m%p'", &ScopeName, &Name);
         }
 
     }
 
     if (AddrSize == 0) {
-        Warning (1, "Unknown address size: `%m%p%m%p'", &ScopeName, &Name);
+        Warning (1, "Unknown address size: '%m%p%m%p'", &ScopeName, &Name);
     }
 
     /* Free the string buffers */
@@ -780,7 +780,7 @@ static ExprNode* FuncSizeOf (void)
         /* Cheap local symbol */
         Sym = SymFindLocal (SymLast, &CurTok.SVal, SYM_FIND_EXISTING);
         if (Sym == 0) {
-            Error ("Unknown symbol or scope: `%m%p'", &CurTok.SVal);
+            Error ("Unknown symbol or scope: '%m%p'", &CurTok.SVal);
         } else {
             SizeSym = GetSizeOfSymbol (Sym);
         }
@@ -832,7 +832,7 @@ static ExprNode* FuncSizeOf (void)
             if (Sym) {
                 SizeSym = GetSizeOfSymbol (Sym);
             } else {
-                Error ("Unknown symbol or scope: `%m%p%m%p'",
+                Error ("Unknown symbol or scope: '%m%p%m%p'",
                        &ScopeName, &Name);
             }
         }
@@ -840,7 +840,7 @@ static ExprNode* FuncSizeOf (void)
 
     /* Check if we have a size */
     if (SizeSym == 0 || !SymIsConst (SizeSym, &Size)) {
-        Error ("Size of `%m%p%m%p' is unknown", &ScopeName, &Name);
+        Error ("Size of '%m%p%m%p' is unknown", &ScopeName, &Name);
         Size = 0;
     }
 
index ce4b15c034e352f0c8b536d5af368f9cc7dd84eb..4ca32631e5147352cbed272c1315c3a0a9a9281e 100644 (file)
@@ -211,7 +211,7 @@ unsigned GetFileIndex (const StrBuf* Name)
 
     /* If we don't have this index, print a diagnostic and use the main file */
     if (F == 0) {
-        Error ("File name `%m%p' not found in file table", Name);
+        Error ("File name '%m%p' not found in file table", Name);
         return 0;
     } else {
         return F->Index;
@@ -316,7 +316,7 @@ static void CreateDepFile (const char* Name, FileType Types)
     /* Open the file */
     FILE* F = fopen (Name, "w");
     if (F == 0) {
-        Fatal ("Cannot open dependency file `%s': %s", Name, strerror (errno));
+        Fatal ("Cannot open dependency file '%s': %s", Name, strerror (errno));
     }
 
     /* Print the output file followed by a tab char */
index b3f3d9282324579cebbf2c7ec92740f440182e4c..9f23966120dfad45ece844a5312485e2069df1fa 100644 (file)
@@ -304,7 +304,7 @@ void CreateListing (void)
     /* Open the real listing file */
     F = fopen (SB_GetConstBuf (&ListingName), "w");
     if (F == 0) {
-        Fatal ("Cannot open listing file `%s': %s",
+        Fatal ("Cannot open listing file '%s': %s",
                SB_GetConstBuf (&ListingName),
                strerror (errno));
     }
index 1f6812ce03c5a29df32b52ec8a8cbc3c4cea2ac8..9884939761c31405216e365b610213430a93cb2e 100644 (file)
@@ -375,7 +375,7 @@ static void MacSkipDef (unsigned Style)
         if (CurTok.Tok != TOK_EOF) {
             SkipUntilSep ();
         } else {
-            Error ("`.ENDMACRO' expected");
+            Error ("'.ENDMACRO' expected");
         }
     } else {
         /* Skip until end of line */
@@ -409,7 +409,7 @@ void MacDef (unsigned Style)
     /* Did we already define that macro? */
     if (HT_Find (&MacroTab, &CurTok.SVal) != 0) {
         /* Macro is already defined */
-        Error ("A macro named `%m%p' is already defined", &CurTok.SVal);
+        Error ("A macro named '%m%p' is already defined", &CurTok.SVal);
         /* Skip tokens until we reach the final .endmacro */
         MacSkipDef (Style);
         return;
@@ -451,7 +451,7 @@ void MacDef (unsigned Style)
                 IdDesc* List = M->Params;
                 while (1) {
                     if (SB_Compare (&List->Id, &CurTok.SVal) == 0) {
-                        Error ("Duplicate symbol `%m%p'", &CurTok.SVal);
+                        Error ("Duplicate symbol '%m%p'", &CurTok.SVal);
                     }
                     if (List->Next == 0) {
                         break;
@@ -500,7 +500,7 @@ void MacDef (unsigned Style)
             }
             /* May not have end of file in a macro definition */
             if (CurTok.Tok == TOK_EOF) {
-                Error ("`.ENDMACRO' expected");
+                Error ("'.ENDMACRO' expected");
                 goto Done;
             }
         } else {
@@ -930,7 +930,7 @@ static void StartExpDefine (MacExp* E)
             if (CurTok.Tok == TOK_COMMA) {
                 NextTok ();
             } else {
-                Error ("`,' expected");
+                Error ("',' expected");
             }
         }
     }
index fbca2beacf7dd9f47f9b2009659c3b6960bb87fc..33e0a74b56d96ccad57a0ce3c8ea75f2b736e92a 100644 (file)
@@ -168,7 +168,7 @@ static void NewSymbol (const char* SymName, long Val)
 
     /* Check if have already a symbol with this name */
     if (SymIsDef (Sym)) {
-        AbEnd ("`%s' is already defined", SymName);
+        AbEnd ("'%s' is already defined", SymName);
     }
 
     /* Generate an expression for the symbol */
@@ -201,7 +201,7 @@ static void SetSys (const char* Sys)
             break;
 
         case TGT_MODULE:
-            AbEnd ("Cannot use `module' as a target for the assembler");
+            AbEnd ("Cannot use 'module' as a target for the assembler");
             break;
 
         case TGT_ATARI2600:
@@ -331,7 +331,7 @@ static void SetSys (const char* Sys)
             break;
 
         default:
-            AbEnd ("Invalid target name: `%s'", Sys);
+            AbEnd ("Invalid target name: '%s'", Sys);
 
     }
 
@@ -346,7 +346,7 @@ static void FileNameOption (const char* Opt, const char* Arg, StrBuf* Name)
 {
     /* Cannot have the option twice */
     if (SB_NotEmpty (Name)) {
-        AbEnd ("Cannot use option `%s' twice", Opt);
+        AbEnd ("Cannot use option '%s' twice", Opt);
     }
     /* Remember the file name for later */
     SB_CopyStr (Name, Arg);
@@ -427,7 +427,7 @@ static void OptCPU (const char* Opt attribute ((unused)), const char* Arg)
 {
     cpu_t CPU = FindCPU (Arg);
     if (CPU == CPU_UNKNOWN) {
-        AbEnd ("Invalid CPU: `%s'", Arg);
+        AbEnd ("Invalid CPU: '%s'", Arg);
     } else {
         SetCPU (CPU);
     }
@@ -478,7 +478,7 @@ static void OptFeature (const char* Opt attribute ((unused)), const char* Arg)
 
     /* Set the feature, check for errors */
     if (SetFeature (SB_InitFromString (&Feature, Arg)) == FEAT_UNKNOWN) {
-        AbEnd ("Illegal emulation feature: `%s'", Arg);
+        AbEnd ("Illegal emulation feature: '%s'", Arg);
     }
 }
 
@@ -533,7 +533,7 @@ static void OptListBytes (const char* Opt, const char* Arg)
 
     /* Check the bounds */
     if (Num != 0 && (Num < MIN_LIST_BYTES || Num > MAX_LIST_BYTES)) {
-        AbEnd ("Argument for option `%s' is out of range", Opt);
+        AbEnd ("Argument for option '%s' is out of range", Opt);
     }
 
     /* Use the value */
@@ -549,7 +549,7 @@ static void OptListing (const char* Opt, const char* Arg)
     ** the filename is empty or begins with the option char.
     */
     if (Arg == 0 || *Arg == '\0' || *Arg == '-') {
-        Fatal ("The meaning of `%s' has changed. It does now "
+        Fatal ("The meaning of '%s' has changed. It does now "
                "expect a file name as argument.", Opt);
     }
 
@@ -566,7 +566,7 @@ static void OptMemoryModel (const char* Opt, const char* Arg)
 
     /* Check the current memory model */
     if (MemoryModel != MMODEL_UNKNOWN) {
-        AbEnd ("Cannot use option `%s' twice", Opt);
+        AbEnd ("Cannot use option '%s' twice", Opt);
     }
 
     /* Translate the memory model name and check it */
@@ -762,7 +762,7 @@ static void OneLine (void)
             */
             if (CurTok.Tok != TOK_COLON) {
                 if (HadWS || !NoColonLabels) {
-                    Error ("`:' expected");
+                    Error ("':' expected");
                     /* Try some smart error recovery */
                     if (CurTok.Tok == TOK_NAMESPACE) {
                         NextTok ();
@@ -807,7 +807,7 @@ static void OneLine (void)
     } else if (PCAssignment && (CurTok.Tok == TOK_STAR || CurTok.Tok == TOK_PC)) {
         NextTok ();
         if (CurTok.Tok != TOK_EQ) {
-            Error ("`=' expected");
+            Error ("'=' expected");
             SkipUntilSep ();
         } else {
             /* Skip the equal sign */
@@ -1040,7 +1040,7 @@ int main (int argc, char* argv [])
         } else {
             /* Filename. Check if we already had one */
             if (InFile) {
-                fprintf (stderr, "%s: Don't know what to do with `%s'\n",
+                fprintf (stderr, "%s: Don't know what to do with '%s'\n",
                          ProgName, Arg);
                 exit (EXIT_FAILURE);
             } else {
index 1521ed0c25b4e094d1c511e34a3058872d5da3c8..54733740e89e552353b852d0a1d09b06aa6916d9 100644 (file)
@@ -179,7 +179,7 @@ static void FuncConcat (void)
     ** by the string token just created.
     */
     if (CurTok.Tok != TOK_RPAREN) {
-        Error ("`)' expected");
+        Error ("')' expected");
     } else {
         CurTok.Tok = TOK_STRCON;
         SB_Copy (&CurTok.SVal, &Buf);
@@ -253,7 +253,7 @@ static void FuncIdent (void)
     SB_Copy (&Buf, &CurTok.SVal);
     NextTok ();
     if (CurTok.Tok != TOK_RPAREN) {
-        Error ("`)' expected");
+        Error ("')' expected");
     } else {
         CurTok.Tok = Id;
         SB_Copy (&CurTok.SVal, &Buf);
@@ -600,7 +600,7 @@ static void FuncSPrintF (void)
     ** by the string token just created.
     */
     if (CurTok.Tok != TOK_RPAREN) {
-        Error ("`)' expected");
+        Error ("')' expected");
     } else {
         CurTok.Tok = TOK_STRCON;
         SB_Copy (&CurTok.SVal, &R);
@@ -660,7 +660,7 @@ static void FuncString (void)
     ** by the string token just created.
     */
     if (CurTok.Tok != TOK_RPAREN) {
-        Error ("`)' expected");
+        Error ("')' expected");
     } else {
         CurTok.Tok = TOK_STRCON;
         SB_Copy (&CurTok.SVal, &Buf);
@@ -754,7 +754,7 @@ void ConsumeSep (void)
 void ConsumeLParen (void)
 /* Consume a left paren */
 {
-    Consume (TOK_LPAREN, "`(' expected");
+    Consume (TOK_LPAREN, "'(' expected");
 }
 
 
@@ -762,7 +762,7 @@ void ConsumeLParen (void)
 void ConsumeRParen (void)
 /* Consume a right paren */
 {
-    Consume (TOK_RPAREN, "`)' expected");
+    Consume (TOK_RPAREN, "')' expected");
 }
 
 
@@ -770,7 +770,7 @@ void ConsumeRParen (void)
 void ConsumeComma (void)
 /* Consume a comma */
 {
-    Consume (TOK_COMMA, "`,' expected");
+    Consume (TOK_COMMA, "',' expected");
 }
 
 
index dfa0d146eef4e29f67df0f11ac5245b12d38070c..b475d15dfcd33ceabe5f8ed86cd8f490364fd2cb 100644 (file)
@@ -113,7 +113,7 @@ static void ObjWriteError (void)
     remove (OutFile);
 
     /* Now abort with a fatal error */
-    Fatal ("Cannot write to output file `%s': %s", OutFile, strerror (Error));
+    Fatal ("Cannot write to output file '%s': %s", OutFile, strerror (Error));
 }
 
 
@@ -170,7 +170,7 @@ void ObjOpen (void)
     /* Create the output file */
     F = fopen (OutFile, "w+b");
     if (F == 0) {
-        Fatal ("Cannot open output file `%s': %s", OutFile, strerror (errno));
+        Fatal ("Cannot open output file '%s': %s", OutFile, strerror (errno));
     }
 
     /* Write a dummy header */
index a1115606b9682bc8d727ff8eebc1e07a8d697b46..a0eb286993088f0a8e4c1963e50ebe74e414f2c0 100644 (file)
@@ -167,13 +167,13 @@ static void SetBoolOption (unsigned char* Flag)
         switch (GetSubKey (Keys, sizeof (Keys) / sizeof (Keys [0]))) {
             case 0:     *Flag = 0; NextTok ();                  break;
             case 1:     *Flag = 1; NextTok ();                  break;
-            default:    ErrorSkip ("`on' or `off' expected");   break;
+            default:    ErrorSkip ("'on' or 'off' expected");   break;
         }
     } else if (TokIsSep (CurTok.Tok)) {
         /* Without anything assume switch on */
         *Flag = 1;
     } else {
-        ErrorSkip ("`on' or `off' expected");
+        ErrorSkip ("'on' or 'off' expected");
     }
 }
 
@@ -1017,7 +1017,7 @@ static void DoFeature (void)
         /* Set the feature and check for errors */
         if (SetFeature (&CurTok.SVal) == FEAT_UNKNOWN) {
             /* Not found */
-            ErrorSkip ("Invalid feature: `%m%p'", &CurTok.SVal);
+            ErrorSkip ("Invalid feature: '%m%p'", &CurTok.SVal);
             return;
         } else {
             /* Skip the keyword */
@@ -1242,7 +1242,7 @@ static void DoIncBin (void)
         char* PathName = SearchFile (BinSearchPath, SB_GetConstBuf (&Name));
         if (PathName == 0 || (F = fopen (PathName, "rb")) == 0) {
             /* Not found or cannot open, print an error and bail out */
-            ErrorSkip ("Cannot open include file `%m%p': %s", &Name, strerror (errno));
+            ErrorSkip ("Cannot open include file '%m%p': %s", &Name, strerror (errno));
             xfree (PathName);
             goto ExitPoint;
         }
@@ -1268,7 +1268,7 @@ static void DoIncBin (void)
     */
     SB_Terminate (&Name);
     if (FileStat (SB_GetConstBuf (&Name), &StatBuf) != 0) {
-        Fatal ("Cannot stat input file `%m%p': %s", &Name, strerror (errno));
+        Fatal ("Cannot stat input file '%m%p': %s", &Name, strerror (errno));
     }
 
     /* Add the file to the input file table */
@@ -1305,7 +1305,7 @@ static void DoIncBin (void)
         size_t BytesRead = fread (Buf, 1, BytesToRead, F);
         if (BytesToRead != BytesRead) {
             /* Some sort of error */
-            ErrorSkip ("Cannot read from include file `%m%p': %s",
+            ErrorSkip ("Cannot read from include file '%m%p': %s",
                        &Name, strerror (errno));
             break;
         }
@@ -1896,7 +1896,7 @@ static void DoUnDef (void)
 static void DoUnexpected (void)
 /* Got an unexpected keyword */
 {
-    Error ("Unexpected `%m%p'", &Keyword);
+    Error ("Unexpected '%m%p'", &Keyword);
     SkipUntilSep ();
 }
 
index 7c291666c47ede9a8cc202f58636cae5d75e5dfc..39911b478eff202e1026a470495a56b2d6420a6d 100644 (file)
@@ -501,7 +501,7 @@ int NewInputFile (const char* Name)
         /* Main file */
         F = fopen (Name, "r");
         if (F == 0) {
-            Fatal ("Cannot open input file `%s': %s", Name, strerror (errno));
+            Fatal ("Cannot open input file '%s': %s", Name, strerror (errno));
         }
     } else {
         /* We are on include level. Search for the file in the include
@@ -510,7 +510,7 @@ int NewInputFile (const char* Name)
         PathName = SearchFile (IncSearchPath, Name);
         if (PathName == 0 || (F = fopen (PathName, "r")) == 0) {
             /* Not found or cannot open, print an error and bail out */
-            Error ("Cannot open include file `%s': %s", Name, strerror (errno));
+            Error ("Cannot open include file '%s': %s", Name, strerror (errno));
             goto ExitPoint;
         }
 
@@ -527,7 +527,7 @@ int NewInputFile (const char* Name)
     ** here.
     */
     if (FileStat (Name, &Buf) != 0) {
-        Fatal ("Cannot stat input file `%s': %s", Name, strerror (errno));
+        Fatal ("Cannot stat input file '%s': %s", Name, strerror (errno));
     }
 
     /* Add the file to the input file table and remember the index */
@@ -1054,7 +1054,7 @@ Again:
                 /* Not found */
                 if (!LeadingDotInIdents) {
                     /* Invalid pseudo instruction */
-                    Error ("`%m%p' is not a recognized control command", &CurTok.SVal);
+                    Error ("'%m%p' is not a recognized control command", &CurTok.SVal);
                     goto Again;
                 }
 
index 35a41ffe100c0ef444b72c93e070cf04335cec96..aa9a4851233e58ef3c2370787c45bb956d35a437 100644 (file)
@@ -134,7 +134,7 @@ static Segment* NewSegment (const char* Name, unsigned char AddrSize)
 
     /* Check the segment name for invalid names */
     if (!ValidSegName (Name)) {
-        Error ("Illegal segment name: `%s'", Name);
+        Error ("Illegal segment name: '%s'", Name);
     }
 
     /* Create a new segment and return it */
index 195f29ba49ba845b41fe7ce4590093837f2565c4..5ea7a18ec3b60e73d9f0140caa2231c15e3ba72e 100644 (file)
@@ -261,9 +261,9 @@ static long DoStructInternal (long Offs, unsigned Type)
 
     /* End of struct/union definition */
     if (Type == STRUCT) {
-        Consume (TOK_ENDSTRUCT, "`.ENDSTRUCT' expected");
+        Consume (TOK_ENDSTRUCT, "'.ENDSTRUCT' expected");
     } else {
-        Consume (TOK_ENDUNION, "`.ENDUNION' expected");
+        Consume (TOK_ENDUNION, "'.ENDUNION' expected");
     }
 
     /* Return the size of the struct */
index 366b50ff1ffcd55f314dc89524ed310875b5a9b6..90d2d6e1826dc22277fac14a21b7344557c7bf29 100644 (file)
@@ -524,7 +524,7 @@ static void StudySymbol (ExprNode* Expr, ExprDesc* D)
 
         if (SymHasUserMark (Sym)) {
             LIError (&Sym->DefLines,
-                     "Circular reference in definition of symbol `%m%p'",
+                     "Circular reference in definition of symbol '%m%p'",
                      GetSymName (Sym));
             ED_SetError (D);
         } else {
index 0b02aab4568e798495d8c99079dfc521ca9fe50a..3b06fd1a2bdac3910bdbcd5ce7108da06176851a 100644 (file)
@@ -95,7 +95,7 @@ SymTable* ParseScopedIdent (StrBuf* Name, StrBuf* FullName)
         if (Scope == 0) {
             /* Scope not found */
             SB_Terminate (FullName);
-            Error ("No such scope: `%m%p'", FullName);
+            Error ("No such scope: '%m%p'", FullName);
             return 0;
         }
 
@@ -139,7 +139,7 @@ SymTable* ParseScopedIdent (StrBuf* Name, StrBuf* FullName)
         Scope = SymFindScope (Scope, Name, SYM_FIND_EXISTING);
         if (Scope == 0) {
             /* Scope not found */
-            Error ("No such scope: `%m%p'", FullName);
+            Error ("No such scope: '%m%p'", FullName);
             return 0;
         }
 
index 06c537cf694decd9309c41311f55852d13800d4e..cf789da5ed6c5a4297af6347fbc28d2896f13d89 100644 (file)
@@ -213,24 +213,24 @@ void SymDef (SymEntry* S, ExprNode* Expr, unsigned char AddrSize, unsigned Flags
 {
     if (S->Flags & SF_IMPORT) {
         /* Defined symbol is marked as imported external symbol */
-        Error ("Symbol `%m%p' is already an import", GetSymName (S));
+        Error ("Symbol '%m%p' is already an import", GetSymName (S));
         return;
     }
     if ((Flags & SF_VAR) != 0 && (S->Flags & (SF_EXPORT | SF_GLOBAL))) {
         /* Variable symbols cannot be exports or globals */
-        Error ("Var symbol `%m%p' cannot be an export or global symbol", GetSymName (S));
+        Error ("Var symbol '%m%p' cannot be an export or global symbol", GetSymName (S));
         return;
     }
     if (S->Flags & SF_DEFINED) {
         /* Multiple definition. In case of a variable, this is legal. */
         if ((S->Flags & SF_VAR) == 0) {
-            Error ("Symbol `%m%p' is already defined", GetSymName (S));
+            Error ("Symbol '%m%p' is already defined", GetSymName (S));
             S->Flags |= SF_MULTDEF;
             return;
         } else {
             /* Redefinition must also be a variable symbol */
             if ((Flags & SF_VAR) == 0) {
-                Error ("Symbol `%m%p' is already different kind", GetSymName (S));
+                Error ("Symbol '%m%p' is already different kind", GetSymName (S));
                 return;
             }
             /* Delete the current symbol expression, since it will get
@@ -285,7 +285,7 @@ void SymDef (SymEntry* S, ExprNode* Expr, unsigned char AddrSize, unsigned Flags
             S->ExportSize = S->AddrSize;
         } else if (S->AddrSize > S->ExportSize) {
             /* We're exporting a symbol smaller than it actually is */
-            Warning (1, "Symbol `%m%p' is %s but exported %s",
+            Warning (1, "Symbol '%m%p' is %s but exported %s",
                      GetSymName (S), AddrSizeToStr (S->AddrSize),
                      AddrSizeToStr (S->ExportSize));
         }
@@ -315,13 +315,13 @@ void SymImport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
 /* Mark the given symbol as an imported symbol */
 {
     if (S->Flags & SF_DEFINED) {
-        Error ("Symbol `%m%p' is already defined", GetSymName (S));
+        Error ("Symbol '%m%p' is already defined", GetSymName (S));
         S->Flags |= SF_MULTDEF;
         return;
     }
     if (S->Flags & SF_EXPORT) {
         /* The symbol is already marked as exported symbol */
-        Error ("Cannot import exported symbol `%m%p'", GetSymName (S));
+        Error ("Cannot import exported symbol '%m%p'", GetSymName (S));
         return;
     }
 
@@ -337,16 +337,16 @@ void SymImport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
     */
     if (S->Flags & SF_IMPORT) {
         if ((Flags & SF_FORCED) != (S->Flags & SF_FORCED)) {
-            Error ("Redeclaration mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Redeclaration mismatch for symbol '%m%p'", GetSymName (S));
         }
         if (AddrSize != S->AddrSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
     }
     if (S->Flags & SF_GLOBAL) {
         S->Flags &= ~SF_GLOBAL;
         if (AddrSize != S->AddrSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
     }
 
@@ -369,12 +369,12 @@ void SymExport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
     /* Check if it's ok to export the symbol */
     if (S->Flags & SF_IMPORT) {
         /* The symbol is already marked as imported external symbol */
-        Error ("Symbol `%m%p' is already an import", GetSymName (S));
+        Error ("Symbol '%m%p' is already an import", GetSymName (S));
         return;
     }
     if (S->Flags & SF_VAR) {
         /* Variable symbols cannot be exported */
-        Error ("Var symbol `%m%p' cannot be exported", GetSymName (S));
+        Error ("Var symbol '%m%p' cannot be exported", GetSymName (S));
         return;
     }
 
@@ -383,7 +383,7 @@ void SymExport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
     */
     if (S->Flags & SF_GLOBAL) {
         if (AddrSize != S->ExportSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
         S->Flags &= ~SF_GLOBAL;
 
@@ -398,7 +398,7 @@ void SymExport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
     */
     if ((S->Flags & (SF_EXPORT|SF_DEFINED)) == SF_EXPORT) {
         if (S->ExportSize != AddrSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
     }
     S->ExportSize = AddrSize;
@@ -412,7 +412,7 @@ void SymExport (SymEntry* S, unsigned char AddrSize, unsigned Flags)
             S->ExportSize = S->AddrSize;
         } else if (S->AddrSize > S->ExportSize) {
             /* We're exporting a symbol smaller than it actually is */
-            Warning (1, "Symbol `%m%p' is %s but exported %s",
+            Warning (1, "Symbol '%m%p' is %s but exported %s",
                      GetSymName (S), AddrSizeToStr (S->AddrSize),
                      AddrSizeToStr (S->ExportSize));
         }
@@ -434,7 +434,7 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
 {
     if (S->Flags & SF_VAR) {
         /* Variable symbols cannot be exported or imported */
-        Error ("Var symbol `%m%p' cannot be made global", GetSymName (S));
+        Error ("Var symbol '%m%p' cannot be made global", GetSymName (S));
         return;
     }
 
@@ -447,7 +447,7 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
             AddrSize = GetCurrentSegAddrSize ();
         }
         if (AddrSize != S->AddrSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
         return;
     }
@@ -459,12 +459,12 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
         if ((S->Flags & SF_DEFINED) == 0) {
             /* Symbol is undefined */
             if (AddrSize != S->ExportSize) {
-                Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+                Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
             }
         } else if (AddrSize != ADDR_SIZE_DEFAULT) {
             /* Symbol is defined and address size given */
             if (AddrSize != S->ExportSize) {
-                Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+                Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
             }
         }
         return;
@@ -476,7 +476,7 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
     */
     if (S->Flags & SF_GLOBAL) {
         if (AddrSize != S->ExportSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
         return;
     }
@@ -494,7 +494,7 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
             S->ExportSize = S->AddrSize;
         } else if (S->AddrSize > S->ExportSize) {
             /* We're exporting a symbol smaller than it actually is */
-            Warning (1, "Symbol `%m%p' is %s but exported %s",
+            Warning (1, "Symbol '%m%p' is %s but exported %s",
                      GetSymName (S), AddrSizeToStr (S->AddrSize),
                      AddrSizeToStr (S->ExportSize));
         }
@@ -537,12 +537,12 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
     /* Check for errors */
     if (S->Flags & SF_IMPORT) {
         /* The symbol is already marked as imported external symbol */
-        Error ("Symbol `%m%p' is already an import", GetSymName (S));
+        Error ("Symbol '%m%p' is already an import", GetSymName (S));
         return;
     }
     if (S->Flags & SF_VAR) {
         /* Variable symbols cannot be exported or imported */
-        Error ("Var symbol `%m%p' cannot be exported", GetSymName (S));
+        Error ("Var symbol '%m%p' cannot be exported", GetSymName (S));
         return;
     }
 
@@ -552,7 +552,7 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
     */
     if (S->Flags & (SF_EXPORT | SF_GLOBAL)) {
         if (S->ExportSize != AddrSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
         S->Flags &= ~SF_GLOBAL;
     }
@@ -566,7 +566,7 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
             /* Use the real size of the symbol */
             S->ExportSize = S->AddrSize;
         } else if (S->AddrSize != S->ExportSize) {
-            Error ("Address size mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Address size mismatch for symbol '%m%p'", GetSymName (S));
         }
     }
 
@@ -575,7 +575,7 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
     */
     if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
         if (S->ConDesPrio[Type] != Prio) {
-            Error ("Redeclaration mismatch for symbol `%m%p'", GetSymName (S));
+            Error ("Redeclaration mismatch for symbol '%m%p'", GetSymName (S));
         }
     }
     S->ConDesPrio[Type] = Prio;
index 35d5a8066a220d514c29e4a7baca7eae525efb68..afe7b3ad6b621b89c291bec0ed562e25cc38cf7f 100644 (file)
@@ -178,7 +178,7 @@ static SymTable* NewSymTable (SymTable* Parent, const StrBuf* Name)
                     }
                 } else {
                     /* Duplicate scope name */
-                    Internal ("Duplicate scope name: `%m%p'", Name);
+                    Internal ("Duplicate scope name: '%m%p'", Name);
                 }
             }
         }
@@ -216,7 +216,7 @@ void SymEnterLevel (const StrBuf* ScopeName, unsigned char Type,
 
         /* Check if the scope has been defined before */
         if (CurrentScope->Flags & ST_DEFINED) {
-            Error ("Duplicate scope `%m%p'", ScopeName);
+            Error ("Duplicate scope '%m%p'", ScopeName);
         }
 
     } else {
@@ -502,7 +502,7 @@ static void SymCheckUndefined (SymEntry* S)
             if (Sym->Flags & SF_IMPORT) {
                 /* The symbol is already marked as import */
                 LIError (&S->RefLines,
-                         "Symbol `%s' is already an import",
+                         "Symbol '%s' is already an import",
                          GetString (Sym->Name));
             }
             if ((Sym->Flags & SF_EXPORT) == 0) {
@@ -516,7 +516,7 @@ static void SymCheckUndefined (SymEntry* S)
                 if (Sym->AddrSize > Sym->ExportSize) {
                     /* We're exporting a symbol smaller than it actually is */
                     LIWarning (&Sym->DefLines, 1,
-                               "Symbol `%m%p' is %s but exported %s",
+                               "Symbol '%m%p' is %s but exported %s",
                                GetSymName (Sym),
                                AddrSizeToStr (Sym->AddrSize),
                                AddrSizeToStr (Sym->ExportSize));
@@ -541,7 +541,7 @@ static void SymCheckUndefined (SymEntry* S)
         if (S->Flags & SF_EXPORT) {
             /* We will not auto-import an export */
             LIError (&S->RefLines,
-                     "Exported symbol `%m%p' was never defined",
+                     "Exported symbol '%m%p' was never defined",
                      GetSymName (S));
         } else {
             if (AutoImport) {
@@ -554,7 +554,7 @@ static void SymCheckUndefined (SymEntry* S)
             } else {
                 /* Error */
                 LIError (&S->RefLines,
-                         "Symbol `%m%p' is undefined",
+                         "Symbol '%m%p' is undefined",
                          GetSymName (S));
             }
         }
@@ -616,7 +616,7 @@ void SymCheck (void)
                 ReleaseFullLineInfo (&S->RefLines);
             } else if ((S->Flags & SF_DEFINED) != 0 && (S->Flags & SF_REFERENCED) == 0) {
                 LIWarning (&S->DefLines, 2,
-                           "Symbol `%m%p' is defined but never used",
+                           "Symbol '%m%p' is defined but never used",
                            GetSymName (S));
             }
 
@@ -625,7 +625,7 @@ void SymCheck (void)
                 if ((S->Flags & (SF_REFERENCED | SF_FORCED)) == SF_NONE) {
                     /* Imported symbol is not referenced */
                     LIWarning (&S->DefLines, 2,
-                               "Symbol `%m%p' is imported but never used",
+                               "Symbol '%m%p' is imported but never used",
                                GetSymName (S));
                 } else {
                     /* Give the import an id, count imports */
@@ -653,7 +653,7 @@ void SymCheck (void)
                     } else if (S->AddrSize > S->ExportSize) {
                         /* We're exporting a symbol smaller than it actually is */
                         LIWarning (&S->DefLines, 1,
-                                   "Symbol `%m%p' is %s but exported %s",
+                                   "Symbol '%m%p' is %s but exported %s",
                                    GetSymName (S),
                                    AddrSizeToStr (S->AddrSize),
                                    AddrSizeToStr (S->ExportSize));
@@ -673,7 +673,7 @@ void SymCheck (void)
                     const FilePos* P = S->GuessedUse[S->AddrSize - 1];
                     if (P) {
                         PWarning (P, 0,
-                                  "Didn't use %s addressing for `%m%p'",
+                                  "Didn't use %s addressing for '%m%p'",
                                   AddrSizeToStr (S->AddrSize),
                                   GetSymName (S));
                     }
index 1fc4e31676f74fe1b4d0999d1eb5c2ca76d02690..ae4308522497f8a598e6c0606ebac0914b51bc37 100644 (file)
@@ -102,7 +102,7 @@ static SymEntry* AsmGetSym (unsigned Arg, unsigned Type)
 
     /* Did we find a symbol with this name? */
     if (Sym == 0) {
-        Error ("Undefined symbol `%s' for argument %u", CurTok.Ident, Arg);
+        Error ("Undefined symbol '%s' for argument %u", CurTok.Ident, Arg);
         AsmErrorSkip ();
         return 0;
     }
index e9d98f5b870d9b5021b0925b022f5915878bff49..972d48f6abfd4846e24a4dc6b81725fedba6680b 100644 (file)
@@ -461,7 +461,7 @@ void GetFuncInfo (const char* Name, unsigned short* Use, unsigned short* Chg)
             ** use and change all registers.
             */
             if (Debug) {
-                fprintf (stderr, "No info about internal function `%s'\n", Name);
+                fprintf (stderr, "No info about internal function '%s'\n", Name);
             }
             *Use = REG_ALL;
             *Chg = REG_ALL;
index 3116539dcd302a5e4a4b302cef3c0e36d0bf3bb2..575398c116dc5438338274dc234d5eb415bdded1 100644 (file)
@@ -981,7 +981,7 @@ static OptFunc* GetOptFunc (const char* Name)
     OptFunc* F = FindOptFunc (Name);
     if (F == 0) {
         /* Not found */
-        AbEnd ("Optimization step `%s' not found", Name);
+        AbEnd ("Optimization step '%s' not found", Name);
     }
     return F;
 }
@@ -1168,10 +1168,10 @@ static void WriteDebugOutput (CodeSeg* S, const char* Step)
         /* Output a header line */
         if (Step == 0) {
             /* Initial output */
-            WriteOutput ("Initial code for function `%s':\n",
+            WriteOutput ("Initial code for function '%s':\n",
                          S->Func? S->Func->Name : "<global>");
         } else {
-            WriteOutput ("Code after applying `%s':\n", Step);
+            WriteOutput ("Code after applying '%s':\n", Step);
         }
 
         /* Output the code segment */
@@ -1512,7 +1512,7 @@ void RunOpt (CodeSeg* S)
 
     /* Print the name of the function we are working on */
     if (S->Func) {
-        Print (stdout, 1, "Running optimizer for function `%s'\n", S->Func->Name);
+        Print (stdout, 1, "Running optimizer for function '%s'\n", S->Func->Name);
     } else {
         Print (stdout, 1, "Running optimizer for global code segment\n");
     }
index a808a26f7ed72dcfe02fc19f7e37250adb4a21cf..ba759988b2cd54447980b468a00e3987e6a2591f 100644 (file)
@@ -317,12 +317,12 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
                 /* Expect zp x indirect */
                 L = SkipSpace (L+1);
                 if (toupper (*L) != 'X') {
-                    Error ("ASM code error: `X' expected");
+                    Error ("ASM code error: 'X' expected");
                     return 0;
                 }
                 L = SkipSpace (L+1);
                 if (*L != ')') {
-                    Error ("ASM code error: `)' expected");
+                    Error ("ASM code error: ')' expected");
                     return 0;
                 }
                 L = SkipSpace (L+1);
@@ -337,7 +337,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
                 if (*L == ',') {
                     L = SkipSpace (L+1);
                     if (toupper (*L) != 'Y') {
-                        Error ("ASM code error: `Y' expected");
+                        Error ("ASM code error: 'Y' expected");
                         return 0;
                     }
                     L = SkipSpace (L+1);
@@ -378,7 +378,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
                     /* Check for subroutine call to local label */
                     if ((OPC->Info & OF_CALL) && IsLocalLabelName (Arg)) {
                         Error ("ASM code error: "
-                               "Cannot use local label `%s' in subroutine call",
+                               "Cannot use local label '%s' in subroutine call",
                                Arg);
                     }
                     AM = AM65_ABS;
@@ -532,7 +532,7 @@ void CS_AddVLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
         case '.':
             /* Control instruction */
             ReadToken (L, " \t", Token, sizeof (Token));
-            Error ("ASM code error: Pseudo instruction `%s' not supported", Token);
+            Error ("ASM code error: Pseudo instruction '%s' not supported", Token);
             break;
 
         default:
@@ -780,7 +780,7 @@ CodeLabel* CS_AddLabel (CodeSeg* S, const char* Name)
     if (L) {
         /* We found it - be sure it does not already have an owner */
         if (L->Owner) {
-            Error ("ASM label `%s' is already defined", Name);
+            Error ("ASM label '%s' is already defined", Name);
             return L;
         }
     } else {
@@ -790,7 +790,7 @@ CodeLabel* CS_AddLabel (CodeSeg* S, const char* Name)
 
     /* Safety. This call is quite costly, but safety is better */
     if (CollIndex (&S->Labels, L) >= 0) {
-        Error ("ASM label `%s' is already defined", Name);
+        Error ("ASM label '%s' is already defined", Name);
         return L;
     }
 
@@ -906,7 +906,7 @@ void CS_MergeLabels (CodeSeg* S)
 
                 /* Print some debugging output */
                 if (Debug) {
-                    printf ("Removing unused global label `%s'", X->Name);
+                    printf ("Removing unused global label '%s'", X->Name);
                 }
 
                 /* And free the label */
index d79ef350b9ff102d86afc8b45f787bf0d5c5065b..9cc7f9641d06083153354a92f130d40312dc34dd 100644 (file)
@@ -192,7 +192,7 @@ static void Parse (void)
 
                     /* This is a definition */
                     if (SymIsDef (Entry)) {
-                        Error ("Global variable `%s' has already been defined",
+                        Error ("Global variable '%s' has already been defined",
                                Entry->Name);
                     }
                     Entry->Flags |= SC_DEF;
@@ -204,11 +204,11 @@ static void Parse (void)
                         if (!IsTypeVoid (Decl.Type)) {
                             if (!IsTypeArray (Decl.Type)) {
                                 /* Size is unknown and not an array */
-                                Error ("Variable `%s' has unknown size", Decl.Ident);
+                                Error ("Variable '%s' has unknown size", Decl.Ident);
                             }
                         } else if (IS_Get (&Standard) != STD_CC65) {
                             /* We cannot declare variables of type void */
-                            Error ("Illegal type for variable `%s'", Decl.Ident);
+                            Error ("Illegal type for variable '%s'", Decl.Ident);
                         }
                     }
 
@@ -234,12 +234,12 @@ static void Parse (void)
 
                     if (IsTypeVoid (Decl.Type)) {
                         /* We cannot declare variables of type void */
-                        Error ("Illegal type for variable `%s'", Decl.Ident);
+                        Error ("Illegal type for variable '%s'", Decl.Ident);
                         Entry->Flags &= ~(SC_STORAGE | SC_DEF);
                     } else if (Size == 0) {
                         /* Size is unknown. Is it an array? */
                         if (!IsTypeArray (Decl.Type)) {
-                            Error ("Variable `%s' has unknown size", Decl.Ident);
+                            Error ("Variable '%s' has unknown size", Decl.Ident);
                         }
                         Entry->Flags &= ~(SC_STORAGE | SC_DEF);
                     } else {
@@ -256,7 +256,7 @@ static void Parse (void)
                         const char* bssName = GetSegName (SEG_BSS);
 
                         if (Entry->V.BssName && strcmp (Entry->V.BssName, bssName) != 0) {
-                            Error ("Global variable `%s' already was defined in the `%s' segment.",
+                            Error ("Global variable '%s' already was defined in the '%s' segment.",
                                    Entry->Name, Entry->V.BssName);
                         }
                         Entry->V.BssName = xstrdup (bssName);
@@ -286,7 +286,7 @@ static void Parse (void)
 
                     /* Function body. Check for duplicate function definitions */
                     if (SymIsDef (Entry)) {
-                        Error ("Body for function `%s' has already been defined",
+                        Error ("Body for function '%s' has already been defined",
                                Entry->Name);
                     }
 
index 19100781cb162d2c8a4be0871cd6ee24f31c7aa3..e3b5edfeca4010f3514210f341899f871719b56e 100644 (file)
@@ -102,7 +102,7 @@ static unsigned ParseInitInternal (Type* T, int AllowFlexibleMembers);
 static void DuplicateQualifier (const char* Name)
 /* Print an error message */
 {
-    Warning ("Duplicate qualifier: `%s'", Name);
+    Warning ("Duplicate qualifier: '%s'", Name);
 }
 
 
@@ -551,7 +551,7 @@ static SymEntry* StructOrUnionForwardDecl (const char* Name, unsigned Type)
         Entry = AddStructSym (Name, Type, 0, 0);
     } else if ((Entry->Flags & SC_TYPEMASK) != Type) {
         /* Already defined, but no struct */
-        Error ("Symbol `%s' is already different kind", Name);
+        Error ("Symbol '%s' is already different kind", Name);
     }
     return Entry;
 }
@@ -1070,7 +1070,7 @@ static void ParseTypeSpec (DeclSpec* D, long Default, TypeCode Qualifiers)
                     Entry = FindTagSym (CurTok.Ident);
                     if (Entry) {
                         if (SymIsLocal (Entry) && (Entry->Flags & SC_ENUM) == 0) {
-                            Error ("Symbol `%s' is already different kind", Entry->Name);
+                            Error ("Symbol '%s' is already different kind", Entry->Name);
                         }
                     } else {
                         /* Insert entry into table ### */
@@ -1211,10 +1211,10 @@ static void ParseOldStyleParamList (FuncDesc* F)
                         Sym->Flags &= ~SC_DEFTYPE;
                     } else {
                         /* Type has already been changed */
-                        Error ("Redefinition for parameter `%s'", Sym->Name);
+                        Error ("Redefinition for parameter '%s'", Sym->Name);
                     }
                 } else {
-                    Error ("Unknown identifier: `%s'", Decl.Ident);
+                    Error ("Unknown identifier: '%s'", Decl.Ident);
                 }
             }
 
@@ -1291,7 +1291,7 @@ static void ParseAnsiParamList (FuncDesc* F)
         /* If the parameter is a struct or union, emit a warning */
         if (IsClassStruct (Decl.Type)) {
             if (IS_Get (&WarnStructParam)) {
-                Warning ("Passing struct by value for parameter `%s'", Decl.Ident);
+                Warning ("Passing struct by value for parameter '%s'", Decl.Ident);
             }
         }
 
@@ -1512,7 +1512,7 @@ static void Declarator (const DeclSpec* Spec, Declaration* D, declmode_t Mode)
                 ConstAbsIntExpr (hie1, &Expr);
                 if (Expr.IVal <= 0) {
                     if (D->Ident[0] != '\0') {
-                        Error ("Size of array `%s' is invalid", D->Ident);
+                        Error ("Size of array '%s' is invalid", D->Ident);
                     } else {
                         Error ("Size of array is invalid");
                     }
@@ -1534,16 +1534,16 @@ static void Declarator (const DeclSpec* Spec, Declaration* D, declmode_t Mode)
 
     /* If we have remaining qualifiers, flag them as invalid */
     if (Qualifiers & T_QUAL_NEAR) {
-        Error ("Invalid `__near__' qualifier");
+        Error ("Invalid '__near__' qualifier");
     }
     if (Qualifiers & T_QUAL_FAR) {
-        Error ("Invalid `__far__' qualifier");
+        Error ("Invalid '__far__' qualifier");
     }
     if (Qualifiers & T_QUAL_FASTCALL) {
-        Error ("Invalid `__fastcall__' qualifier");
+        Error ("Invalid '__fastcall__' qualifier");
     }
     if (Qualifiers & T_QUAL_CDECL) {
-        Error ("Invalid `__cdecl__' qualifier");
+        Error ("Invalid '__cdecl__' qualifier");
     }
 }
 
@@ -1637,7 +1637,7 @@ void ParseDecl (const DeclSpec* Spec, Declaration* D, declmode_t Mode)
             ** have the C89 standard enabled explicitly.
             */
             if (IS_Get (&Standard) >= STD_C99) {
-                Warning ("Implicit `int' return type is an obsolete feature");
+                Warning ("Implicit 'int' return type is an obsolete feature");
             }
             GetFuncDesc (D->Type)->Flags |= FD_OLDSTYLE_INTRET;
         }
@@ -1653,7 +1653,7 @@ void ParseDecl (const DeclSpec* Spec, Declaration* D, declmode_t Mode)
         ** for variables with implicit int type.
         */
         if ((Spec->Flags & DS_DEF_TYPE) != 0 && IS_Get (&Standard) >= STD_C99) {
-            Warning ("Implicit `int' is an obsolete feature");
+            Warning ("Implicit 'int' is an obsolete feature");
         }
     }
 
@@ -1662,7 +1662,7 @@ void ParseDecl (const DeclSpec* Spec, Declaration* D, declmode_t Mode)
         unsigned Size = SizeOf (D->Type);
         if (Size >= 0x10000) {
             if (D->Ident[0] != '\0') {
-                Error ("Size of `%s' is invalid (0x%06X)", D->Ident, Size);
+                Error ("Size of '%s' is invalid (0x%06X)", D->Ident, Size);
             } else {
                 Error ("Invalid size in declaration (0x%06X)", Size);
             }
@@ -1735,7 +1735,7 @@ static unsigned OpeningCurlyBraces (unsigned BracesNeeded)
         NextToken ();
     }
     if (BraceCount < BracesNeeded) {
-        Error ("`{' expected");
+        Error ("'{' expected");
     }
     return BraceCount;
 }
@@ -1755,7 +1755,7 @@ static void ClosingCurlyBraces (unsigned BracesExpected)
             NextToken ();
             NextToken ();
         } else {
-            Error ("`}' expected");
+            Error ("'}' expected");
             return;
         }
         --BracesExpected;
index bdaea20d6a9978ac3c532b916015b09e096934cc..37048e69bdbef3473e75ad4a94160b2b10022eb8 100644 (file)
@@ -225,7 +225,7 @@ void ParseAttribute (Declaration* D)
 
         } else {
             /* Attribute not known, maybe typo */
-            Error ("Illegal attribute: `%s'", AttrName);
+            Error ("Illegal attribute: '%s'", AttrName);
 
             /* Skip until end of attribute */
             ErrorSkip ();
index 55c6391d2c4fc16a1ab988cce396bca6b130d783..320ac23213c211d2f0349540395faf5e6f1bc6af 100644 (file)
@@ -791,9 +791,9 @@ static void Primary (ExprDesc* E)
                     ** list and returning int.
                     */
                     if (IS_Get (&Standard) >= STD_C99) {
-                        Error ("Call to undefined function `%s'", Ident);
+                        Error ("Call to undefined function '%s'", Ident);
                     } else {
-                        Warning ("Call to undefined function `%s'", Ident);
+                        Warning ("Call to undefined function '%s'", Ident);
                     }
                     Sym = AddGlobalSym (Ident, GetImplicitFuncType(), SC_EXTERN | SC_REF | SC_FUNC);
                     E->Type  = Sym->Type;
@@ -804,7 +804,7 @@ static void Primary (ExprDesc* E)
                     Sym = AddLocalSym (Ident, type_int, SC_AUTO | SC_REF, 0);
                     E->Flags = E_LOC_STACK | E_RTYPE_LVAL;
                     E->Type = type_int;
-                    Error ("Undefined symbol: `%s'", Ident);
+                    Error ("Undefined symbol: '%s'", Ident);
                 }
 
             }
@@ -1174,7 +1174,7 @@ static void StructRef (ExprDesc* Expr)
     NextToken ();
     Field = FindStructField (Expr->Type, Ident);
     if (Field == 0) {
-        Error ("Struct/union has no field named `%s'", Ident);
+        Error ("Struct/union has no field named '%s'", Ident);
         /* Make the expression an integer at address zero */
         ED_MakeConstAbs (Expr, 0, type_int);
         return;
@@ -2485,7 +2485,7 @@ static void parseadd (ExprDesc* Expr)
                 typeadjust (Expr, &Expr2, 1);
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `+'");
+                Error ("Invalid operands for binary operator '+'");
             }
 
         } else {
@@ -2567,7 +2567,7 @@ static void parseadd (ExprDesc* Expr)
                 }
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `+'");
+                Error ("Invalid operands for binary operator '+'");
                 flags = CF_INT;
             }
 
@@ -2611,7 +2611,7 @@ static void parseadd (ExprDesc* Expr)
                 flags = typeadjust (Expr, &Expr2, 1);
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `+'");
+                Error ("Invalid operands for binary operator '+'");
                 flags = CF_INT;
             }
 
@@ -2653,7 +2653,7 @@ static void parseadd (ExprDesc* Expr)
                 flags = typeadjust (Expr, &Expr2, 0) & ~CF_CONST;
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `+'");
+                Error ("Invalid operands for binary operator '+'");
                 flags = CF_INT;
             }
 
@@ -2689,7 +2689,7 @@ static void parsesub (ExprDesc* Expr)
 
     /* lhs cannot be function or pointer to function */
     if (IsTypeFunc (Expr->Type) || IsTypeFuncPtr (Expr->Type)) {
-        Error ("Invalid left operand for binary operator `-'");
+        Error ("Invalid left operand for binary operator '-'");
         /* Make it pointer to char to avoid further errors */
         Expr->Type = type_uchar;
     }
@@ -2712,7 +2712,7 @@ static void parsesub (ExprDesc* Expr)
 
     /* rhs cannot be function or pointer to function */
     if (IsTypeFunc (Expr2.Type) || IsTypeFuncPtr (Expr2.Type)) {
-        Error ("Invalid right operand for binary operator `-'");
+        Error ("Invalid right operand for binary operator '-'");
         /* Make it pointer to char to avoid further errors */
         Expr2.Type = type_uchar;
     }
@@ -2750,7 +2750,7 @@ static void parsesub (ExprDesc* Expr)
                 Expr->IVal -= Expr2.IVal;
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `-'");
+                Error ("Invalid operands for binary operator '-'");
             }
 
             /* Result is constant, condition codes not set */
@@ -2783,7 +2783,7 @@ static void parsesub (ExprDesc* Expr)
                 flags = typeadjust (Expr, &Expr2, 1);
             } else {
                 /* OOPS */
-                Error ("Invalid operands for binary operator `-'");
+                Error ("Invalid operands for binary operator '-'");
                 flags = CF_INT;
             }
 
@@ -2837,7 +2837,7 @@ static void parsesub (ExprDesc* Expr)
             flags = typeadjust (Expr, &Expr2, 0);
         } else {
             /* OOPS */
-            Error ("Invalid operands for binary operator `-'");
+            Error ("Invalid operands for binary operator '-'");
             flags = CF_INT;
         }
 
@@ -3304,7 +3304,7 @@ static void opeq (const GenDesc* Gen, ExprDesc* Expr, const char* Op)
 
     /* The rhs must be an integer (or a float, but we don't support that yet */
     if (!IsClassInt (Expr2.Type)) {
-        Error ("Invalid right operand for binary operator `%s'", Op);
+        Error ("Invalid right operand for binary operator '%s'", Op);
         /* Continue. Wrong code will be generated, but the compiler won't
         ** break, so this is the best error recovery.
         */
@@ -3421,7 +3421,7 @@ static void addsubeq (const GenDesc* Gen, ExprDesc *Expr, const char* Op)
     */
     hie1 (&Expr2);
     if (!IsClassInt (Expr2.Type)) {
-        Error ("Invalid right operand for binary operator `%s'", Op);
+        Error ("Invalid right operand for binary operator '%s'", Op);
         /* Continue. Wrong code will be generated, but the compiler won't
         ** break, so this is the best error recovery.
         */
index 97d6916ffdcab1be085c3d88edcbbf16686ebc8d..3256d7541cf4cba0a735cbee2c64a07f189d743d 100644 (file)
@@ -422,14 +422,14 @@ void NewFunc (SymEntry* Func)
 
         /* Main cannot be a fastcall function */
         if (IsQualFastcall (Func->Type)) {
-            Error ("`main' cannot be declared as __fastcall__");
+            Error ("'main' cannot be declared as __fastcall__");
         }
 
         /* If cc65 extensions aren't enabled, don't allow a main function that
         ** doesn't return an int.
         */
         if (IS_Get (&Standard) != STD_CC65 && CurrentFunc->ReturnType[0].C != T_INT) {
-            Error ("`main' must always return an int");
+            Error ("'main' must always return an int");
         }
 
         /* Add a forced import of a symbol that is contained in the startup
index 37e43da14e603d39350ac614e96aa858964d57a3..ce4e33acf1bd39d1d92a375ad136911aad231690 100644 (file)
@@ -54,7 +54,7 @@ unsigned HexVal (int C)
 */
 {
     if (!IsXDigit (C)) {
-        Error ("Invalid hexadecimal digit: `%c'", C);
+        Error ("Invalid hexadecimal digit: '%c'", C);
     }
     if (IsDigit (C)) {
         return C - '0';
index 005e0c668bd0120e849a8794493ccc8d6a97daab..22a66e1f7f10dbcc90055a473a3866fd73a87acc 100644 (file)
@@ -174,7 +174,7 @@ static AFile* NewAFile (IFile* IF, FILE* F)
         struct stat Buf;
         if (FileStat (IF->Name, &Buf) != 0) {
             /* Error */
-            Fatal ("Cannot stat `%s': %s", IF->Name, strerror (errno));
+            Fatal ("Cannot stat '%s': %s", IF->Name, strerror (errno));
         }
         IF->Size  = (unsigned long) Buf.st_size;
         IF->MTime = (unsigned long) Buf.st_mtime;
@@ -251,7 +251,7 @@ void OpenMainFile (const char* Name)
     FILE* F = fopen (Name, "r");
     if (F == 0) {
         /* Cannot open */
-        Fatal ("Cannot open input file `%s': %s", Name, strerror (errno));
+        Fatal ("Cannot open input file '%s': %s", Name, strerror (errno));
     }
 
     /* Allocate a new AFile structure for the file */
@@ -284,7 +284,7 @@ void OpenIncludeFile (const char* Name, InputType IT)
     /* Search for the file */
     N = SearchFile ((IT == IT_SYSINC)? SysIncSearchPath : UsrIncSearchPath, Name);
     if (N == 0) {
-        PPError ("Include file `%s' not found", Name);
+        PPError ("Include file '%s' not found", Name);
         return;
     }
 
@@ -303,12 +303,12 @@ void OpenIncludeFile (const char* Name, InputType IT)
     F = fopen (IF->Name, "r");
     if (F == 0) {
         /* Error opening the file */
-        PPError ("Cannot open include file `%s': %s", IF->Name, strerror (errno));
+        PPError ("Cannot open include file '%s': %s", IF->Name, strerror (errno));
         return;
     }
 
     /* Debugging output */
-    Print (stdout, 1, "Opened include file `%s'\n", IF->Name);
+    Print (stdout, 1, "Opened include file '%s'\n", IF->Name);
 
     /* Allocate a new AFile structure */
     (void) NewAFile (IF, F);
@@ -619,7 +619,7 @@ static void CreateDepFile (const char* Name, InputType Types)
     /* Open the file */
     FILE* F = fopen (Name, "w");
     if (F == 0) {
-        Fatal ("Cannot open dependency file `%s': %s", Name, strerror (errno));
+        Fatal ("Cannot open dependency file '%s': %s", Name, strerror (errno));
     }
 
     /* If a dependency target was given, use it, otherwise use the output
index 36afb6223897b7be1eaad7e072ba659fd98555f1..d0aab7f9c639168e52e8dbdad809b62e716418a6 100644 (file)
@@ -143,7 +143,7 @@ static void ParseRegisterDecl (Declaration* Decl, int Reg)
             ** we cannot allow that here.
             */
             if (ParseInit (Sym->Type) != Size) {
-                Error ("Cannot initialize flexible array members of storage class `register'");
+                Error ("Cannot initialize flexible array members of storage class 'register'");
             }
 
             /* Generate code to copy this data into the variable space */
@@ -171,7 +171,7 @@ static void ParseRegisterDecl (Declaration* Decl, int Reg)
 
     /* Cannot allocate a variable of zero size */
     if (Size == 0) {
-        Error ("Variable `%s' has unknown size", Decl->Ident);
+        Error ("Variable '%s' has unknown size", Decl->Ident);
     }
 }
 
@@ -356,7 +356,7 @@ static void ParseAutoDecl (Declaration* Decl)
 
     /* Cannot allocate a variable of zero size */
     if (Size == 0) {
-        Error ("Variable `%s' has unknown size", Decl->Ident);
+        Error ("Variable '%s' has unknown size", Decl->Ident);
     }
 }
 
@@ -410,7 +410,7 @@ static void ParseStaticDecl (Declaration* Decl)
 
     /* Cannot allocate a variable of zero size */
     if (Size == 0) {
-        Error ("Variable `%s' has unknown size", Decl->Ident);
+        Error ("Variable '%s' has unknown size", Decl->Ident);
     }
 }
 
index daf5cd7b83926cdb98f130749dc0ae83575dd3a9..09f0db50a1d8cb9593dc4ad5dd7876f39b654dd0 100644 (file)
@@ -245,7 +245,7 @@ void AddMacroArg (Macro* M, const char* Arg)
     for (I = 0; I < CollCount (&M->FormalArgs); ++I) {
         if (strcmp (CollAtUnchecked (&M->FormalArgs, I), Arg) == 0) {
             /* Found */
-            Error ("Duplicate macro parameter: `%s'", Arg);
+            Error ("Duplicate macro parameter: '%s'", Arg);
             break;
         }
     }
index a98603dd876aef3a1b43e9e9334f4be6d6ae53c1..871e21ebce142dff64ba394fc6be43e508678d86 100644 (file)
@@ -160,7 +160,7 @@ static void SetSys (const char* Sys)
             break;
 
         case TGT_MODULE:
-            AbEnd ("Cannot use `module' as a target for the compiler");
+            AbEnd ("Cannot use 'module' as a target for the compiler");
             break;
 
         case TGT_ATARI2600:
@@ -300,7 +300,7 @@ static void FileNameOption (const char* Opt, const char* Arg, StrBuf* Name)
 {
     /* Cannot have the option twice */
     if (SB_NotEmpty (Name)) {
-        AbEnd ("Cannot use option `%s' twice", Opt);
+        AbEnd ("Cannot use option '%s' twice", Opt);
     }
     /* A typo in OptTab[] might allow a NULL Arg */
     if (Arg == 0) {
@@ -362,7 +362,7 @@ static void CheckSegName (const char* Seg)
 {
     /* Print an error and abort if the name is not ok */
     if (!ValidSegName (Seg)) {
-        AbEnd ("Segment name `%s' is invalid", Seg);
+        AbEnd ("Segment name '%s' is invalid", Seg);
     }
 }
 
@@ -459,7 +459,7 @@ static void OptCPU (const char* Opt, const char* Arg)
     CPU = FindCPU (Arg);
     if (CPU != CPU_6502 && CPU != CPU_6502X && CPU != CPU_65SC02 &&
         CPU != CPU_65C02 && CPU != CPU_65816 && CPU != CPU_HUC6280) {
-        AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);
+        AbEnd ("Invalid argument for %s: '%s'", Opt, Arg);
     }
 }
 
@@ -504,7 +504,7 @@ static void OptDebugOpt (const char* Opt attribute ((unused)), const char* Arg)
     /* Open the file */
     FILE* F = fopen (Arg, "r");
     if (F == 0) {
-        AbEnd ("Cannot open `%s': %s", Arg, strerror (errno));
+        AbEnd ("Cannot open '%s': %s", Arg, strerror (errno));
     }
 
     /* Read line by line, ignore empty lines and switch optimization
@@ -675,7 +675,7 @@ static void OptMemoryModel (const char* Opt, const char* Arg)
 
     /* Check the current memory model */
     if (MemoryModel != MMODEL_UNKNOWN) {
-        AbEnd ("Cannot use option `%s' twice", Opt);
+        AbEnd ("Cannot use option '%s' twice", Opt);
     }
 
     /* Translate the memory model name and check it */
@@ -739,7 +739,7 @@ static void OptStandard (const char* Opt, const char* Arg)
     /* Find the standard from the given name */
     standard_t Std = FindStandard (Arg);
     if (Std == STD_UNKNOWN) {
-        AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);
+        AbEnd ("Invalid argument for %s: '%s'", Opt, Arg);
     } else if (IS_Get (&Standard) != STD_UNKNOWN) {
         AbEnd ("Option %s given more than once", Opt);
     } else {
@@ -1069,7 +1069,7 @@ int main (int argc, char* argv[])
 
         /* Write the output to the file */
         WriteAsmOutput ();
-        Print (stdout, 1, "Wrote output to `%s'\n", OutputFilename);
+        Print (stdout, 1, "Wrote output to '%s'\n", OutputFilename);
 
         /* Close the file, check for errors */
         CloseOutputFile ();
index e0b06ef997f0dee09db4bea80292b2fd294ef469..6ce5334cad06fbe36e3b2e94994517037171da50 100644 (file)
@@ -102,9 +102,9 @@ void OpenOutputFile ()
     /* Open the file */
     OutputFile = fopen (OutputFilename, "w");
     if (OutputFile == 0) {
-        Fatal ("Cannot open output file `%s': %s", OutputFilename, strerror (errno));
+        Fatal ("Cannot open output file '%s': %s", OutputFilename, strerror (errno));
     }
-    Print (stdout, 1, "Opened output file `%s'\n", OutputFilename);
+    Print (stdout, 1, "Opened output file '%s'\n", OutputFilename);
 }
 
 
@@ -120,9 +120,9 @@ void OpenDebugOutputFile (const char* Name)
     /* Open the file */
     OutputFile = fopen (Name, "w");
     if (OutputFile == 0) {
-        Fatal ("Cannot open debug output file `%s': %s", Name, strerror (errno));
+        Fatal ("Cannot open debug output file '%s': %s", Name, strerror (errno));
     }
-    Print (stdout, 1, "Opened debug output file `%s'\n", Name);
+    Print (stdout, 1, "Opened debug output file '%s'\n", Name);
 }
 
 
@@ -138,7 +138,7 @@ void CloseOutputFile ()
         remove (OutputFilename);
         Fatal ("Cannot write to output file (disk full?)");
     }
-    Print (stdout, 1, "Closed output file `%s'\n", OutputFilename);
+    Print (stdout, 1, "Closed output file '%s'\n", OutputFilename);
 
     OutputFile = 0;
 }
index 64ea4a1aa1d90d705f61e9a81c60040a41ce2ad2..1a24a08d990792cc1e43df1bb6362d184b0e5141 100644 (file)
@@ -356,7 +356,7 @@ static int BoolKeyword (StrBuf* Ident)
     }
 
     /* Error */
-    Error ("Pragma argument must be one of `on', `off', `true' or `false'");
+    Error ("Pragma argument must be one of 'on', 'off', 'true' or 'false'");
     return 0;
 }
 
@@ -453,7 +453,7 @@ static void SegNamePragma (StrBuf* B, segment_t Seg)
     } else {
 
         /* Segment name is invalid */
-        Error ("Illegal segment name: `%s'", Name);
+        Error ("Illegal segment name: '%s'", Name);
 
     }
 
@@ -788,7 +788,7 @@ static void ParsePragma (void)
         ** for unknown pragmas, but warn about them if enabled (the default).
         */
         if (IS_Get (&WarnUnknownPragma)) {
-            Warning ("Unknown pragma `%s'", SB_GetConstBuf (&Ident));
+            Warning ("Unknown pragma '%s'", SB_GetConstBuf (&Ident));
         }
         goto ExitPoint;
     }
index 99ce6acc13934369fe9d352a612cf42c10c27751..1c4837d94e0e23df4f1b5be1083ebd352c4aba35 100644 (file)
@@ -304,7 +304,7 @@ static void OldStyleComment (void)
             }
         } else {
             if (CurC == '/' && NextC == '*') {
-                PPWarning ("`/*' found inside a comment");
+                PPWarning ("'/*' found inside a comment");
             }
             NextChar ();
         }
@@ -491,7 +491,7 @@ static void ReadMacroArgs (MacroExp* E)
             NewStyleComment ();
         } else if (CurC == '\0') {
             /* End of input inside macro argument list */
-            PPError ("Unterminated argument list invoking macro `%s'", E->M->Name);
+            PPError ("Unterminated argument list invoking macro '%s'", E->M->Name);
 
             ClearLine ();
             break;
@@ -611,7 +611,7 @@ static void MacroArgSubst (MacroExp* E)
             NextChar ();
             SkipWhitespace (0);
             if (!IsSym (Ident) || (ArgIdx = FindMacroArg (E->M, Ident)) < 0) {
-                PPError ("`#' is not followed by a macro parameter");
+                PPError ("'#' is not followed by a macro parameter");
             } else {
                 /* Make a valid string from Replacement */
                 Arg = ME_GetActual (E, ArgIdx);
@@ -782,7 +782,7 @@ static void DefineMacro (void)
                 /* Ellipsis */
                 NextChar ();
                 if (CurC != '.' || NextC != '.') {
-                    PPError ("`...' expected");
+                    PPError ("'...' expected");
                     ClearLine ();
                     return;
                 }
@@ -803,7 +803,7 @@ static void DefineMacro (void)
 
                 /* __VA_ARGS__ is only allowed in C89 mode */
                 if (!C89 && strcmp (Ident, "__VA_ARGS__") == 0) {
-                    PPWarning ("`__VA_ARGS__' can only appear in the expansion "
+                    PPWarning ("'__VA_ARGS__' can only appear in the expansion "
                                "of a C99 variadic macro");
                 }
 
@@ -823,7 +823,7 @@ static void DefineMacro (void)
 
         /* Check for a right paren and eat it if we find one */
         if (CurC != ')') {
-            PPError ("`)' expected");
+            PPError ("')' expected");
             ClearLine ();
             return;
         }
@@ -900,7 +900,7 @@ static unsigned Pass1 (StrBuf* Source, StrBuf* Target)
                     if (HaveParen) {
                         SkipWhitespace (0);
                         if (CurC != ')') {
-                            PPError ("`)' expected");
+                            PPError ("')' expected");
                         } else {
                             NextChar ();
                         }
@@ -1138,7 +1138,7 @@ static void DoInclude (void)
             break;
 
         default:
-            PPError ("`\"' or `<' expected");
+            PPError ("'\"' or '<' expected");
             goto Done;
     }
     NextChar ();
@@ -1295,7 +1295,7 @@ void Preprocess (void)
                                 PPError ("Duplicate #else");
                             }
                         } else {
-                            PPError ("Unexpected `#else'");
+                            PPError ("Unexpected '#else'");
                         }
                         break;
 
@@ -1314,7 +1314,7 @@ void Preprocess (void)
                             /* Remove the clause that needs a terminator */
                             Skip = (IfStack[IfIndex--] & IFCOND_SKIP) != 0;
                         } else {
-                            PPError ("Unexpected `#endif'");
+                            PPError ("Unexpected '#endif'");
                         }
                         break;
 
@@ -1387,7 +1387,7 @@ void Preprocess (void)
         }
         if (NextLine () == 0) {
             if (IfIndex >= 0) {
-                PPError ("`#endif' expected");
+                PPError ("'#endif' expected");
             }
             return;
         }
index 8605f55a57d50ca0519096112639fe19901d2a3a..695085e9418dfd47e20533d1e8527924c5f294c3 100644 (file)
@@ -377,7 +377,7 @@ static void CharConst (void)
 
     /* Check for closing quote */
     if (CurC != '\'') {
-        Error ("`\'' expected");
+        Error ("'\'' expected");
     } else {
         /* Skip the quote */
         NextChar ();
@@ -1044,7 +1044,7 @@ int Consume (token_t Token, const char* ErrorMsg)
 int ConsumeColon (void)
 /* Check for a colon and skip it. */
 {
-    return Consume (TOK_COLON, "`:' expected");
+    return Consume (TOK_COLON, "':' expected");
 }
 
 
@@ -1057,7 +1057,7 @@ int ConsumeSemi (void)
         NextToken ();
         return 1;
     } else {
-        Error ("`;' expected");
+        Error ("';' expected");
         if (CurTok.Tok == TOK_COLON || CurTok.Tok == TOK_COMMA) {
             NextToken ();
         }
@@ -1075,7 +1075,7 @@ int ConsumeComma (void)
         NextToken ();
         return 1;
     } else {
-        Error ("`,' expected");
+        Error ("',' expected");
         if (CurTok.Tok == TOK_SEMI) {
             NextToken ();
         }
@@ -1088,7 +1088,7 @@ int ConsumeComma (void)
 int ConsumeLParen (void)
 /* Check for a left parenthesis and skip it */
 {
-    return Consume (TOK_LPAREN, "`(' expected");
+    return Consume (TOK_LPAREN, "'(' expected");
 }
 
 
@@ -1096,7 +1096,7 @@ int ConsumeLParen (void)
 int ConsumeRParen (void)
 /* Check for a right parenthesis and skip it */
 {
-    return Consume (TOK_RPAREN, "`)' expected");
+    return Consume (TOK_RPAREN, "')' expected");
 }
 
 
@@ -1104,7 +1104,7 @@ int ConsumeRParen (void)
 int ConsumeLBrack (void)
 /* Check for a left bracket and skip it */
 {
-    return Consume (TOK_LBRACK, "`[' expected");
+    return Consume (TOK_LBRACK, "'[' expected");
 }
 
 
@@ -1112,7 +1112,7 @@ int ConsumeLBrack (void)
 int ConsumeRBrack (void)
 /* Check for a right bracket and skip it */
 {
-    return Consume (TOK_RBRACK, "`]' expected");
+    return Consume (TOK_RBRACK, "']' expected");
 }
 
 
@@ -1120,7 +1120,7 @@ int ConsumeRBrack (void)
 int ConsumeLCurly (void)
 /* Check for a left curly brace and skip it */
 {
-    return Consume (TOK_LCURLY, "`{' expected");
+    return Consume (TOK_LCURLY, "'{' expected");
 }
 
 
@@ -1128,5 +1128,5 @@ int ConsumeLCurly (void)
 int ConsumeRCurly (void)
 /* Check for a right curly brace and skip it */
 {
-    return Consume (TOK_RCURLY, "`}' expected");
+    return Consume (TOK_RCURLY, "'}' expected");
 }
index 91abc8cb30fbeb80b2e32cd2f3953650bb48a349..bbee569d28263114f10e7c98c1c06e28b63cc050 100644 (file)
@@ -271,7 +271,7 @@ int SB_GetNumber (StrBuf* B, long* Val)
         SB_Skip (B);
         *Val = SignExtendChar (TgtTranslateChar (ParseChar (B)));
         if (SB_Peek (B) != '\'') {
-            Error ("`\'' expected");
+            Error ("'\'' expected");
             return 0;
         } else {
             /* Skip the quote */
index 14169671b61c284f01c562285b6ccfbaee7ffd31..657bc99638bdac379ff99444ce0643d67d3c3cab 100644 (file)
@@ -115,7 +115,7 @@ static void CheckSemi (int* PendingToken)
 {
     int HaveToken = (CurTok.Tok == TOK_SEMI);
     if (!HaveToken) {
-        Error ("`;' expected");
+        Error ("';' expected");
         /* Try to be smart about errors */
         if (CurTok.Tok == TOK_COLON || CurTok.Tok == TOK_COMMA) {
             HaveToken = 1;
@@ -231,7 +231,7 @@ static void DoStatement (void)
     g_defcodelabel (ContinueLabel);
 
     /* Parse the end condition */
-    Consume (TOK_WHILE, "`while' expected");
+    Consume (TOK_WHILE, "'while' expected");
     TestInParens (LoopLabel, 1);
     ConsumeSemi ();
 
@@ -332,7 +332,7 @@ static void ReturnStatement (void)
         }
 
     } else if (!F_HasVoidReturn (CurrentFunc) && !F_HasOldStyleIntRet (CurrentFunc)) {
-        Error ("Function `%s' must return a value", F_GetFuncName (CurrentFunc));
+        Error ("Function '%s' must return a value", F_GetFuncName (CurrentFunc));
     }
 
     /* Mark the function as having a return statement */
@@ -361,7 +361,7 @@ static void BreakStatement (void)
     /* Check if we are inside a loop */
     if (L == 0) {
         /* Error: No current loop */
-        Error ("`break' statement not within loop or switch");
+        Error ("'break' statement not within loop or switch");
         return;
     }
 
@@ -396,7 +396,7 @@ static void ContinueStatement (void)
 
     /* Did we find it? */
     if (L == 0) {
-        Error ("`continue' statement not within a loop");
+        Error ("'continue' statement not within a loop");
         return;
     }
 
@@ -591,7 +591,7 @@ int Statement (int* PendingToken)
         case TOK_LCURLY:
             NextToken ();
             GotBreak = CompoundStatement ();
-            CheckTok (TOK_RCURLY, "`{' expected", PendingToken);
+            CheckTok (TOK_RCURLY, "'{' expected", PendingToken);
             return GotBreak;
 
         case TOK_IF:
index 512f4257d3268c65878cbfff5960fdd7efa2cfc4..4a3730283dc599135dad665f761fc58dbd320ac1 100644 (file)
@@ -303,7 +303,7 @@ void DefaultLabel (void)
     } else {
 
         /* case keyword outside a switch statement */
-        Error ("`default' label not within a switch statement");
+        Error ("'default' label not within a switch statement");
 
     }
 
index 9eb0346e8bdae0ecb9789a8276ec4356a897a0f8..56196ea5a3e82b03d441b80a971ef06e75dee932 100644 (file)
@@ -168,11 +168,11 @@ static void CheckSymTable (SymTable* Tab)
                     !SymHasAttr (Entry, atUnused)) {
                     if (Flags & SC_PARAM) {
                         if (IS_Get (&WarnUnusedParam)) {
-                            Warning ("Parameter `%s' is never used", Entry->Name);
+                            Warning ("Parameter '%s' is never used", Entry->Name);
                         }
                     } else {
                         if (IS_Get (&WarnUnusedVar)) {
-                            Warning ("`%s' is defined but never used", Entry->Name);
+                            Warning ("'%s' is defined but never used", Entry->Name);
                         }
                     }
                 }
@@ -182,11 +182,11 @@ static void CheckSymTable (SymTable* Tab)
             if (Flags & SC_LABEL) {
                 if (!SymIsDef (Entry)) {
                     /* Undefined label */
-                    Error ("Undefined label: `%s'", Entry->Name);
+                    Error ("Undefined label: '%s'", Entry->Name);
                 } else if (!SymIsRef (Entry)) {
                     /* Defined but not used */
                     if (IS_Get (&WarnUnusedLabel)) {
-                        Warning ("`%s' is defined but never used", Entry->Name);
+                        Warning ("'%s' is defined but never used", Entry->Name);
                     }
                 }
             }
@@ -566,10 +566,10 @@ SymEntry* AddStructSym (const char* Name, unsigned Type, unsigned Size, SymTable
         /* We do have an entry. This may be a forward, so check it. */
         if ((Entry->Flags & SC_TYPEMASK) != Type) {
             /* Existing symbol is not a struct */
-            Error ("Symbol `%s' is already different kind", Name);
+            Error ("Symbol '%s' is already different kind", Name);
         } else if (Size > 0 && Entry->V.S.Size > 0) {
             /* Both structs are definitions. */
-            Error ("Multiple definition for `%s'", Name);
+            Error ("Multiple definition for '%s'", Name);
         } else {
             /* Define the struct size if it is given */
             if (Size > 0) {
@@ -605,7 +605,7 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign
     if (Entry) {
 
         /* We have a symbol with this name already */
-        Error ("Multiple definition for `%s'", Name);
+        Error ("Multiple definition for '%s'", Name);
 
     } else {
 
@@ -639,9 +639,9 @@ SymEntry* AddConstSym (const char* Name, const Type* T, unsigned Flags, long Val
     SymEntry* Entry = FindSymInTable (Tab, Name, HashStr (Name));
     if (Entry) {
         if ((Entry->Flags & SC_CONST) != SC_CONST) {
-            Error ("Symbol `%s' is already different kind", Name);
+            Error ("Symbol '%s' is already different kind", Name);
         } else {
-            Error ("Multiple definition for `%s'", Name);
+            Error ("Multiple definition for '%s'", Name);
         }
         return Entry;
     }
@@ -706,7 +706,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
 
         if (SymIsDef (Entry) && (Flags & SC_DEF) != 0) {
             /* Trying to define the label more than once */
-            Error ("Label `%s' is defined more than once", Name);
+            Error ("Label '%s' is defined more than once", Name);
         }
 
         NewDOR = AddDefOrRef (Entry, Flags);
@@ -809,7 +809,7 @@ SymEntry* AddLocalSym (const char* Name, const Type* T, unsigned Flags, int Offs
     if (Entry) {
 
         /* We have a symbol with this name already */
-        Error ("Multiple definition for `%s'", Name);
+        Error ("Multiple definition for '%s'", Name);
 
     } else {
 
@@ -865,12 +865,12 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
         ** then avoid a compiler crash.  See GitHub issue #728.
         */
         if (Entry->Flags & SC_ENUM) {
-            Fatal ("Can't redeclare enum constant `%s' as global variable", Name);
+            Fatal ("Can't redeclare enum constant '%s' as global variable", Name);
         }
 
         /* We have a symbol with this name already */
         if (Entry->Flags & SC_TYPE) {
-            Error ("Multiple definition for `%s'", Name);
+            Error ("Multiple definition for '%s'", Name);
             return Entry;
         }
 
@@ -890,7 +890,7 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
             if ((Size != UNSPECIFIED && ESize != UNSPECIFIED && Size != ESize) ||
                 TypeCmp (T + 1, EType + 1) < TC_EQUAL) {
                 /* Types not identical: Conflicting types */
-                Error ("Conflicting types for `%s'", Name);
+                Error ("Conflicting types for '%s'", Name);
                 return Entry;
             } else {
                 /* Check if we have a size in the existing definition */
@@ -903,7 +903,7 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
         } else {
             /* New type must be identical */
             if (TypeCmp (EType, T) < TC_EQUAL) {
-                Error ("Conflicting types for `%s'", Name);
+                Error ("Conflicting types for '%s'", Name);
                 return Entry;
             }
 
@@ -930,7 +930,7 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
         ** warn about the conflict.  (It will compile a public declaration.)
         */
         if ((Flags & SC_EXTERN) == 0 && (Entry->Flags & SC_EXTERN) != 0) {
-            Warning ("static declaration follows non-static declaration of `%s'.", Name);
+            Warning ("static declaration follows non-static declaration of '%s'.", Name);
         }
 
         /* An extern declaration must not change the current linkage. */
@@ -942,7 +942,7 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
         ** warn about the conflict.  (It will compile a public declaration.)
         */
         if ((Flags & SC_EXTERN) != 0 && (Entry->Flags & SC_EXTERN) == 0) {
-            Warning ("public declaration follows static declaration of `%s'.", Name);
+            Warning ("public declaration follows static declaration of '%s'.", Name);
         }
 
         /* Add the new flags */
@@ -1017,7 +1017,7 @@ void MakeZPSym (const char* Name)
     if (Entry) {
         Entry->Flags |= SC_ZEROPAGE;
     } else {
-        Error ("Undefined symbol: `%s'", Name);
+        Error ("Undefined symbol: '%s'", Name);
     }
 }
 
index 47ab993c1da764317f1c287752b39859e97389f9..21ad33f125c807377efd9ef4a7a17424f6015a8c 100644 (file)
@@ -76,7 +76,7 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType)
 
     /* Don't allow casts from void to something else. */
     if (IsTypeVoid (OldType)) {
-        Error ("Cannot convert from `void' to something else");
+        Error ("Cannot convert from 'void' to something else");
         goto ExitPoint;
     }
 
index 7e7183e0ad6d55ace5f98070f3bdcc40777e1cbd..b2a21a114e1ce8830d98ed79ca9a6a922bb97fc9 100644 (file)
@@ -325,7 +325,7 @@ static void ConvertFile (const char* Input, const char* Output)
     /* Try to open the file for reading */
     FILE* F = fopen (Input, "rb");
     if (F == 0) {
-        Error ("Cannot open input file `%s': %s", Input, strerror (errno));
+        Error ("Cannot open input file '%s': %s", Input, strerror (errno));
     }
 
     /* Seek to the end and determine the size */
@@ -337,9 +337,9 @@ static void ConvertFile (const char* Input, const char* Output)
 
     /* Check if the size is reasonable */
     if (Size > 32*1024) {
-        Error ("Input file `%s' is too large (max = 32k)", Input);
+        Error ("Input file '%s' is too large (max = 32k)", Input);
     } else if (Size < 0x100) {
-        Error ("Input file `%s' is too small to be a vector font file", Input);
+        Error ("Input file '%s' is too small to be a vector font file", Input);
     }
 
     /* Allocate memory for the file */
@@ -347,7 +347,7 @@ static void ConvertFile (const char* Input, const char* Output)
 
     /* Read the file contents into the buffer */
     if (fread (Buf, 1, (size_t) Size, F) != (size_t) Size) {
-        Error ("Error reading from input file `%s'", Input);
+        Error ("Error reading from input file '%s'", Input);
     }
 
     /* Close the file */
@@ -355,14 +355,14 @@ static void ConvertFile (const char* Input, const char* Output)
 
     /* Verify the header */
     if (memcmp (Buf, ChrHeader, sizeof (ChrHeader)) != 0) {
-        Error ("Invalid format for `%s': invalid header", Input);
+        Error ("Invalid format for '%s': invalid header", Input);
     }
     MsgEnd = memchr (Buf + sizeof (ChrHeader), 0x1A, 0x80);
     if (MsgEnd == 0) {
-        Error ("Invalid format for `%s': description not found", Input);
+        Error ("Invalid format for '%s': description not found", Input);
     }
     if (MsgEnd[1] != 0x80 || MsgEnd[2] != 0x00) {
-        Error ("Invalid format for `%s': wrong header size", Input);
+        Error ("Invalid format for '%s': wrong header size", Input);
     }
 
     /* We expect the file to hold chars from 0x20 (space) to 0x7E (tilde) */
@@ -372,9 +372,9 @@ static void ConvertFile (const char* Input, const char* Output)
     if (FirstChar > 0x20 || LastChar < 0x7E) {
         Print (stderr, 1, "FirstChar = $%04X, CharCount = %u\n",
                FirstChar, CharCount);
-        Error ("File `%s' doesn't contain the chars we need", Input);
+        Error ("File '%s' doesn't contain the chars we need", Input);
     } else if (LastChar >= 0x100) {
-        Error ("File `%s' contains too many character definitions", Input);
+        Error ("File '%s' contains too many character definitions", Input);
     }
 
     /* Print the copyright from the header */
@@ -405,7 +405,7 @@ static void ConvertFile (const char* Input, const char* Output)
 
         /* Check if the offset is valid */
         if (Remaining <= 0) {
-            Error ("Invalid data offset in input file `%s'", Input);
+            Error ("Invalid data offset in input file '%s'", Input);
         }
 
         /* Convert the vector data and place it into the buffer */
@@ -422,7 +422,7 @@ static void ConvertFile (const char* Input, const char* Output)
 
     /* The baseline must be zero, otherwise we cannot convert */
     if (Buf[0x89] != 0) {
-        Error ("Baseline of font in `%s' is not zero", Input);
+        Error ("Baseline of font in '%s' is not zero", Input);
     }
 
     /* If the output file is NULL, use the name of the input file with ".tch"
@@ -435,33 +435,33 @@ static void ConvertFile (const char* Input, const char* Output)
     /* Open the output file */
     F = fopen (Output, "wb");
     if (F == 0) {
-        Error ("Cannot open output file `%s': %s", Output, strerror (errno));
+        Error ("Cannot open output file '%s': %s", Output, strerror (errno));
     }
 
     /* Write the header to the output file */
     if (fwrite (TchHeader, 1, sizeof (TchHeader), F) != sizeof (TchHeader)) {
-        Error ("Error writing to `%s' (disk full?)", Output);
+        Error ("Error writing to '%s' (disk full?)", Output);
     }
 
     /* Write the width table to the output file */
     if (fwrite (WidthBuf, 1, 0x5F, F) != 0x5F) {
-        Error ("Error writing to `%s' (disk full?)", Output);
+        Error ("Error writing to '%s' (disk full?)", Output);
     }
 
     /* Write the offsets to the output file */
     if (fwrite (SB_GetConstBuf (&Offsets), 1, 0x5F * 2, F) != 0x5F * 2) {
-        Error ("Error writing to `%s' (disk full?)", Output);
+        Error ("Error writing to '%s' (disk full?)", Output);
     }
 
     /* Write the data to the output file */
     Offs = SB_GetLen (&VectorData);
     if (fwrite (SB_GetConstBuf (&VectorData), 1, Offs, F) != Offs) {
-        Error ("Error writing to `%s' (disk full?)", Output);
+        Error ("Error writing to '%s' (disk full?)", Output);
     }
 
     /* Close the output file */
     if (fclose (F) != 0) {
-        Error ("Error closing to `%s': %s", Output, strerror (errno));
+        Error ("Error closing to '%s': %s", Output, strerror (errno));
     }
 
     /* Done */
index e61bd02a54442f130511de8a0878757682c3573f..4a65e8729b025edafd86e9f555b5505ed70b5ad1 100644 (file)
@@ -339,7 +339,7 @@ static void CmdAddFile (CmdDesc* Cmd, const char* File)
         for (I = 0; I < Cmd->FileCount; ++I) {
             if (strcmp (Cmd->Files[I], File) == 0) {
                 /* Duplicate file */
-                Warning ("Duplicate file in argument list: `%s'", File);
+                Warning ("Duplicate file in argument list: '%s'", File);
                 /* No need to search further */
                 break;
             }
@@ -447,7 +447,7 @@ static void ExecProgram (CmdDesc* Cmd)
     /* Check the result code */
     if (Status < 0) {
         /* Error executing the program */
-        Error ("Cannot execute `%s': %s", Cmd->Name, strerror (errno));
+        Error ("Cannot execute '%s': %s", Cmd->Name, strerror (errno));
     } else if (Status != 0) {
         /* Called program had an error */
         exit (Status);
@@ -573,7 +573,7 @@ static void AssembleIntermediate (const char* SourceFile)
 
     /* Remove the input file */
     if (remove (AsmName) < 0) {
-        Warning ("Cannot remove temporary file `%s': %s",
+        Warning ("Cannot remove temporary file '%s': %s",
                  AsmName, strerror (errno));
     }
 
@@ -757,7 +757,7 @@ static void Usage (void)
             "  -o name\t\t\tName the output file\n"
             "  -r\t\t\t\tEnable register variables\n"
             "  -t sys\t\t\tSet the target system\n"
-            "  -u sym\t\t\tForce an import of symbol `sym'\n"
+            "  -u sym\t\t\tForce an import of symbol 'sym'\n"
             "  -v\t\t\t\tVerbose mode\n"
             "  -vm\t\t\t\tVerbose map file\n"
             "  -C name\t\t\tUse linker config file\n"
@@ -803,7 +803,7 @@ static void Usage (void)
             "  --debug\t\t\tDebug mode\n"
             "  --debug-info\t\t\tAdd debug info\n"
             "  --feature name\t\tSet an emulation feature\n"
-            "  --force-import sym\t\tForce an import of symbol `sym'\n"
+            "  --force-import sym\t\tForce an import of symbol 'sym'\n"
             "  --help\t\t\tHelp (this text)\n"
             "  --include-dir dir\t\tSet a compiler include directory path\n"
             "  --ld-args options\t\tPass options to the linker\n"
@@ -1296,9 +1296,9 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
 {
     Target = FindTarget (Arg);
     if (Target == TGT_UNKNOWN) {
-        Error ("No such target system: `%s'", Arg);
+        Error ("No such target system: '%s'", Arg);
     } else if (Target == TGT_MODULE) {
-        Error ("Cannot use `module' as target, use --module instead");
+        Error ("Cannot use 'module' as target, use --module instead");
     }
 }
 
@@ -1631,7 +1631,7 @@ int main (int argc, char* argv [])
                     break;
 
                 default:
-                    Error ("Don't know what to do with `%s'", Arg);
+                    Error ("Don't know what to do with '%s'", Arg);
 
             }
 
index 283285c76e50c667154f0d7b2810c87d96774e30..36eb7aab4ec94b8a99189b7306c22f74dd0421d7 100644 (file)
@@ -82,7 +82,7 @@ int spawnvp (int Mode attribute ((unused)), const char* File, char* const argv [
 
         /* The son - exec the program */
         if (execvp (File, argv) < 0) {
-            Error ("Cannot exec `%s': %s", File, strerror (errno));
+            Error ("Cannot exec '%s': %s", File, strerror (errno));
         }
 
     } else {
@@ -94,7 +94,7 @@ int spawnvp (int Mode attribute ((unused)), const char* File, char* const argv [
 
         /* Examine the child status */
         if (!WIFEXITED (Status)) {
-            Error ("Subprocess `%s' aborted by signal %d", File, WTERMSIG (Status));
+            Error ("Subprocess '%s' aborted by signal %d", File, WTERMSIG (Status));
         }
     }
 
index af036ebf757b6fd328058d90efda94f1ee959cac..ec6d68401a2bef93b1542f4ccd8b576e0337dab4 100644 (file)
@@ -394,7 +394,7 @@ void Convert (const O65Data* D)
         switch (O->Type) {
 
             case O65_OPT_FILENAME:
-                Print (stdout, 1, "O65 filename option:         `%s'\n",
+                Print (stdout, 1, "O65 filename option:         '%s'\n",
                        GetO65OptionText (O));
                 break;
 
@@ -402,7 +402,7 @@ void Convert (const O65Data* D)
                 if (O->Len == 2) {
                     Warning ("Operating system option without data found");
                 } else {
-                    Print (stdout, 1, "O65 operating system option: `%s'\n",
+                    Print (stdout, 1, "O65 operating system option: '%s'\n",
                            GetO65OSName (O->Data[0]));
                     switch (O->Data[0]) {
                         case O65_OS_CC65_MODULE:
@@ -418,7 +418,7 @@ void Convert (const O65Data* D)
                 break;
 
             case O65_OPT_ASM:
-                Print (stdout, 1, "O65 assembler option:        `%s'\n",
+                Print (stdout, 1, "O65 assembler option:        '%s'\n",
                        GetO65OptionText (O));
                 break;
 
@@ -427,11 +427,11 @@ void Convert (const O65Data* D)
                     xfree (Author);
                 }
                 Author = xstrdup (GetO65OptionText (O));
-                Print (stdout, 1, "O65 author option:           `%s'\n", Author);
+                Print (stdout, 1, "O65 author option:           '%s'\n", Author);
                 break;
 
             case O65_OPT_TIMESTAMP:
-                Print (stdout, 1, "O65 timestamp option:        `%s'\n",
+                Print (stdout, 1, "O65 timestamp option:        '%s'\n",
                        GetO65OptionText (O));
                 break;
 
@@ -450,11 +450,11 @@ void Convert (const O65Data* D)
     /* Open the output file */
     F = fopen (OutputName, "w");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", OutputName, strerror (errno));
+        Error ("Cannot open '%s': %s", OutputName, strerror (errno));
     }
 
     /* Create a header */
-    fprintf (F, ";\n; File generated by co65 v %s using model `%s'\n;\n",
+    fprintf (F, ";\n; File generated by co65 v %s using model '%s'\n;\n",
              GetVersionAsString (), GetModelName (Model));
 
     /* Select the CPU */
index 43d263516d952cfe799ce6ee9104380576530795..33ecdbf6f55f8e5b49156a8237a3097724876f13 100644 (file)
@@ -112,7 +112,7 @@ static void CheckLabelName (const char* Label)
     }
 
     if (*L) {
-        Error ("Label name `%s' is invalid", Label);
+        Error ("Label name '%s' is invalid", Label);
     }
 }
 
@@ -123,7 +123,7 @@ static void CheckSegName (const char* Seg)
 {
     /* Print an error and abort if the name is not ok */
     if (!ValidSegName (Seg)) {
-        Error ("Segment name `%s' is invalid", Seg);
+        Error ("Segment name '%s' is invalid", Seg);
     }
 }
 
@@ -244,7 +244,7 @@ static void OptO65Model (const char* Opt attribute ((unused)), const char* Arg)
     /* Search for the model name */
     Model = FindModel (Arg);
     if (Model == O65_MODEL_INVALID) {
-        Error ("Unknown o65 model `%s'", Arg);
+        Error ("Unknown o65 model '%s'", Arg);
     }
 }
 
@@ -387,7 +387,7 @@ int main (int argc, char* argv [])
         } else {
             /* Filename. Check if we already had one */
             if (InputName) {
-                Error ("Don't know what to do with `%s'", Arg);
+                Error ("Don't know what to do with '%s'", Arg);
             } else {
                 InputName = Arg;
             }
index 3496995a89dc4d393fd58249c1886f47a3d0c3bd..81c07bb8c6483093a33f1027d041e27e928d0a6b 100644 (file)
@@ -361,7 +361,7 @@ O65Data* ReadO65File (const char* Name)
     /* Open the o65 input file */
     FILE* F = fopen (Name, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", Name, strerror (errno));
+        Error ("Cannot open '%s': %s", Name, strerror (errno));
     }
 
     /* Read the file data */
index c6c5d2d95deff1fc375fc5944836ad306d9ecd95..0d0e6ef4ba300c0b27143f5061d06c2d19f48905 100644 (file)
@@ -75,5 +75,5 @@ static void DefaultCheckFailed (const char* Msg, const char* Cond,
                                 const char* File, unsigned Line)
 {
     /* Output a diagnostic and abort */
-    AbEnd ("%s%s, file `%s', line %u", Msg, Cond, File, Line);
+    AbEnd ("%s%s, file '%s', line %u", Msg, Cond, File, Line);
 }
index 0f6622934beabc03d002bad0ce35cdac7cc4663a..4de79a41945204b58081c94aebc1b869691da1f5 100644 (file)
@@ -239,7 +239,7 @@ void NeedArg (const char* Opt)
 void InvArg (const char* Opt, const char* Arg)
 /* Print an error about an invalid option argument and exit. */
 {
-    AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);
+    AbEnd ("Invalid argument for %s: '%s'", Opt, Arg);
 }
 
 
@@ -247,7 +247,7 @@ void InvArg (const char* Opt, const char* Arg)
 void InvDef (const char* Def)
 /* Print an error about an invalid definition and die */
 {
-    AbEnd ("Invalid definition: `%s'", Def);
+    AbEnd ("Invalid definition: '%s'", Def);
 }
 
 
index 06a397d52fa061536c9d0b0c9726d27fecbdce0f..59ba0aab4d2e30a7f472ecf943271cbd62b67dec 100644 (file)
@@ -148,7 +148,7 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown)
             ++L;
         } else {
             if (!IgnoreUnknown) {
-                Error ("%s(%u): Missing `='", Filename, Line);
+                Error ("%s(%u): Missing '='", Filename, Line);
             }
             continue;
         }
index 9aff732b3c76e50420ce3714e28fe671da2471f5..3fb6a21d32904559e60feb3fc44d7974cf295478 100644 (file)
@@ -78,12 +78,12 @@ void LoadCode (void)
     /* Open the file */
     F = fopen (InFile, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", InFile, strerror (errno));
+        Error ("Cannot open '%s': %s", InFile, strerror (errno));
     }
 
     /* Seek to the end to get the size of the file */
     if (fseek (F, 0, SEEK_END) != 0) {
-        Error ("Cannot seek on file `%s': %s", InFile, strerror (errno));
+        Error ("Cannot seek on file '%s': %s", InFile, strerror (errno));
     }
     Size = ftell (F);
 
@@ -101,7 +101,7 @@ void LoadCode (void)
     ** the file.
     */
     if (fseek (F, InputOffs, SEEK_SET) != 0) {
-        Error ("Cannot seek on file `%s': %s", InFile, strerror (errno));
+        Error ("Cannot seek on file '%s': %s", InFile, strerror (errno));
     }
     Size -= InputOffs;
 
@@ -130,10 +130,10 @@ void LoadCode (void)
 
     /* Check if the size is larger than what we can read */
     if (Size == 0) {
-        Error ("Nothing to read from input file `%s'", InFile);
+        Error ("Nothing to read from input file '%s'", InFile);
     }
     if (Size > MaxCount) {
-        Warning ("File `%s' is too large, ignoring %ld bytes",
+        Warning ("File '%s' is too large, ignoring %ld bytes",
                  InFile, Size - MaxCount);
     } else if (MaxCount > Size) {
         MaxCount = (unsigned) Size;
@@ -142,7 +142,7 @@ void LoadCode (void)
     /* Read from the file and remember the number of bytes read */
     Count = fread (CodeBuf + StartAddr, 1, MaxCount, F);
     if (ferror (F) || Count != MaxCount) {
-        Error ("Error reading from `%s': %s", InFile, strerror (errno));
+        Error ("Error reading from '%s': %s", InFile, strerror (errno));
     }
 
     /* Close the file */
index b0a784dd88338ceb5f03bf4fb5efbde4310e0f78..1fc07f0066db94184de061a49d06099c694fd6ac 100644 (file)
@@ -617,7 +617,7 @@ int main (int argc, char* argv [])
         } else {
             /* Filename. Check if we already had one */
             if (InFile) {
-                fprintf (stderr, "%s: Don't know what to do with `%s'\n",
+                fprintf (stderr, "%s: Don't know what to do with '%s'\n",
                          ProgName, Arg);
                 exit (EXIT_FAILURE);
             } else {
index 4daacb1ee5222f813dc6f6f82f27d3f7af2d1c0c..5b0b6b79cdadeae6f9a1668dfdf7ae63c162448c 100644 (file)
@@ -96,7 +96,7 @@ void OpenOutput (const char* Name)
     if (Name != 0) {
         F = fopen (Name, "w");
         if (F == 0) {
-            Error ("Cannot open `%s': %s", Name, strerror (errno));
+            Error ("Cannot open '%s': %s", Name, strerror (errno));
         }
     } else {
         F = stdout;
index 2bb80a8ef15c786c509012277c6c6683652a520a..85853d6c4308b1df513df80be5a803bf9d856064 100644 (file)
@@ -7,7 +7,7 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2000-2005 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
+/*               Roemerstrasse 52                                            */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
@@ -466,7 +466,7 @@ Again:
             /* C++ style comment */
             NextChar ();
             if (C != '/') {
-                InfoError ("Invalid token `/'");
+                InfoError ("Invalid token '/'");
             }
             do {
                 NextChar ();
@@ -482,7 +482,7 @@ Again:
             break;
 
         default:
-            InfoError ("Invalid character `%c'", C);
+            InfoError ("Invalid character '%c'", C);
 
     }
 }
@@ -503,7 +503,7 @@ void InfoConsume (unsigned T, const char* Msg)
 void InfoConsumeLCurly (void)
 /* Consume a left curly brace */
 {
-    InfoConsume (INFOTOK_LCURLY, "`{' expected");
+    InfoConsume (INFOTOK_LCURLY, "'{' expected");
 }
 
 
@@ -511,7 +511,7 @@ void InfoConsumeLCurly (void)
 void InfoConsumeRCurly (void)
 /* Consume a right curly brace */
 {
-    InfoConsume (INFOTOK_RCURLY, "`}' expected");
+    InfoConsume (INFOTOK_RCURLY, "'}' expected");
 }
 
 
@@ -519,7 +519,7 @@ void InfoConsumeRCurly (void)
 void InfoConsumeSemi (void)
 /* Consume a semicolon */
 {
-    InfoConsume (INFOTOK_SEMI, "`;' expected");
+    InfoConsume (INFOTOK_SEMI, "';' expected");
 }
 
 
@@ -527,7 +527,7 @@ void InfoConsumeSemi (void)
 void InfoConsumeColon (void)
 /* Consume a colon */
 {
-    InfoConsume (INFOTOK_COLON, "`:' expected");
+    InfoConsume (INFOTOK_COLON, "':' expected");
 }
 
 
@@ -683,7 +683,7 @@ void InfoOpenInput (void)
     /* Open the file */
     InputFile = fopen (InfoFile, "r");
     if (InputFile == 0) {
-        Error ("Cannot open `%s': %s", InfoFile, strerror (errno));
+        Error ("Cannot open '%s': %s", InfoFile, strerror (errno));
     }
 
     /* Initialize variables */
index e0d8894f96d24d26ee02bcc244fa54be28719e91..42001ed072736d1ca82a075500837d7b25b98b4e 100644 (file)
@@ -2687,7 +2687,7 @@ static void NextToken (InputData* D)
             break;
 
         default:
-            ParseError (D, CC65_ERROR, "Invalid input character `%c'", D->C);
+            ParseError (D, CC65_ERROR, "Invalid input character '%c'", D->C);
 
     }
 }
index a53801a395028eb3bafd4926b5d068bc622185e6..f6554eada40f946cce44d188a19aee3d698bbd1e 100644 (file)
@@ -151,12 +151,12 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
             break;
 
         case TGT_UNKNOWN:
-            AbEnd ("Unknown target system `%s'", Arg);
+            AbEnd ("Unknown target system '%s'", Arg);
             break;
 
         default:
             /* Target is known but unsupported */
-            AbEnd ("Unsupported target system `%s'", Arg);
+            AbEnd ("Unsupported target system '%s'", Arg);
             break;
     }
 }
index 276b135956c9476d2788fc7e4f4ab78812eb8a0e..626ed94a622b439e56d1f0ca1a1d6d4d26909b83 100644 (file)
@@ -129,7 +129,7 @@ void CheckAssertions (void)
 
         /* If the expression is not constant, we're not able to handle it */
         if (!IsConstExpr (A->Expr)) {
-            Warning ("Cannot evaluate assertion in module `%s', line %u",
+            Warning ("Cannot evaluate assertion in module '%s', line %u",
                      Module, Line);
         } else if (GetExprVal (A->Expr) == 0) {
 
@@ -149,7 +149,7 @@ void CheckAssertions (void)
                     break;
 
                 default:
-                    Internal ("Invalid assertion action (%u) in module `%s', "
+                    Internal ("Invalid assertion action (%u) in module '%s', "
                               "line %u (file corrupt?)",
                               A->Action, Module, Line);
                     break;
index a77d49679c1105771e0dddaf2c121200ad978da0..6886224159ac20039af80da801301b2e2bdab7e7 100644 (file)
@@ -154,7 +154,7 @@ static void BinWriteMem (BinDesc* D, MemoryArea* M)
         SegDesc* S = CollAtUnchecked (&M->SegList, I);
 
         /* Keep the user happy */
-        Print (stdout, 1, "    Writing `%s'\n", GetString (S->Name));
+        Print (stdout, 1, "    Writing '%s'\n", GetString (S->Name));
 
         /* Writes do only occur in the load area and not for BSS segments */
         DoWrite = (S->Flags & SF_BSS) == 0      &&      /* No BSS segment */
@@ -286,23 +286,23 @@ void BinWriteTarget (BinDesc* D, struct File* F)
     /* Open the file */
     D->F = fopen (D->Filename, "wb");
     if (D->F == 0) {
-        Error ("Cannot open `%s': %s", D->Filename, strerror (errno));
+        Error ("Cannot open '%s': %s", D->Filename, strerror (errno));
     }
 
     /* Keep the user happy */
-    Print (stdout, 1, "Opened `%s'...\n", D->Filename);
+    Print (stdout, 1, "Opened '%s'...\n", D->Filename);
 
     /* Dump all memory areas */
     for (I = 0; I < CollCount (&F->MemoryAreas); ++I) {
         /* Get this entry */
         MemoryArea* M = CollAtUnchecked (&F->MemoryAreas, I);
-        Print (stdout, 1, "  Dumping `%s'\n", GetString (M->Name));
+        Print (stdout, 1, "  Dumping '%s'\n", GetString (M->Name));
         BinWriteMem (D, M);
     }
 
     /* Close the file */
     if (fclose (D->F) != 0) {
-        Error ("Cannot write to `%s': %s", D->Filename, strerror (errno));
+        Error ("Cannot write to '%s': %s", D->Filename, strerror (errno));
     }
 
     /* Reset the file and filename */
index 1d3e810f6b70f4c3c4bc4614f8eb6ba000cd516a..099617ba0b84a797e64701f1d20cc92c08bd0058 100644 (file)
@@ -226,7 +226,7 @@ static MemoryArea* CfgGetMemory (unsigned Name)
 {
     MemoryArea* M = CfgFindMemory (Name);
     if (M == 0) {
-        CfgError (&CfgErrorPos, "Invalid memory area `%s'", GetString (Name));
+        CfgError (&CfgErrorPos, "Invalid memory area '%s'", GetString (Name));
     }
     return M;
 }
@@ -320,7 +320,7 @@ static MemoryArea* CreateMemoryArea (const FilePos* Pos, unsigned Name)
     MemoryArea* M = CfgFindMemory (Name);
     if (M) {
         CfgError (&CfgErrorPos,
-                  "Memory area `%s' defined twice",
+                  "Memory area '%s' defined twice",
                   GetString (Name));
     }
 
@@ -343,7 +343,7 @@ static SegDesc* NewSegDesc (unsigned Name)
     /* Check for duplicate names */
     SegDesc* S = CfgFindSegDesc (Name);
     if (S) {
-        CfgError (&CfgErrorPos, "Segment `%s' defined twice", GetString (Name));
+        CfgError (&CfgErrorPos, "Segment '%s' defined twice", GetString (Name));
     }
 
     /* Allocate memory */
@@ -566,7 +566,7 @@ static void ParseFiles (void)
         F = FindFile (GetStrBufId (&CfgSVal));
         if (F == 0) {
             CfgError (&CfgErrorPos,
-                      "File `%s' not found in MEMORY section",
+                      "File '%s' not found in MEMORY section",
                       SB_GetConstBuf (&CfgSVal));
         }
 
@@ -798,7 +798,7 @@ static void ParseSegments (void)
         */
         if ((S->Flags & SF_BSS) != 0 && (S->Load != S->Run)) {
             CfgWarning (&CfgErrorPos,
-                        "Segment with type `bss' has both LOAD and RUN "
+                        "Segment with type 'bss' has both LOAD and RUN "
                         "memory areas assigned");
         }
 
@@ -806,7 +806,7 @@ static void ParseSegments (void)
         if ((S->Flags & SF_RO) == 0) {
             if (S->Run->Flags & MF_RO) {
                 CfgError (&CfgErrorPos,
-                          "Cannot put r/w segment `%s' in r/o memory area `%s'",
+                          "Cannot put r/w segment '%s' in r/o memory area '%s'",
                           GetString (S->Name), GetString (S->Run->Name));
             }
         }
@@ -1511,7 +1511,7 @@ static void ParseConfig (void)
         CfgNextTok ();
 
         /* Expected a curly brace */
-        CfgConsume (CFGTOK_LCURLY, "`{' expected");
+        CfgConsume (CFGTOK_LCURLY, "'{' expected");
 
         /* Read the block */
         switch (BlockTok) {
@@ -1546,7 +1546,7 @@ static void ParseConfig (void)
         }
 
         /* Skip closing brace */
-        CfgConsume (CFGTOK_RCURLY, "`}' expected");
+        CfgConsume (CFGTOK_RCURLY, "'}' expected");
 
     } while (CfgTok != CFGTOK_EOF);
 }
@@ -1603,7 +1603,7 @@ static void ProcessSegments (void)
         */
         if ((S->Flags & SF_BSS) != 0 && S->Seg != 0 && !IsBSSType (S->Seg)) {
             CfgWarning (GetSourcePos (S->LI),
-                        "Segment `%s' with type `bss' contains initialized data",
+                        "Segment '%s' with type 'bss' contains initialized data",
                         GetString (S->Name));
         }
 
@@ -1632,7 +1632,7 @@ static void ProcessSegments (void)
             /* Print a warning if the segment is not optional */
             if ((S->Flags & SF_OPTIONAL) == 0) {
                 CfgWarning (&CfgErrorPos,
-                            "Segment `%s' does not exist",
+                            "Segment '%s' does not exist",
                             GetString (S->Name));
             }
 
@@ -1665,7 +1665,7 @@ static void ProcessSymbols (void)
                 if (O65GetImport (O65FmtDesc, Sym->Name) != 0) {
                     CfgError (
                         GetSourcePos (Sym->LI),
-                        "Exported o65 symbol `%s' cannot also be an o65 import",
+                        "Exported o65 symbol '%s' cannot also be an o65 import",
                         GetString (Sym->Name)
                     );
                 }
@@ -1677,7 +1677,7 @@ static void ProcessSymbols (void)
                 if (O65GetExport (O65FmtDesc, Sym->Name) != 0) {
                     CfgError (
                         GetSourcePos (Sym->LI),
-                        "Duplicate exported o65 symbol: `%s'",
+                        "Duplicate exported o65 symbol: '%s'",
                         GetString (Sym->Name)
                     );
                 }
@@ -1691,7 +1691,7 @@ static void ProcessSymbols (void)
                 if (O65GetExport (O65FmtDesc, Sym->Name) != 0) {
                     CfgError (
                         GetSourcePos (Sym->LI),
-                        "Imported o65 symbol `%s' cannot also be an o65 export",
+                        "Imported o65 symbol '%s' cannot also be an o65 export",
                         GetString (Sym->Name)
                     );
                 }
@@ -1703,7 +1703,7 @@ static void ProcessSymbols (void)
                 if (O65GetImport (O65FmtDesc, Sym->Name) != 0) {
                     CfgError (
                         GetSourcePos (Sym->LI),
-                        "Duplicate imported o65 symbol: `%s'",
+                        "Duplicate imported o65 symbol: '%s'",
                         GetString (Sym->Name)
                     );
                 }
@@ -1813,7 +1813,7 @@ unsigned CfgProcess (void)
         */
         if (!IsConstExpr (M->StartExpr)) {
             CfgError (GetSourcePos (M->LI),
-                      "Start address of memory area `%s' is not constant",
+                      "Start address of memory area '%s' is not constant",
                       GetString (M->Name));
         }
         Addr = M->Start = GetExprVal (M->StartExpr);
@@ -1838,7 +1838,7 @@ unsigned CfgProcess (void)
         /* Resolve the size expression */
         if (!IsConstExpr (M->SizeExpr)) {
             CfgError (GetSourcePos (M->LI),
-                      "Size of memory area `%s' is not constant",
+                      "Size of memory area '%s' is not constant",
                       GetString (M->Name));
         }
         M->Size = GetExprVal (M->SizeExpr);
@@ -1859,15 +1859,15 @@ unsigned CfgProcess (void)
                     ++Overwrites;
                 } else {
                     CfgError (GetSourcePos (M->LI),
-                              "Segment `%s' of type `overwrite' requires either"
-                              " `Start' or `Offset' attribute to be specified",
+                              "Segment '%s' of type 'overwrite' requires either"
+                              " 'Start' or 'Offset' attribute to be specified",
                               GetString (S->Name));
                 }
             } else {
                 if (Overwrites > 0) {
                     CfgError (GetSourcePos (M->LI),
-                              "Segment `%s' is preceded by at least one segment"
-                              " of type `overwrite'",
+                              "Segment '%s' is preceded by at least one segment"
+                              " of type 'overwrite'",
                               GetString (S->Name));
                 }
             }
@@ -1893,7 +1893,7 @@ unsigned CfgProcess (void)
                     ** in the linker.
                     */
                     CfgWarning (GetSourcePos (S->LI),
-                                "Segment `%s' isn't aligned properly; the"
+                                "Segment '%s' isn't aligned properly; the"
                                 " resulting executable might not be functional.",
                                 GetString (S->Name));
                 }
@@ -1908,7 +1908,7 @@ unsigned CfgProcess (void)
                     */
                     if (M->FillLevel == 0 && NewAddr > Addr) {
                         CfgWarning (GetSourcePos (S->LI),
-                                    "The first segment in memory area `%s' "
+                                    "The first segment in memory area '%s' "
                                     "needs fill bytes for alignment.",
                                     GetString (M->Name));
                     }
@@ -1929,7 +1929,7 @@ unsigned CfgProcess (void)
                     if (S->Flags & SF_OVERWRITE) {
                         if (NewAddr < M->Start) {
                             CfgError (GetSourcePos (S->LI),
-                                      "Segment `%s' begins before memory area `%s'",
+                                      "Segment '%s' begins before memory area '%s'",
                                       GetString (S->Name), GetString (M->Name));
                         } else {
                             Addr = NewAddr;
@@ -1940,12 +1940,12 @@ unsigned CfgProcess (void)
                             ++Overflows;
                             if (S->Flags & SF_OFFSET) {
                                 CfgWarning (GetSourcePos (S->LI),
-                                            "Segment `%s' offset is too small in `%s' by %lu byte%c",
+                                            "Segment '%s' offset is too small in '%s' by %lu byte%c",
                                             GetString (S->Name), GetString (M->Name),
                                             Addr - NewAddr, (Addr - NewAddr == 1) ? ' ' : 's');
                             } else {
                                 CfgWarning (GetSourcePos (S->LI),
-                                            "Segment `%s' start address is too low in `%s' by %lu byte%c",
+                                            "Segment '%s' start address is too low in '%s' by %lu byte%c",
                                             GetString (S->Name), GetString (M->Name),
                                             Addr - NewAddr, (Addr - NewAddr == 1) ? ' ' : 's');
                             }
@@ -1992,7 +1992,7 @@ unsigned CfgProcess (void)
                 ++Overflows;
                 M->Flags |= MF_OVERFLOW;
                 CfgWarning (GetSourcePos (M->LI),
-                            "Segment `%s' overflows memory area `%s' by %lu byte%c",
+                            "Segment '%s' overflows memory area '%s' by %lu byte%c",
                             GetString (S->Name), GetString (M->Name),
                             M->FillLevel - M->Size, (M->FillLevel - M->Size == 1) ? ' ' : 's');
             }
@@ -2117,7 +2117,7 @@ void CfgWriteTarget (void)
                     MemoryArea* M = CollAtUnchecked (&F->MemoryAreas, J);
 
                     /* Debugging */
-                    Print (stdout, 2, "Skipping `%s'...\n", GetString (M->Name));
+                    Print (stdout, 2, "Skipping '%s'...\n", GetString (M->Name));
 
                     /* Walk throught the segments */
                     for (K = 0; K < CollCount (&M->SegList); ++K) {
index 386706f667f0a76d59a33315ac858da081af821a..204aff9d86690fce2edcd7d3310956a190c34e18 100644 (file)
@@ -107,7 +107,7 @@ void CreateDbgFile (void)
     /* Open the debug info file */
     FILE* F = fopen (DbgFileName, "w");
     if (F == 0) {
-        Error ("Cannot create debug file `%s': %s", DbgFileName, strerror (errno));
+        Error ("Cannot create debug file '%s': %s", DbgFileName, strerror (errno));
     }
 
     /* Output version information */
@@ -166,6 +166,6 @@ void CreateDbgFile (void)
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing debug file `%s': %s", DbgFileName, strerror (errno));
+        Error ("Error closing debug file '%s': %s", DbgFileName, strerror (errno));
     }
 }
index e7ef3d413d61f7d5d5b62701f3b0b69a4b65e554..0f9ac1c10a54fa60ab7c6be0422df15a93aa59b7 100644 (file)
@@ -166,13 +166,13 @@ Import* ReadImport (FILE* F, ObjData* Obj)
         */
         if (ObjHasFiles (I->Obj)) {
             const LineInfo* LI = GetImportPos (I);
-            Error ("Invalid import size in for `%s', imported from %s(%u): 0x%02X",
+            Error ("Invalid import size in for '%s', imported from %s(%u): 0x%02X",
                    GetString (I->Name),
                    GetSourceName (LI),
                    GetSourceLine (LI),
                    I->AddrSize);
         } else {
-            Error ("Invalid import size in for `%s', imported from %s: 0x%02X",
+            Error ("Invalid import size in for '%s', imported from %s: 0x%02X",
                    GetString (I->Name),
                    GetObjFileName (I->Obj),
                    I->AddrSize);
@@ -199,7 +199,7 @@ Import* GenImport (unsigned Name, unsigned char AddrSize)
         /* We have no object file information and no line info for a new
         ** import
         */
-        Error ("Invalid import size 0x%02X for symbol `%s'",
+        Error ("Invalid import size 0x%02X for symbol '%s'",
                I->AddrSize,
                GetString (I->Name));
     }
@@ -483,7 +483,7 @@ void InsertExport (Export* E)
                     }
                 } else {
                     /* Duplicate entry, ignore it */
-                    Warning ("Duplicate external identifier: `%s'",
+                    Warning ("Duplicate external identifier: '%s'",
                              GetString (L->Name));
                 }
                 return;
@@ -662,7 +662,7 @@ long GetExportVal (const Export* E)
 {
     if (E->Expr == 0) {
         /* OOPS */
-        Internal ("`%s' is an undefined external", GetString (E->Name));
+        Internal ("'%s' is an undefined external", GetString (E->Name));
     }
     return GetExprVal (E->Expr);
 }
@@ -720,9 +720,9 @@ static void CheckSymType (const Export* E)
             }
 
             /* Output the diagnostic */
-            Warning ("Address size mismatch for `%s': "
-                     "Exported from %s as `%s', "
-                     "import in %s as `%s'",
+            Warning ("Address size mismatch for '%s': "
+                     "Exported from %s as '%s', "
+                     "import in %s as '%s'",
                      GetString (E->Name),
                      SB_GetConstBuf (&ExportLoc),
                      ExpAddrSize,
@@ -770,7 +770,7 @@ static void PrintUnresolved (ExpCheckFunc F, void* Data)
             /* Unresolved external */
             Import* Imp = E->ImpList;
             fprintf (stderr,
-                     "Unresolved external `%s' referenced in:\n",
+                     "Unresolved external '%s' referenced in:\n",
                      GetString (E->Name));
             while (Imp) {
                 unsigned J;
@@ -1053,7 +1053,7 @@ void CircularRefError (const Export* E)
 /* Print an error about a circular reference using to define the given export */
 {
     const LineInfo* LI = GetExportPos (E);
-    Error ("Circular reference for symbol `%s', %s(%u)",
+    Error ("Circular reference for symbol '%s', %s(%u)",
            GetString (E->Name),
            GetSourceName (LI),
            GetSourceLine (LI));
index efdff899e19a5404fa0f9004b6543174c4e9ac00..2a08b5a9858c9adc913a7dcd00431913515d941c 100644 (file)
@@ -407,12 +407,12 @@ long GetExprVal (ExprNode* Expr)
                 Error ("Argument for .BANK is not segment relative or too complex");
             }
             if (D.Seg->MemArea == 0) {
-                Error ("Segment `%s' is referenced by .BANK but "
+                Error ("Segment '%s' is referenced by .BANK but "
                        "not assigned to a memory area",
                        GetString (D.Seg->Name));
             }
             if (D.Seg->MemArea->BankExpr == 0) {
-                Error ("Memory area `%s' is referenced by .BANK but "
+                Error ("Memory area '%s' is referenced by .BANK but "
                        "has no BANK attribute",
                        GetString (D.Seg->MemArea->Name));
             }
index b250125a793e01895a556a7275810f4d6317e4bb..cca10f3adc42b59ba7d6e4c04c45422c9ef864aa 100644 (file)
@@ -89,7 +89,7 @@ ExtSym* NewExtSym (ExtSymTab* Tab, unsigned Name)
     ExtSym* E = GetExtSym (Tab, Name);
     if (E != 0) {
         /* We do already have a symbol with this name */
-        Error ("Duplicate external symbol `%s'", GetString (Name));
+        Error ("Duplicate external symbol '%s'", GetString (Name));
     }
 
     /* Allocate memory for the structure */
index 0dadcfa6778b76c105a362f100c8646a331532fe..dd964cff229f7dfbd216f095bd445055b2f49127 100644 (file)
@@ -112,7 +112,7 @@ static void CloseLibrary (Library* L)
 {
     /* Close the library file */
     if (fclose (L->F) != 0) {
-        Error ("Error closing `%s': %s", GetString (L->Name), strerror (errno));
+        Error ("Error closing '%s': %s", GetString (L->Name), strerror (errno));
     }
     L->F = 0;
 }
@@ -144,7 +144,7 @@ static void LibSeek (Library* L, unsigned long Offs)
 /* Do a seek in the library checking for errors */
 {
     if (fseek (L->F, Offs, SEEK_SET) != 0) {
-        Error ("Seek error in `%s' (%lu): %s",
+        Error ("Seek error in '%s' (%lu): %s",
                GetString (L->Name), Offs, strerror (errno));
     }
 }
@@ -158,7 +158,7 @@ static void LibReadHeader (Library* L)
     L->Header.Magic   = LIB_MAGIC;
     L->Header.Version = Read16 (L->F);
     if (L->Header.Version != LIB_VERSION) {
-        Error ("Wrong data version in `%s'", GetString (L->Name));
+        Error ("Wrong data version in '%s'", GetString (L->Name));
     }
     L->Header.Flags   = Read16 (L->F);
     L->Header.IndexOffs = Read32 (L->F);
@@ -171,12 +171,12 @@ static void LibReadObjHeader (Library* L, ObjData* O)
 {
     O->Header.Magic = Read32 (L->F);
     if (O->Header.Magic != OBJ_MAGIC) {
-        Error ("Object file `%s' in library `%s' is invalid",
+        Error ("Object file '%s' in library '%s' is invalid",
                GetObjFileName (O), GetString (L->Name));
     }
     O->Header.Version = Read16 (L->F);
     if (O->Header.Version != OBJ_VERSION) {
-        Error ("Object file `%s' in library `%s' has wrong version",
+        Error ("Object file '%s' in library '%s' has wrong version",
                GetObjFileName (O), GetString (L->Name));
     }
     O->Header.Flags        = Read16 (L->F);
index 25eca4fcdcf51aeccb1ea6974398d66186e88335..d2c1de0f70b81d1bd1dc513190ae09c753280873 100644 (file)
@@ -162,7 +162,7 @@ void ReadLineInfoList (FILE* F, ObjData* O, Collection* LineInfos)
         ** therefore be part of the line infos read from the object file.
         */
         if (LineInfoIndex >= CollCount (&O->LineInfos)) {
-            Internal ("Invalid line info index %u in module `%s' - max is %u",
+            Internal ("Invalid line info index %u in module '%s' - max is %u",
                       LineInfoIndex,
                       GetObjFileName (O),
                       CollCount (&O->LineInfos));
index 74511a48a244db2c260800e946b1d68aefe39520..e0dcf972782ea51af0a3b1ed7a5119b717812d6c 100644 (file)
@@ -123,7 +123,7 @@ static void Usage (void)
             "  -m name\t\tCreate a map file\n"
             "  -o name\t\tName the default output file\n"
             "  -t sys\t\tSet the target system\n"
-            "  -u sym\t\tForce an import of symbol `sym'\n"
+            "  -u sym\t\tForce an import of symbol 'sym'\n"
             "  -v\t\t\tVerbose mode\n"
             "  -vm\t\t\tVerbose map file\n"
             "\n"
@@ -133,7 +133,7 @@ static void Usage (void)
             "  --dbgfile name\tGenerate debug information\n"
             "  --define sym=val\tDefine a symbol\n"
             "  --end-group\t\tEnd a library group\n"
-            "  --force-import sym\tForce an import of symbol `sym'\n"
+            "  --force-import sym\tForce an import of symbol 'sym'\n"
             "  --help\t\tHelp (this text)\n"
             "  --lib file\t\tLink this library\n"
             "  --lib-path path\tSpecify a library search path\n"
@@ -214,13 +214,13 @@ static void LinkFile (const char* Name, FILETYPE Type)
 
     /* We must have a valid name now */
     if (PathName == 0) {
-        Error ("Input file `%s' not found", Name);
+        Error ("Input file '%s' not found", Name);
     }
 
     /* Try to open the file */
     F = fopen (PathName, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", PathName, strerror (errno));
+        Error ("Cannot open '%s': %s", PathName, strerror (errno));
     }
 
     /* Read the magic word */
@@ -246,7 +246,7 @@ static void LinkFile (const char* Name, FILETYPE Type)
 
         default:
             fclose (F);
-            Error ("File `%s' has unknown type", PathName);
+            Error ("File '%s' has unknown type", PathName);
 
     }
 
@@ -322,7 +322,7 @@ static void OptConfig (const char* Opt attribute ((unused)), const char* Arg)
         PathName = SearchFile (CfgDefaultPath, Arg);
     }
     if (PathName == 0) {
-        Error ("Cannot find config file `%s'", Arg);
+        Error ("Cannot find config file '%s'", Arg);
     }
 
     /* Read the config */
@@ -376,7 +376,7 @@ static void OptForceImport (const char* Opt attribute ((unused)), const char* Ar
         /* Get the address size and check it */
         unsigned char AddrSize = AddrSizeFromStr (ColPos+1);
         if (AddrSize == ADDR_SIZE_INVALID) {
-            Error ("Invalid address size `%s'", ColPos+1);
+            Error ("Invalid address size '%s'", ColPos+1);
         }
 
         /* Create a copy of the argument */
@@ -509,7 +509,7 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
     /* Map the target name to a target id */
     Target = FindTarget (Arg);
     if (Target == TGT_UNKNOWN) {
-        Error ("Invalid target name: `%s'", Arg);
+        Error ("Invalid target name: '%s'", Arg);
     }
 
     /* Set the target binary format */
@@ -526,7 +526,7 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
         PathName = SearchFile (CfgDefaultPath, SB_GetBuf (&FileName));
     }
     if (PathName == 0) {
-        Error ("Cannot find config file `%s'", SB_GetBuf (&FileName));
+        Error ("Cannot find config file '%s'", SB_GetBuf (&FileName));
     }
 
     /* Free file name memory */
index 0cf9b651bc94dce4669fca795b77e03f3b49958a..7fec986ffd929757fad41d63e5dcbc6bae795e1d 100644 (file)
@@ -67,7 +67,7 @@ void CreateMapFile (int ShortMap)
     /* Open the map file */
     FILE* F = fopen (MapFileName, "w");
     if (F == 0) {
-        Error ("Cannot create map file `%s': %s", MapFileName, strerror (errno));
+        Error ("Cannot create map file '%s': %s", MapFileName, strerror (errno));
     }
 
     /* Write a modules list */
@@ -132,7 +132,7 @@ void CreateMapFile (int ShortMap)
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing map file `%s': %s", MapFileName, strerror (errno));
+        Error ("Error closing map file '%s': %s", MapFileName, strerror (errno));
     }
 }
 
@@ -144,7 +144,7 @@ void CreateLabelFile (void)
     /* Open the label file */
     FILE* F = fopen (LabelFileName, "w");
     if (F == 0) {
-        Error ("Cannot create label file `%s': %s", LabelFileName, strerror (errno));
+        Error ("Cannot create label file '%s': %s", LabelFileName, strerror (errno));
     }
 
     /* Print the labels for the export symbols */
@@ -155,6 +155,6 @@ void CreateLabelFile (void)
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing label file `%s': %s", LabelFileName, strerror (errno));
+        Error ("Error closing label file '%s': %s", LabelFileName, strerror (errno));
     }
 }
index aceb5158afb6f00b164d0c20a99171c9a5aaa661..e36f40d3614a4aaa4548be09c7f677aeb6b3e844 100644 (file)
@@ -784,7 +784,7 @@ static void O65WriteSeg (O65Desc* D, SegDesc** Seg, unsigned Count, int DoWrite)
         S = Seg [I];
 
         /* Keep the user happy */
-        Print (stdout, 1, "    Writing `%s'\n", GetString (S->Name));
+        Print (stdout, 1, "    Writing '%s'\n", GetString (S->Name));
 
         /* Write this segment */
         if (DoWrite) {
@@ -805,7 +805,7 @@ static void O65WriteSeg (O65Desc* D, SegDesc** Seg, unsigned Count, int DoWrite)
 
     /* Check the size of the segment for overflow */
     if ((D->Header.Mode & MF_SIZE_MASK) == MF_SIZE_16BIT && D->SegSize > 0xFFFF) {
-        Error ("Segment overflow in file `%s'", D->Filename);
+        Error ("Segment overflow in file '%s'", D->Filename);
     }
 
 }
@@ -940,7 +940,7 @@ static void O65WriteExports (O65Desc* D)
         */
         Export* E = FindExport (NameIdx);
         if (E == 0 || IsUnresolvedExport (E)) {
-            Internal ("Unresolved export `%s' found in O65WriteExports", Name);
+            Internal ("Unresolved export '%s' found in O65WriteExports", Name);
         }
 
         /* Get the expression for the symbol */
@@ -958,7 +958,7 @@ static void O65WriteExports (O65Desc* D)
 
         /* Bail out if we cannot handle the expression */
         if (ED.TooComplex) {
-            Error ("Expression for symbol `%s' is too complex", Name);
+            Error ("Expression for symbol '%s' is too complex", Name);
         }
 
         /* Determine the segment id for the expression */
@@ -977,7 +977,7 @@ static void O65WriteExports (O65Desc* D)
                 /* For some reason, we didn't find this segment in the list of
                 ** segments written to the o65 file.
                 */
-                Error ("Segment for symbol `%s' is undefined", Name);
+                Error ("Segment for symbol '%s' is undefined", Name);
             }
             SegmentID = O65SegType (Seg);
 
@@ -1207,7 +1207,7 @@ void O65SetExport (O65Desc* D, unsigned Ident)
     */
     Export* E = FindExport (Ident);
     if (E == 0 || IsUnresolvedExport (E)) {
-        Error ("Unresolved export: `%s'", GetString (Ident));
+        Error ("Unresolved export: '%s'", GetString (Ident));
     }
 
     /* Insert the entry into the table */
@@ -1370,11 +1370,11 @@ void O65WriteTarget (O65Desc* D, File* F)
     /* Open the file */
     D->F = fopen (D->Filename, "wb");
     if (D->F == 0) {
-        Error ("Cannot open `%s': %s", D->Filename, strerror (errno));
+        Error ("Cannot open '%s': %s", D->Filename, strerror (errno));
     }
 
     /* Keep the user happy */
-    Print (stdout, 1, "Opened `%s'...\n", D->Filename);
+    Print (stdout, 1, "Opened '%s'...\n", D->Filename);
 
     /* Define some more options: A timestamp, the linker version and the
     ** filename
@@ -1428,7 +1428,7 @@ void O65WriteTarget (O65Desc* D, File* F)
 
     /* Close the file */
     if (fclose (D->F) != 0) {
-        Error ("Cannot write to `%s': %s", D->Filename, strerror (errno));
+        Error ("Cannot write to '%s': %s", D->Filename, strerror (errno));
     }
 
     /* Reset the file and filename */
index 7e83f91070acd99bb3a9797d62d0342cea5eb265..88a7bded4ce10d1105c981863856512b11ccee6b 100644 (file)
@@ -184,7 +184,7 @@ unsigned MakeGlobalStringId (const ObjData* O, unsigned Index)
 /* Convert a local string id into a global one and return it. */
 {
     if (Index >= O->StringCount) {
-        Error ("Invalid string index (%u) in module `%s'",
+        Error ("Invalid string index (%u) in module '%s'",
                Index, GetObjFileName (O));
     }
     return O->Strings[Index];
@@ -214,7 +214,7 @@ struct Section* GetObjSection (const ObjData* O, unsigned Id)
 /* Get a section from an object file checking for a valid index */
 {
     if (Id >= CollCount (&O->Sections)) {
-        Error ("Invalid section index (%u) in module `%s'",
+        Error ("Invalid section index (%u) in module '%s'",
                Id, GetObjFileName (O));
     }
     return CollAtUnchecked (&O->Sections, Id);
@@ -226,7 +226,7 @@ struct Import* GetObjImport (const ObjData* O, unsigned Id)
 /* Get an import from an object file checking for a valid index */
 {
     if (Id >= CollCount (&O->Imports)) {
-        Error ("Invalid import index (%u) in module `%s'",
+        Error ("Invalid import index (%u) in module '%s'",
                Id, GetObjFileName (O));
     }
     return CollAtUnchecked (&O->Imports, Id);
@@ -238,7 +238,7 @@ struct Export* GetObjExport (const ObjData* O, unsigned Id)
 /* Get an export from an object file checking for a valid index */
 {
     if (Id >= CollCount (&O->Exports)) {
-        Error ("Invalid export index (%u) in module `%s'",
+        Error ("Invalid export index (%u) in module '%s'",
                Id, GetObjFileName (O));
     }
     return CollAtUnchecked (&O->Exports, Id);
@@ -250,7 +250,7 @@ struct DbgSym* GetObjDbgSym (const ObjData* O, unsigned Id)
 /* Get a debug symbol from an object file checking for a valid index */
 {
     if (Id >= CollCount (&O->DbgSyms)) {
-        Error ("Invalid debug symbol index (%u) in module `%s'",
+        Error ("Invalid debug symbol index (%u) in module '%s'",
                Id, GetObjFileName (O));
     }
     return CollAtUnchecked (&O->DbgSyms, Id);
@@ -262,7 +262,7 @@ struct Scope* GetObjScope (const ObjData* O, unsigned Id)
 /* Get a scope from an object file checking for a valid index */
 {
     if (Id >= CollCount (&O->Scopes)) {
-        Error ("Invalid scope index (%u) in module `%s'",
+        Error ("Invalid scope index (%u) in module '%s'",
                Id, GetObjFileName (O));
     }
     return CollAtUnchecked (&O->Scopes, Id);
index 870ca5221fe91f1e8988ad09e9e12d728fed3f52..a44e3239a1b1dff2a3c6796c863bd93bb2751970 100644 (file)
@@ -67,7 +67,7 @@ static unsigned GetModule (const char* Name)
     /* Make a module name from the file name */
     const char* Module = FindName (Name);
     if (*Module == 0) {
-        Error ("Cannot make module name from `%s'", Name);
+        Error ("Cannot make module name from '%s'", Name);
     }
     return GetStringId (Module);
 }
@@ -79,7 +79,7 @@ static void ObjReadHeader (FILE* Obj, ObjHeader* H, const char* Name)
 {
     H->Version    = Read16 (Obj);
     if (H->Version != OBJ_VERSION) {
-        Error ("Object file `%s' has wrong version, expected %08X, got %08X",
+        Error ("Object file '%s' has wrong version, expected %08X, got %08X",
                Name, OBJ_VERSION, H->Version);
     }
     H->Flags        = Read16 (Obj);
index 3c2346aac9973cef83921fc9392430856589bd5e..31f1c7a41839d41f5dfc76454323799543b65d21 100644 (file)
@@ -196,7 +196,7 @@ static void StrVal (void)
 
                     default:
                         CfgWarning (&CfgErrorPos,
-                                    "Unkown escape sequence `%%%c'", C);
+                                    "Unkown escape sequence '%%%c'", C);
                         SB_AppendChar (&CfgSVal, '%');
                         SB_AppendChar (&CfgSVal, C);
                         NextChar ();
@@ -389,7 +389,7 @@ Again:
             break;
 
         default:
-            CfgError (&CfgErrorPos, "Invalid character `%c'", C);
+            CfgError (&CfgErrorPos, "Invalid character '%c'", C);
 
     }
 }
@@ -410,7 +410,7 @@ void CfgConsume (cfgtok_t T, const char* Msg)
 void CfgConsumeSemi (void)
 /* Consume a semicolon */
 {
-    CfgConsume (CFGTOK_SEMI, "`;' expected");
+    CfgConsume (CFGTOK_SEMI, "';' expected");
 }
 
 
@@ -418,7 +418,7 @@ void CfgConsumeSemi (void)
 void CfgConsumeColon (void)
 /* Consume a colon */
 {
-    CfgConsume (CFGTOK_COLON, "`:' expected");
+    CfgConsume (CFGTOK_COLON, "':' expected");
 }
 
 
@@ -556,7 +556,7 @@ void CfgOpenInput (void)
     /* Open the file */
     InputFile = fopen (CfgName, "r");
     if (InputFile == 0) {
-        Error ("Cannot open `%s': %s", CfgName, strerror (errno));
+        Error ("Cannot open '%s': %s", CfgName, strerror (errno));
     }
 
     /* Initialize variables */
index edf0d0da215694f0a1e778b1247838bc8b09de6f..cf40fac0128d46403df5b6e624d3e13154593358 100644 (file)
@@ -147,7 +147,7 @@ void PrintDbgScopes (FILE* F)
                 case SCOPE_ENUM:        fputs (",type=enum", F);        break;
 
                 default:
-                    Error ("Module `%s': Unknown scope type %u",
+                    Error ("Module '%s': Unknown scope type %u",
                            GetObjFileName (O), S->Type);
             }
 
index 9c3972ac546a187e3dbef126eee7120da793f1a8..56a4719ad7b95d6737c548a3788100964fcbddb3 100644 (file)
@@ -144,7 +144,7 @@ Segment* GetSegment (unsigned Name, unsigned char AddrSize, const char* ObjName)
             if (ObjName == 0) {
                 ObjName = "[linker generated]";
             }
-            Error ("Module `%s': Type mismatch for segment `%s'", ObjName,
+            Error ("Module '%s': Type mismatch for segment '%s'", ObjName,
                    GetString (Name));
         }
     }
@@ -210,7 +210,7 @@ Section* ReadSection (FILE* F, ObjData* O)
 
     /* Print some data */
     Print (stdout, 2,
-           "Module `%s': Found segment `%s', size = %u, alignment = %lu, type = %u\n",
+           "Module '%s': Found segment '%s', size = %u, alignment = %lu, type = %u\n",
            GetObjFileName (O), GetString (Name), Size, Alignment, Type);
 
     /* Get the segment for this section */
@@ -226,13 +226,13 @@ Section* ReadSection (FILE* F, ObjData* O)
     if (Sec->Alignment > 1) {
         Alignment = LeastCommonMultiple (S->Alignment, Sec->Alignment);
         if (Alignment > MAX_ALIGNMENT) {
-            Error ("Combined alignment for segment `%s' is %lu which exceeds "
-                   "%lu. Last module requiring alignment was `%s'.",
+            Error ("Combined alignment for segment '%s' is %lu which exceeds "
+                   "%lu. Last module requiring alignment was '%s'.",
                    GetString (Name), Alignment, MAX_ALIGNMENT,
                    GetObjFileName (O));
         } else if (Alignment >= LARGE_ALIGNMENT) {
-            Warning ("Combined alignment for segment `%s' is suspiciously "
-                     "large (%lu). Last module requiring alignment was `%s'.",
+            Warning ("Combined alignment for segment '%s' is suspiciously "
+                     "large (%lu). Last module requiring alignment was '%s'.",
                      GetString (Name), Alignment, GetObjFileName (O));
         }
         S->Alignment = Alignment;
@@ -270,7 +270,7 @@ Section* ReadSection (FILE* F, ObjData* O)
                 break;
 
             default:
-                Error ("Unknown fragment type in module `%s', segment `%s': %02X",
+                Error ("Unknown fragment type in module '%s', segment '%s': %02X",
                        GetObjFileName (O), GetString (S->Name), Type);
                 /* NOTREACHED */
                 return 0;
@@ -502,19 +502,19 @@ void SegWrite (const char* TgtName, FILE* Tgt, Segment* S, SegWriteFunc F, void*
                             break;
 
                         case SEG_EXPR_RANGE_ERROR:
-                            Error ("Range error in module `%s', line %u",
+                            Error ("Range error in module '%s', line %u",
                                    GetFragmentSourceName (Frag),
                                    GetFragmentSourceLine (Frag));
                             break;
 
                         case SEG_EXPR_TOO_COMPLEX:
-                            Error ("Expression too complex in module `%s', line %u",
+                            Error ("Expression too complex in module '%s', line %u",
                                    GetFragmentSourceName (Frag),
                                    GetFragmentSourceLine (Frag));
                             break;
 
                         case SEG_EXPR_INVALID:
-                            Error ("Invalid expression in module `%s', line %u",
+                            Error ("Invalid expression in module '%s', line %u",
                                    GetFragmentSourceName (Frag),
                                    GetFragmentSourceLine (Frag));
                             break;
@@ -657,7 +657,7 @@ void CheckSegments (void)
 
         /* Check it */
         if (S->Size > 0 && S->Dumped == 0) {
-            Error ("Missing memory area assignment for segment `%s'",
+            Error ("Missing memory area assignment for segment '%s'",
                    GetString (S->Name));
         }
     }
index 2d23f42020230c00d9a6fa12926a1a60a2a16eed..ce71608edec6c76825121defff8fd2073e3f626c 100644 (file)
@@ -222,7 +222,7 @@ static void DumpFile (const char* Name)
     /* Try to open the file */
     FILE* F = fopen (Name, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", Name, strerror (errno));
+        Error ("Cannot open '%s': %s", Name, strerror (errno));
     }
 
     /* Read the magic word */
index f7f73165a515727e4be8c6321f06dd194bef463d..a1bbc5561a2170ca8138acc6617ff7551dc9bcfa 100644 (file)
@@ -141,13 +141,13 @@ static void ReadProgramFile (void)
     /* Open the file */
     FILE* F = fopen (ProgramFile, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", ProgramFile, strerror (errno));
+        Error ("Cannot open '%s': %s", ProgramFile, strerror (errno));
     }
 
     /* Get the CPU type from the file header */
     if ((Val = fgetc(F)) != EOF) {
         if (Val != CPU_6502 && Val != CPU_65C02) {
-            Error ("`%s': Invalid CPU type", ProgramFile);
+            Error ("'%s': Invalid CPU type", ProgramFile);
         }
         CPU = Val;
     }
@@ -155,20 +155,20 @@ static void ReadProgramFile (void)
     /* Read the file body into memory */
     while ((Val = fgetc(F)) != EOF) {
         if (Addr == 0xFF00) {
-            Error ("`%s': To large to fit into $0200-$FFF0", ProgramFile);
+            Error ("'%s': To large to fit into $0200-$FFF0", ProgramFile);
         }
         MemWriteByte (Addr++, (unsigned char) Val);
     }
 
     /* Check for errors */
     if (ferror (F)) {
-        Error ("Error reading from `%s': %s", ProgramFile, strerror (errno));
+        Error ("Error reading from '%s': %s", ProgramFile, strerror (errno));
     }
 
     /* Close the file */
     fclose (F);
 
-    Print (stderr, 1, "Loaded `%s' at $0200-$%04X\n", ProgramFile, Addr - 1);
+    Print (stderr, 1, "Loaded '%s' at $0200-$%04X\n", ProgramFile, Addr - 1);
 }
 
 
index 8f520cb9ecdca7f301a09062c6922791660e621a..74c9bc023c111b733605dc3a48aad05ff4c31cb4 100644 (file)
@@ -89,7 +89,7 @@ static unsigned GetBytesPerLine (const Collection* A)
     const char* V = GetAttrVal (A, "bytesperline");
     if ((V && sscanf (V, "%u%c", &BytesPerLine, &C) != 1) ||
         (BytesPerLine < 1 || BytesPerLine > 64)) {
-        Error ("Invalid value for attribute `bytesperline'");
+        Error ("Invalid value for attribute 'bytesperline'");
     }
     return BytesPerLine;
 }
@@ -106,7 +106,7 @@ static unsigned GetBase (const Collection* A)
     const char* V = GetAttrVal (A, "base");
     if ((V && sscanf (V, "%u%c", &Base, &C) != 1) ||
         (Base != 2 && Base != 10 && Base != 16)) {
-        Error ("Invalid value for attribute `base'");
+        Error ("Invalid value for attribute 'base'");
     }
     return Base;
 }
@@ -119,7 +119,7 @@ static const char* GetIdentifier (const Collection* A)
     /* Check for a ident attribute */
     const char* Ident = GetAttrVal (A, "ident");
     if (Ident && !ValidIdentifier (Ident)) {
-        Error ("Invalid value for attribute `ident'");
+        Error ("Invalid value for attribute 'ident'");
     }
     return Ident;
 }
@@ -152,7 +152,7 @@ void WriteAsmFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
     /* Open the output file */
     F = fopen (Name, "w");
     if (F == 0) {
-        Error ("Cannot open output file `%s': %s", Name, strerror (errno));
+        Error ("Cannot open output file '%s': %s", Name, strerror (errno));
     }
 
     /* Write a readable header */
@@ -235,6 +235,6 @@ void WriteAsmFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing output file `%s': %s", Name, strerror (errno));
+        Error ("Error closing output file '%s': %s", Name, strerror (errno));
     }
 }
index e57b86973f69d13123226eafd9d4a85c3c77205c..1b7883c4753a5cdd89ecb17c316a701f01112c40 100644 (file)
@@ -160,7 +160,7 @@ const Attr* NeedAttr (const Collection* C, const char* Name, const char* Op)
     /* Search for the attribute and return it */
     unsigned Index;
     if (!FindAttr (C, Name, &Index)) {
-        Error ("Found no attribute named `%s' for operation %s", Name, Op);
+        Error ("Found no attribute named '%s' for operation %s", Name, Op);
     }
     return CollConstAt (C, Index);
 }
@@ -201,7 +201,7 @@ void AddAttr (Collection* C, const char* Name, const char* Value)
     */
     unsigned Index;
     if (FindAttr (C, Name, &Index)) {
-        Error ("Duplicate command line attribute `%s'", Name);
+        Error ("Duplicate command line attribute '%s'", Name);
     }
 
     /* Insert the attribute */
@@ -221,7 +221,7 @@ void SplitAddAttr (Collection* C, const char* Combined, const char* Name)
     if (Pos == 0) {
         /* Combined is actually a value */
         if (Name == 0) {
-            Error ("Command line attribute `%s' doesn't contain a name", Combined);
+            Error ("Command line attribute '%s' doesn't contain a name", Combined);
         }
         AddAttr (C, Name, Combined);
     } else {
index fdf7ddee06e0137d404f7fdf4a3450614cef82a0..a3f856340d559dfb515ec8c7cfb1e8b770992780 100644 (file)
@@ -65,7 +65,7 @@ void WriteBinFile (const StrBuf* Data, const Collection* A,
     /* Open the output file */
     FILE* F = fopen (Name, "wb");
     if (F == 0) {
-        Error ("Cannot open output file `%s': %s", Name, strerror (errno));
+        Error ("Cannot open output file '%s': %s", Name, strerror (errno));
     }
 
     /* Write to the file. We will use fwrite here instead of the fileio
@@ -75,11 +75,11 @@ void WriteBinFile (const StrBuf* Data, const Collection* A,
     */
     Size = SB_GetLen (Data);
     if (fwrite (SB_GetConstBuf (Data), 1, Size, F) != Size) {
-        Error ("Error writing to output file `%s': %s", Name, strerror (errno));
+        Error ("Error writing to output file '%s': %s", Name, strerror (errno));
     }
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing output file `%s': %s", Name, strerror (errno));
+        Error ("Error closing output file '%s': %s", Name, strerror (errno));
     }
 }
index d4d6ee00bf0abac83c4268e66f754faa37bb8129..57950ca6d850b0f934c2acef452b44d22c21a7fd 100644 (file)
@@ -89,7 +89,7 @@ static unsigned GetBytesPerLine (const Collection* A)
     const char* V = GetAttrVal (A, "bytesperline");
     if ((V && sscanf (V, "%u%c", &BytesPerLine, &C) != 1) ||
         (BytesPerLine < 1 || BytesPerLine > 64)) {
-        Error ("Invalid value for attribute `bytesperline'");
+        Error ("Invalid value for attribute 'bytesperline'");
     }
     return BytesPerLine;
 }
@@ -105,7 +105,7 @@ static unsigned GetBase (const Collection* A)
     /* Check for a base attribute */
     const char* V = GetAttrVal (A, "base");
     if ((V && sscanf (V, "%u%c", &Base, &C) != 1) || (Base != 10 && Base != 16)) {
-        Error ("Invalid value for attribute `base'");
+        Error ("Invalid value for attribute 'base'");
     }
     return Base;
 }
@@ -118,7 +118,7 @@ static const char* GetIdentifier (const Collection* A)
     /* Check for a ident attribute */
     const char* Ident = GetAttrVal (A, "ident");
     if (Ident && !ValidIdentifier (Ident)) {
-        Error ("Invalid value for attribute `ident'");
+        Error ("Invalid value for attribute 'ident'");
     }
     return Ident;
 }
@@ -151,7 +151,7 @@ void WriteCFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
     /* Open the output file */
     F = fopen (Name, "w");
     if (F == 0) {
-        Error ("Cannot open output file `%s': %s", Name, strerror (errno));
+        Error ("Cannot open output file '%s': %s", Name, strerror (errno));
     }
 
     /* Write a readable header */
@@ -220,6 +220,6 @@ void WriteCFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
 
     /* Close the file */
     if (fclose (F) != 0) {
-        Error ("Error closing output file `%s': %s", Name, strerror (errno));
+        Error ("Error closing output file '%s': %s", Name, strerror (errno));
     }
 }
index 45b40f1efd7a76a280a4b42ade6f7ca8754af570..a9047ffb0773ce7b1f50c28633e4bbcbb4276de6 100644 (file)
@@ -106,7 +106,7 @@ StrBuf* ConvertTo (const Bitmap* B, const Collection* A)
                  sizeof (ConverterMap[0]),
                  Compare);
     if (E == 0) {
-        Error ("No such target format: `%s'", Format);
+        Error ("No such target format: '%s'", Format);
     }
 
     /* Do the conversion */
index 381adf6b98bc733896fff91bfa89511ce428efd9..f1df247ae884cd929e62eb857fe2039ea1db2cb1 100644 (file)
@@ -103,7 +103,7 @@ Bitmap* ReadInputFile (const Collection* A)
                      sizeof (FormatTable[0]),
                      CompareFileId);
         if (F == 0) {
-            Error ("Unknown input format `%s'", Format);
+            Error ("Unknown input format '%s'", Format);
         }
     } else {
         /* No format given, use file name extension */
@@ -112,7 +112,7 @@ Bitmap* ReadInputFile (const Collection* A)
                        sizeof (FormatTable) / sizeof (FormatTable[0]));
         /* Found? */
         if (F == 0) {
-            Error ("Cannot determine file format of input file `%s'", Name);
+            Error ("Cannot determine file format of input file '%s'", Name);
         }
     }
 
index e4afc7773eb112978a6662b9fbacd0bd444d6e77..4d7669faf2e982de10c45550b362c525bea562ac 100644 (file)
@@ -80,7 +80,7 @@ static enum Mode GetMode (const Collection* A)
         } else if (strcmp (Mode, "shaped") == 0) {
             return smShaped;
         } else {
-            Error ("Invalid value for attribute `mode'");
+            Error ("Invalid value for attribute 'mode'");
         }
     }
 
index 5c9724a8ab78057779ad61de9a60a3cbc631f191..1dda696d6ab4fe98ad7becb0be0e79c2330bd566 100644 (file)
@@ -392,7 +392,7 @@ int main (int argc, char* argv [])
             }
         } else {
             /* We don't accept anything else */
-            AbEnd ("Don't know what to do with `%s'", Arg);
+            AbEnd ("Don't know what to do with '%s'", Arg);
         }
 
         /* Next argument */
index 3ffa38dccd604d40f6a9b5d6cfa618b1d1f4e4c6..c12d1f612697fcc15cacdfb6bc86de95642e6e9a 100644 (file)
@@ -124,7 +124,7 @@ void WriteOutputFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
                      sizeof (FormatTable[0]),
                      CompareFileId);
         if (F == 0) {
-            Error ("Unknown output format `%s'", Format);
+            Error ("Unknown output format '%s'", Format);
         }
     } else {
         /* No format given, use file name extension */
@@ -133,7 +133,7 @@ void WriteOutputFile (const StrBuf* Data, const Collection* A, const Bitmap* B)
                        sizeof (FormatTable) / sizeof (FormatTable[0]));
         /* Found? */
         if (F == 0) {
-            Error ("Cannot determine file format of output file `%s'", Name);
+            Error ("Cannot determine file format of output file '%s'", Name);
         }
     }
 
index 273ad8cf0334e9c851328edff072f6276676af6a..d721671b3944bed07982399bbf6388e8679997d2 100644 (file)
@@ -146,10 +146,10 @@ static PCXHeader* ReadPCXHeader (FILE* F, const char* Name)
 
     /* Check the header data */
     if (P->Id != PCX_MAGIC_ID || P->FileVersion == 1 || P->FileVersion > 5) {
-        Error ("`%s' is not a PCX file", Name);
+        Error ("'%s' is not a PCX file", Name);
     }
     if (P->Compressed > 1) {
-        Error ("Unsupported compression (%d) in PCX file `%s'",
+        Error ("Unsupported compression (%d) in PCX file '%s'",
                P->Compressed, Name);
     }
     /* We support:
@@ -160,15 +160,15 @@ static PCXHeader* ReadPCXHeader (FILE* F, const char* Name)
     if (!((P->BPP == 1 && P->Planes == 1) ||
           (P->BPP == 8 && (P->Planes == 1 || P->Planes == 3 || P->Planes == 4)))) {
         /* We could support others, but currently we don't */
-        Error ("Unsupported PCX format: %u planes, %u bpp in PCX file `%s'",
+        Error ("Unsupported PCX format: %u planes, %u bpp in PCX file '%s'",
                P->Planes, P->BPP, Name);
     }
     if (P->PalInfo != 1 && P->PalInfo != 2) {
-        Error ("Unsupported palette info (%u) in PCX file `%s'",
+        Error ("Unsupported palette info (%u) in PCX file '%s'",
                P->PalInfo, Name);
     }
     if (!ValidBitmapSize (P->Width, P->Height)) {
-        Error ("PCX file `%s' has an unsupported size (w=%u, h=%d)",
+        Error ("PCX file '%s' has an unsupported size (w=%u, h=%d)",
                Name, P->Width, P->Height);
     }
 
@@ -261,7 +261,7 @@ Bitmap* ReadPCXFile (const Collection* A)
     /* Open the file */
     FILE* F = fopen (Name, "rb");
     if (F == 0) {
-        Error ("Cannot open PCX file `%s': %s", Name, strerror (errno));
+        Error ("Cannot open PCX file '%s': %s", Name, strerror (errno));
     }
 
     /* Read the PCX header */
@@ -357,7 +357,7 @@ Bitmap* ReadPCXFile (const Collection* A)
 
                 /* Check for palette marker */
                 if (Read8 (F) != 0x0C) {
-                    Error ("Invalid palette marker in PCX file `%s'", Name);
+                    Error ("Invalid palette marker in PCX file '%s'", Name);
                 }
 
             } else if (EndPos == CurPos) {
@@ -367,12 +367,12 @@ Bitmap* ReadPCXFile (const Collection* A)
 
                 /* Check the maximum index for safety */
                 if (MaxIdx > 15) {
-                    Error ("PCX file `%s' contains more than 16 indexed colors "
+                    Error ("PCX file '%s' contains more than 16 indexed colors "
                            "but no extra palette", Name);
                 }
 
             } else {
-                Error ("Error in PCX file `%s': %lu bytes at end of pixel data",
+                Error ("Error in PCX file '%s': %lu bytes at end of pixel data",
                        Name, EndPos - CurPos);
             }
 
index 3e99ec7b21316d727897e9fa989f01320f344c47..94a9ad49988f4af6b5cc4c87b5b51182209ae0c6 100644 (file)
@@ -81,7 +81,7 @@ static enum Mode GetMode (const Collection* A)
         } else if (strcmp (Mode, "multicolor") == 0) {
             return smMultiColor;
         } else {
-            Error ("Invalid value for attribute `mode'");
+            Error ("Invalid value for attribute 'mode'");
         }
     } 
 
index ad69cdfe2049fb30ece870cc6083f1e563cfee42..85dc20a615cc5cbf3b8651befe8a9b351196e7cb 100644 (file)
@@ -1,7 +1,7 @@
 goto.c(8): Warning: Goto at line 8 to label start jumps into a block with initialization of an object that has automatic storage duration
-goto.c(97): Warning: `a' is defined but never used
-goto.c(117): Warning: `a' is defined but never used
-goto.c(137): Warning: `a' is defined but never used
+goto.c(97): Warning: 'a' is defined but never used
+goto.c(117): Warning: 'a' is defined but never used
+goto.c(137): Warning: 'a' is defined but never used
 goto.c(159): Warning: Goto at line 23 to label l8 jumps into a block with initialization of an object that has automatic storage duration
 goto.c(159): Warning: Goto at line 44 to label l8 jumps into a block with initialization of an object that has automatic storage duration
 goto.c(159): Warning: Goto at line 65 to label l8 jumps into a block with initialization of an object that has automatic storage duration
index 3f8279b276362d99d7e23e12809a4466a27e665a..3a75b28fac87e47d7e232b2a217d0cb4627f3c7d 100644 (file)
@@ -32,7 +32,7 @@ int main(void)
         fs=(func((fd/a),(func(2,0x0082c90f))));
 }
 
-i get "Error: `)' expected" on that line. (this is with the snapshot, freshly 
+i get "Error: ')' expected" on that line. (this is with the snapshot, freshly 
 compiled 5 minutes ago)
 */
 
index 25d197c1180d66b4620e3bf39f3f76eedd8b9bcf..ea19afe43e7ff67e18381edf8df3bcda408ec811 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdio.h>
 
 /*
-...gives "test.c(2): Error: Variable `foo' has unknown size" using -Cl.
+...gives "test.c(2): Error: Variable 'foo' has unknown size" using -Cl.
 Is it really unknown?
 
 cc65 V2.13.0, SVN version: 4384
index 4faa7c12b30b8135438dd45155386275d947b29b..1f87f65b5e8210416b25aa9223c4384a64438c4f 100644 (file)
@@ -11,12 +11,12 @@ Compiler is build from cc65-snapshot-2.13.9.20101031 sources.
 Expected results and also what I get from this without any optimisations
 are: 48663 and 49218
 
-When I turn on ``-O``: 58096 and 58096.  After swapping the two variable
-declaration lines in `calculate_checksum()` the results are correct
-with ``-O``.
+When I turn on ''-O'': 58096 and 58096.  After swapping the two variable
+declaration lines in 'calculate_checksum()' the results are correct
+with ''-O''.
 
-But with ``--O --static-locals`` the results are incorrect again (31757
-and 15408).  ``--static-locals`` alone works though.
+But with ''--O --static-locals'' the results are incorrect again (31757
+and 15408).  ''--static-locals'' alone works though.
 */
 
 #include <stdio.h>
index 2c78535569226201f549dcf30008e1df309e6e94..ca5b39203b14a0db5efc4379661046ba6a87ef4a 100644 (file)
@@ -8,15 +8,15 @@
 with SVN version: 4973M
 
 $ cl65 -v -o test.prg tests/cc65110210.c
-Opened include file `/usr/local/lib/cc65/include/stdio.h'
-Opened include file `/usr/local/lib/cc65/include/stddef.h'
-Opened include file `/usr/local/lib/cc65/include/stdarg.h'
-Opened include file `/usr/local/lib/cc65/include/limits.h'
+Opened include file '/usr/local/lib/cc65/include/stdio.h'
+Opened include file '/usr/local/lib/cc65/include/stddef.h'
+Opened include file '/usr/local/lib/cc65/include/stdarg.h'
+Opened include file '/usr/local/lib/cc65/include/limits.h'
 0 errors, 0 warnings
-Opened output file `tests/cc65110210.s'
-Wrote output to `tests/cc65110210.s'
-Closed output file `tests/cc65110210.s'
-cl65: Subprocess `ld65' aborted by signal 11
+Opened output file 'tests/cc65110210.s'
+Wrote output to 'tests/cc65110210.s'
+Closed output file 'tests/cc65110210.s'
+cl65: Subprocess 'ld65' aborted by signal 11
 
 */
 
index e9a47dd717c3e8b2e442a510b2072cf6b0552f2f..e4833bd169fc8abb81580e1fb56dad64629ba318 100644 (file)
@@ -1626,7 +1626,7 @@ part7(){
 overflow:
        sigsave = 0;
        Z = V9;
-       printf("Can `Z = -Y' overflow?\n");
+       printf("Can 'Z = -Y' overflow?\n");
        printf("Trying it on Y = %.17e .\n", Y);
        V9 = - Y;
        V0 = V9;
@@ -2087,7 +2087,7 @@ Instructions()
 {
   static char *instr[] = {
        "Lest this program stop prematurely, i.e. before displaying\n",
-       "    `END OF TEST',\n",
+       "    'END OF TEST',\n",
        "try to persuade the computer NOT to terminate execution when an",
        "error like Over/Underflow or Division by Zero occurs, but rather",
        "to persevere with a surrogate value after, perhaps, displaying some",
@@ -2170,8 +2170,8 @@ History()
        "   FAILUREs, like 2+2 == 5 .",
        "Failures may confound subsequent diagnoses.\n",
        "The diagnostic capabilities of this program go beyond an earlier",
-       "program called `MACHAR', which can be found at the end of the",
-       "book  `Software Manual for the Elementary Functions' (1980) by",
+       "program called 'MACHAR', which can be found at the end of the",
+       "book  'Software Manual for the Elementary Functions' (1980) by",
        "W. J. Cody and W. Waite. Although both programs try to discover",
        "the Radix, Precision and range (over/underflow thresholds)",
        "of the arithmetic, this program tries to cope with a wider variety",
index 0127e3b1be1bb60d2ad5f720788dcc006a6fd583..e9d2f7d4a3b9037990f7e590080bd8a2d071d9dc 100644 (file)
@@ -52,7 +52,7 @@ compare_char_to_lits1 (void)
     failures++;
 }
 
-/* achar0 should be `5' */
+/* achar0 should be '5' */
 void
 compare_char_to_lits2 (void)
 {
@@ -106,7 +106,7 @@ compare_int_to_lits1 (void)
     failures++;
 }
 
-/* aint0 should be `5' */
+/* aint0 should be '5' */
 void
 compare_int_to_lits2 (void)
 {
@@ -123,7 +123,7 @@ compare_int_to_lits2 (void)
     failures++;
 }
 
-/* aint0 should be `0x1234' */
+/* aint0 should be '0x1234' */
 void
 compare_int_to_lits3 (void)
 {