From 794c7f6a2bd22b69f290b61f2611a99037443fe5 Mon Sep 17 00:00:00 2001 From: helly Date: Thu, 29 Dec 2005 12:23:10 +0000 Subject: [PATCH] - Imply -s if -w is being used (makes no sense without) --- main.cc | 5 ++++- re2c.1.in | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 1714509d..3056f036 100644 --- 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; diff --git a/re2c.1.in b/re2c.1.in index 572cce34..881ef1a2 100644 --- 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. -- 2.50.1