[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / lex

Diff for /src/usr.bin/lex/main.c between version 1.26 and 1.27

version 1.26, 2016/12/25 16:40:06 version 1.27, 2017/01/21 08:33:07
Line 136 
Line 136 
 int flex_main PROTO((int argc, char *argv[]));  int flex_main PROTO((int argc, char *argv[]));
 int main PROTO((int argc, char *argv[]));  int main PROTO((int argc, char *argv[]));
   
 int  int
 flex_main(argc, argv)  flex_main(argc, argv)
         int argc;          int argc;
         char *argv[];          char *argv[];
Line 201 
Line 201 
 }  }
   
 /* Wrapper around flex_main, so flex_main can be built as a library. */  /* Wrapper around flex_main, so flex_main can be built as a library. */
 int  int
 main(argc, argv)  main(argc, argv)
         int argc;          int argc;
         char *argv[];          char *argv[];
Line 225 
Line 225 
   
 /* check_options - check user-specified options */  /* check_options - check user-specified options */
   
 void  void
 check_options()  check_options()
 {  {
         int i;          int i;
Line 472 
Line 472 
  *    This routine does not return.   *    This routine does not return.
  */   */
   
 void  void
 flexend(exit_status)  flexend(exit_status)
         int exit_status;          int exit_status;
   
Line 903 
Line 903 
   
 /* flexinit - initialize flex */  /* flexinit - initialize flex */
   
 void  void
 flexinit(argc, argv)  flexinit(argc, argv)
         int argc;          int argc;
         char **argv;          char **argv;
Line 1433 
Line 1433 
   
 /* readin - read in the rules section of the input file(s) */  /* readin - read in the rules section of the input file(s) */
   
 void  void
 readin()  readin()
 {  {
         static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;";          static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;";
Line 1455 
Line 1455 
          * However, if the POSIXLY_CORRECT variable is set, then we quietly           * However, if the POSIXLY_CORRECT variable is set, then we quietly
          * make flex as posix-compatible as possible.  This is the           * make flex as posix-compatible as possible.  This is the
          * recommended behavior according to the GNU Coding Standards.           * recommended behavior according to the GNU Coding Standards.
          *           *
          * Note: The posix option was added to flex to provide the posix           * Note: The posix option was added to flex to provide the posix
          * behavior of the repeat operator in regular expressions, e.g.,           * behavior of the repeat operator in regular expressions, e.g.,
          * `ab{3}'           * `ab{3}'
Line 1659 
Line 1659 
   
 /* set_up_initial_allocations - allocate memory for internal tables */  /* set_up_initial_allocations - allocate memory for internal tables */
   
 void  void
 set_up_initial_allocations()  set_up_initial_allocations()
 {  {
         maximum_mns = (long_align ? MAXIMUM_MNS_LONG : MAXIMUM_MNS);          maximum_mns = (long_align ? MAXIMUM_MNS_LONG : MAXIMUM_MNS);
Line 1739 
Line 1739 
         return b;          return b;
 }  }
   
 void  void
 usage()  usage()
 {  {
         FILE *f = stdout;          FILE *f = stdout;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27