]> granicus.if.org Git - re2c/commitdiff
- Imply -s if -w is being used (makes no sense without)
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 29 Dec 2005 12:23:10 +0000 (12:23 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 29 Dec 2005 12:23:10 +0000 (12:23 +0000)
main.cc
re2c.1.in

diff --git a/main.cc b/main.cc
index 1714509d61f6d42d8fefb82a13a15bae23f678c2..3056f036fca1d39f8ec0abc6d226a6a4a99e2865 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -85,7 +85,9 @@ static void usage()
        "-v     --version        Show version information.\n"
        "-V     --vernum         Show version as one number.\n"
        "\n"
-       "-w     --wide-chars     Create a parser that supports wide chars (UCS-2).\n"
+       "-w     --wide-chars     Create a parser that supports wide chars (UCS-2). This\n"
+       "                        implies -s and cannot be used together with switches \n"
+       "                        -b or -e.\n"
        ;
 }
 
@@ -155,6 +157,7 @@ int main(int argc, char *argv[])
                        
                        case 'w':
                        nRealChars = (1<<16);
+                       sFlag = true;
                        wFlag = true;
                        break;
          
index 572cce34c1ba7773582111a1bfff720db5caa5b6..881ef1a2d52dfa5a28bb51fa7f30819b6c0dfee4 100644 (file)
--- a/re2c.1.in
+++ b/re2c.1.in
@@ -7,6 +7,9 @@
 .ds rx regular expression
 .ds lx \fIl\fP-expression
 \"$Log$
+\"Revision 1.28  2005/12/29 12:23:10  helly
+\"- Imply -s if -w is being used (makes no sense without)
+\"
 \"Revision 1.27  2005/12/28 18:33:37  helly
 \"- Added experimental unicode support
 \"
@@ -230,8 +233,8 @@ Show version information.
 Show the version as a number XXYYZZ.
 .TP
 \fB-w\fP
-Create a parser that supports wide chars (UCS-2). This cannot be used together 
-with switches \fB-b\fP or \fB-e\fP.
+Create a parser that supports wide chars (UCS-2). This implies \fB-s\fP and 
+cannot be used together with switches \fB-b\fP or \fB-e\fP.
 .SH "INTERFACE CODE"
 Unlike other scanner generators, \*(re does not generate complete scanners:
 the user must supply some interface code.