From b0faccc7ef435f9c0713f5369bbfdae16525360b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 30 Jan 2003 12:43:30 +0000 Subject: [PATCH] Remove newline from default --delimiters. --- ChangeLog | 5 +++++ doc/gperf.texi | 2 +- src/options.cc | 4 ++-- tests/test-6.exp | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 797b3a0..2481ad0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2002-11-16 Bruno Haible + * src/options.cc (DEFAULT_DELIMITERS): Remove newline. + * src/options.cc (Options::long_usage): Change default --delimiters. + * doc/gperf.texi (Input Details): Likewise. + * tests/test-6.exp: Update. + * doc/gperf.texi: Move description of option -l from section Algorithmic Details to section Output Details. * src/options.cc (Options::long_usage): Likewise. diff --git a/doc/gperf.texi b/doc/gperf.texi index 52fb95e..cc39f30 100644 --- a/doc/gperf.texi +++ b/doc/gperf.texi @@ -577,7 +577,7 @@ or if it is @samp{-}. @itemx --delimiters=@var{keyword-delimiter-list} @cindex Delimiters Allows the user to provide a string containing delimiters used to -separate keywords from their attributes. The default is ",\n". This +separate keywords from their attributes. The default is ",". This option is essential if you want to use keywords that have embedded commas or newlines. One useful trick is to use -e'TAB', where TAB is the literal tab character. diff --git a/src/options.cc b/src/options.cc index dd901ed..c38adae 100644 --- a/src/options.cc +++ b/src/options.cc @@ -59,7 +59,7 @@ static const char *const DEFAULT_HASH_NAME = "hash"; static const char *const DEFAULT_WORDLIST_NAME = "wordlist"; /* Default delimiters that separate keywords from their attributes. */ -static const char *const DEFAULT_DELIMITERS = ",\n"; +static const char *const DEFAULT_DELIMITERS = ","; /* Prints program usage to given stream. */ @@ -99,7 +99,7 @@ Options::long_usage (FILE * stream) const " -e, --delimiters=DELIMITER-LIST\n" " Allow user to provide a string containing delimiters\n" " used to separate keywords from their attributes.\n" - " Default is \",\\n\".\n"); + " Default is \",\".\n"); fprintf (stream, " -t, --struct-type Allows the user to include a structured type\n" " declaration for generated code. Any text before %%%%\n" diff --git a/tests/test-6.exp b/tests/test-6.exp index 75c2ee3..f73a9a5 100644 --- a/tests/test-6.exp +++ b/tests/test-6.exp @@ -14,7 +14,7 @@ Input file interpretation: -e, --delimiters=DELIMITER-LIST Allow user to provide a string containing delimiters used to separate keywords from their attributes. - Default is ",\n". + Default is ",". -t, --struct-type Allows the user to include a structured type declaration for generated code. Any text before %% is considered part of the type declaration. Key