Alien-flex
    
    
  
  
  
view release on metacpan or search on metacpan
patch/flex-2.6.4.diff view on Meta::CPAN
+"  -b, --backup            write backing-up information to %s\n"
+"  -p, --perf-report       write performance report to stderr\n"
+"  -s, --nodefault         suppress default rule to ECHO unmatched text\n"
+"  -T, --trace             %s should run in trace mode\n"
+"  -w, --nowarn            do not generate warnings\n"
+"  -v, --verbose           write summary of scanner statistics to stdout\n"
+"      --hex               use hexadecimal numbers instead of octal in debug "
+"outputs\n"
+"\n"
+"Files:\n"
+"  -o, --outfile=FILE      specify output filename\n"
+"  -S, --skel=FILE         specify skeleton file\n"
+"  -t, --stdout            write scanner on stdout instead of %s\n"
+"      --yyclass=NAME      name of C++ class\n"
+"      --header-file=FILE   create a C header file in addition to the "
+"scanner\n"
+"      --tables-file[=FILE] write tables to FILE\n"
+"\n"
+"Scanner behavior:\n"
+"  -7, --7bit              generate 7-bit scanner\n"
+"  -8, --8bit              generate 8-bit scanner\n"
    
  
  
  patch/flex-2.6.4.diff view on Meta::CPAN
+"  -d, --debug             ÑвÑмкнÑÑи Ñежим Ð½Ð°Ð»Ð°Ð³Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ ÑканеÑа\n"
+"  -b, --backup            запиÑаÑи ÑезеÑÐ²Ð½Ñ ÐºÐ¾Ð¿ÑÑ Ð´Ð¾ %s\n"
+"  -p, --perf-report       запиÑаÑи звÑÑ Ð¿Ñо пÑодÑкÑивнÑÑÑÑ Ð´Ð¾ stderr\n"
+"  -s, --nodefault         пÑипиниÑи вивÑд ÑекÑÑÑ (ECHO до stdout)\n"
+"                          Ñо не збÑгаÑÑÑÑÑ Ð· жодним пÑавилом\n"
+"  -T, --trace             %s повинен запÑÑкаÑиÑÑ Ñ ÑÐµÐ¶Ð¸Ð¼Ñ ÑÑаÑÑваннÑ\n"
+"  -w, --nowarn            не видаваÑи попеÑедженÑ\n"
+"  -v, --verbose           запиÑаÑи пÑдÑÑÐ¼ÐºÐ¾Ð²Ñ ÑÑаÑиÑÑÐ¸ÐºÑ ÑканеÑа до stdout\n"
+"\n"
+"Файли:\n"
+"  -o, --outfile=ФÐÐÐ        вказаÑи Ñм'Ñ Ð²Ð¸Ñ
Ñдного Ñайла\n"
+"  -S, --skel=ФÐÐÐ           вказаÑи Ñайл каÑкаÑÑ\n"
+"  -t, --stdout              запиÑаÑи ÑÐºÐ°Ð½ÐµÑ Ð´Ð¾ stdout замÑÑÑÑ %s\n"
+"      --yyclass=ÐÐ'Я        Ñм'Ñ ÐºÐ»Ð°ÑÑ C++\n"
+"      --header-file=ФÐÐÐ    ÑÑвоÑиÑи C Ñайл заголовок ÑканеÑа\n"
+"      --tables-file[=ФÐÐÐ]  запиÑаÑи ÑаблиÑÑ Ñ Ð¤ÐÐÐ\n"
+"\n"
+"ÐоведÑнка ÑканеÑа:\n"
+"  -7, --7bit              ÑÑвоÑиÑи 7-бÑÑний ÑканеÑ\n"
+"  -8, --8bit              ÑÑвоÑиÑи 8-бÑÑний ÑканеÑ\n"
+"  -B, --batch             ÑÑвоÑиÑи пакеÑний ÑканеÑ\n"
    
  
  
  patch/flex-2.6.4.diff view on Meta::CPAN
 	 */
 
-	const int readsz = 512;
-	char   *buf;
+	char    buf[512];
 	int     to_cfd = -1;
 	FILE   *to_c = NULL, *to_h = NULL;
 	bool    write_header;
@@ -283,10 +280,7 @@ int filter_tee_header (struct filter *chain)
 	fprintf (to_c, "m4_define( [[M4_YY_OUTFILE_NAME]],[[%s]])m4_dnl\n",
 		 outfilename ? outfilename : "<stdout>");
 
-	buf = malloc((size_t) readsz);
-	if (!buf)
-		flexerror(_("malloc failed in filter_tee_header"));
-	while (fgets (buf, readsz, stdin)) {
+	while (fgets (buf, sizeof buf, stdin)) {
 		fputs (buf, to_c);
 		if (write_header)
 			fputs (buf, to_h);
@@ -328,6 +322,13 @@ int filter_tee_header (struct filter *chain)
    
  
  
  patch/flex-2.6.4.diff view on Meta::CPAN
+Description: Flex (the fast lexical analyzer) support library
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lfl
diff --git a/src/main.c b/src/main.c
index e5eac44..a4047d7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -117,7 +117,7 @@ struct yytbl_writer tableswr;
 char   *program_name = "flex";
 
 static const char outfile_template[] = "lex.%s.%s";
-static const char backing_name[] = "lex.backup";
+static const char *backing_name = "lex.backup";
 static const char tablesfile_template[] = "lex.%s.tables";
 
 /* From scan.l */
@@ -197,7 +197,7 @@ int flex_main (int argc, char *argv[])
 /* Wrapper around flex_main, so flex_main can be built as a library. */
 int main (int argc, char *argv[])
 {
-#if ENABLE_NLS
    
  
  
  patch/flex-2.6.4.diff view on Meta::CPAN
-		  "      --tables-file[=FILE] write tables to FILE\n" "\n"
+		  "      --tables-file[=FILE] write tables to FILE\n"
+		  "      --backup-file=FILE  write backing-up information to FILE\n" "\n"
 		  "Scanner behavior:\n"
 		  "  -7, --7bit              generate 7-bit scanner\n"
 		  "  -8, --8bit              generate 8-bit scanner\n"
@@ -1844,6 +1860,6 @@ void usage (void)
 		  "  -?\n"
 		  "  -h, --help              produce this help message\n"
 		  "  -V, --version           report %s version\n"),
-		 backing_name, program_name, outfile_path, program_name);
+		 backing_name, "flex", outfile_path, "flex");
 
 }
diff --git a/src/misc.c b/src/misc.c
index ef27833..745e6a8 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -116,15 +116,14 @@ void add_action (const char *new_text)
 	int     len = (int) strlen (new_text);
 
 	while (len + action_index >= action_size - 10 /* slop */ ) {
    
  
  
  
( run in 0.833 second using v1.01-cache-2.11-cpan-0a6323c29d9 )