/[m4]/m4/src/main.c
ViewVC logotype

Diff of /m4/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by akim, Mon Aug 27 08:03:20 2001 UTC revision 1.16 by gary, Thu Aug 30 21:57:00 2001 UTC
# Line 102  Operation modes:\n\ Line 102  Operation modes:\n\
102    -Q, --quiet, --silent        suppress some warnings for builtins\n\    -Q, --quiet, --silent        suppress some warnings for builtins\n\
103    -P, --prefix-builtins        force a `m4_' prefix to all builtins\n"),    -P, --prefix-builtins        force a `m4_' prefix to all builtins\n"),
104               stdout);               stdout);
 #ifdef ENABLE_CHANGEWORD  
       fputs (_("\  
   -W, --word-regexp=REGEXP     use REGEXP for macro name syntax\n"),  
              stdout);  
 #endif  
105        fputs (_("\        fputs (_("\
106  \n\  \n\
107  Dynamic loading features:\n\  Dynamic loading features:\n\
# Line 205  static const struct option long_options[ Line 200  static const struct option long_options[
200    { 0, 0, 0, 0 },    { 0, 0, 0, 0 },
201  };  };
202    
 #ifdef ENABLE_CHANGEWORD  
 #  define CHANGEWORD_SHORTOPT   "W:"  
 #else  
 #  define CHANGEWORD_SHORTOPT   ""  
 #endif  
203  #ifdef WITH_MODULES  #ifdef WITH_MODULES
204  #  define MODULE_SHORTOPT       "m:"  #  define MODULE_SHORTOPT       "m:"
205  #  define MODULEPATH_SHORTOPT   "M:"  #  define MODULEPATH_SHORTOPT   "M:"
# Line 218  static const struct option long_options[ Line 208  static const struct option long_options[
208  #  define MODULEPATH_SHORTOPT   ""  #  define MODULEPATH_SHORTOPT   ""
209  #endif  #endif
210    
211  #define OPTSTRING "B:D:EF:GH:I:L:M:N:PQR:S:T:U:"/**/CHANGEWORD_SHORTOPT/**/":bcd::el:m:o:st:"  #define OPTSTRING "B:D:EF:GH:I:L:M:N:PQR:S:T:U:bcd::el:m:o:st:"
212    
213  #include <dlfcn.h>  #include <dlfcn.h>
214    
# Line 349  main (int argc, char *const *argv, char Line 339  main (int argc, char *const *argv, char
339          frozen_file_to_read = optarg;          frozen_file_to_read = optarg;
340          break;          break;
341    
 #ifdef ENABLE_CHANGEWORD  
       case 'W':  
         user_word_regexp = optarg;  
         break;  
 #endif  
   
342        case 'b':        case 'b':
343          interactive = FALSE;          interactive = FALSE;
344          break;          break;
# Line 395  main (int argc, char *const *argv, char Line 379  main (int argc, char *const *argv, char
379    if (show_version)    if (show_version)
380      {      {
381        printf ("GNU %s %s", PACKAGE, VERSION);        printf ("GNU %s %s", PACKAGE, VERSION);
382  #if defined(WITH_GMP) || defined(ENABLE_CHANGEWORD)  #if defined(WITH_GMP)
383        fputs(_(" (options:"), stdout);        fputs(_(" (options:"), stdout);
 #ifdef WITH_GMP  
384        fputs(" gmp", stdout);        fputs(" gmp", stdout);
 #endif /* WITH_GMP */  
 #ifdef ENABLE_CHANGEWORD  
       fputs(" changeword", stdout);  
 #endif /* ENABLE_CHANGEWORD */  
385        fputs(")", stdout);        fputs(")", stdout);
386  #endif /* defined WITH_GMP || ENABLE_CHANGEWORD */  #endif /* WITH_GMP */
387        fputs("\n", stdout);        fputs("\n", stdout);
388        exit (EXIT_SUCCESS);        exit (EXIT_SUCCESS);
389      }      }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26