]> granicus.if.org Git - re2c/commitdiff
- Constify
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 1 Jan 2006 02:46:33 +0000 (02:46 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 1 Jan 2006 02:46:33 +0000 (02:46 +0000)
bootstrap/scanner.cc
scanner.h
scanner.re

index bf8cc3d00e970047316117e1fd8f0c148959180d..4a77627d154b899426ff9aa0c52d1c8c34679bef 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.10.0.dev on Sat Dec 31 01:50:50 2005 */
+/* Generated by re2c 0.10.0.dev on Sun Jan  1 01:08:57 2006 */
 #line 1 "scanner.re"
 /* $Id$ */
 #include <stdlib.h>
@@ -1296,7 +1296,7 @@ yy177:
 
 }
 
-void Scanner::fatal(char *msg) const
+void Scanner::fatal(const char *msg) const
 {
     std::cerr << "line " << tline << ", column " << (tchar + 1) << ": "
                << msg << std::endl;
@@ -1317,7 +1317,7 @@ void Scanner::config(const Str* cfg, int num)
        fatal("unrecognized configuration name or illegal integer value");
 }
 
-void Scanner::config(const Str* cfg, const Str *value)
+void Scanner::config(const Str*, const Str*)
 {
        fatal("unrecognized configuration name or illegal string value");
 }
index c18daa93c4905b4a99a586738ae6164fed75fbcc..4074f2667e00d7f58ec41c2ee7c75b29e0327c8b 100644 (file)
--- a/scanner.h
+++ b/scanner.h
@@ -27,7 +27,7 @@ public:
        Scanner(std::istream&);
        int echo(std::ostream&);
        int scan();
-       void fatal(char*) const;
+       void fatal(const char*) const;
        void config(const Str*, const Str *);
        void config(const Str*, int);
        SubStr token() const;
index 6adb0149e0ad2e6769ef57d67ad9f4a05fd05a44..e3c438b26caa0b5b7c54449ffe60af0d206560ef 100644 (file)
@@ -325,7 +325,7 @@ void Scanner::config(const Str* cfg, int num)
        fatal("unrecognized configuration name or illegal integer value");
 }
 
-void Scanner::config(const Str* cfg, const Str *value)
+void Scanner::config(const Str*, const Str*)
 {
        fatal("unrecognized configuration name or illegal string value");
 }