Alien-flex
view release on metacpan or search on metacpan
patch/flex-2.6.4.diff view on Meta::CPAN
+#, c-format
+msgid "yymore() entails a minor performance penalty\n"
+msgstr "yymore() ÑпÑиÑинÑе незнаÑне Ð·Ð½Ð¸Ð¶ÐµÐ½Ð½Ñ Ð¿ÑодÑкÑивноÑÑÑ\n"
+
+#: src/main.c:1566
+#, c-format
+msgid "REJECT entails a large performance penalty\n"
+msgstr "REJECT ÑпÑиÑинÑе знаÑне Ð·Ð½Ð¸Ð¶ÐµÐ½Ð½Ñ Ð¿ÑодÑкÑивноÑÑÑ\n"
+
+#: src/main.c:1571
+#, c-format
+msgid "Variable trailing context rules entail a large performance penalty\n"
+msgstr ""
+"ÐÑавила коÑÑÑ Ð¼Ð°ÑÑÑ Ð·Ð°Ð¼Ð¸ÐºÐ°ÑÑий конÑекÑÑ Ð·Ð¼ÑÐ½Ð½Ð¾Ñ Ð´Ð¾Ð²Ð¶Ð¸Ð½Ð¸ знаÑно знижÑÑÑÑ "
+"пÑодÑкÑивнÑÑÑÑ\n"
+
+#: src/main.c:1583
+msgid "REJECT cannot be used with -f or -F"
+msgstr "REJECT не може бÑÑи викоÑиÑÑано Ñазом з -f або -F"
+
+#: src/main.c:1586
+#, c-format
+msgid "%option yylineno cannot be used with REJECT"
+msgstr "%option yylineno не може бÑÑи викоÑиÑÑано з REJECT"
+
+#: src/main.c:1589
+msgid "variable trailing context rules cannot be used with -f or -F"
+msgstr ""
+"ÐÑавила коÑÑÑ Ð¼Ð°ÑÑÑ Ð·Ð°Ð¼Ð¸ÐºÐ°ÑÑий конÑекÑÑ Ð·Ð¼ÑÐ½Ð½Ð¾Ñ Ð´Ð¾Ð²Ð¶Ð¸Ð½Ð¸ не можÑÑÑ Ð±ÑÑи "
+"викоÑиÑÑÐ°Ð½Ñ Ð· -f or -F"
+
+#: src/main.c:1714
+#, c-format
+msgid "%option yyclass only meaningful for C++ scanners"
+msgstr "%option yyclass Ð¼Ð°Ñ ÑÐµÐ½Ñ ÑÑлÑки Ð´Ð»Ñ ÑканеÑÑв C++"
+
+#: src/main.c:1801
+#, c-format
+msgid "Usage: %s [OPTIONS] [FILE]...\n"
+msgstr "ÐикоÑиÑÑаннÑ: %s [ÐÐÐ ÐÐÐТРÐ] [ФÐÐÐ]â¦\n"
+
+#: src/main.c:1804
+#, fuzzy, c-format
+msgid ""
+"Generates programs that perform pattern-matching on text.\n"
+"\n"
+"Table Compression:\n"
+" -Ca, --align trade off larger tables for better memory alignment\n"
+" -Ce, --ecs construct equivalence classes\n"
+" -Cf do not compress tables; use -f representation\n"
+" -CF do not compress tables; use -F representation\n"
+" -Cm, --meta-ecs construct meta-equivalence classes\n"
+" -Cr, --read use read() instead of stdio for scanner input\n"
+" -f, --full generate fast, large scanner. Same as -Cfr\n"
+" -F, --fast use alternate table representation. Same as -CFr\n"
+" -Cem default compression (same as --ecs --meta-ecs)\n"
+"\n"
+"Debugging:\n"
+" -d, --debug enable debug mode in scanner\n"
+" -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"
+" -B, --batch generate batch scanner (opposite of -I)\n"
+" -i, --case-insensitive ignore case in patterns\n"
+" -l, --lex-compat maximal compatibility with original lex\n"
+" -X, --posix-compat maximal compatibility with POSIX lex\n"
+" -I, --interactive generate interactive scanner (opposite of -B)\n"
+" --yylineno track line count in yylineno\n"
+"\n"
+"Generated code:\n"
+" -+, --c++ generate C++ scanner class\n"
+" -Dmacro[=defn] #define macro defn (default defn is '1')\n"
+" -L, --noline suppress #line directives in scanner\n"
+" -P, --prefix=STRING use STRING as prefix instead of \"yy\"\n"
+" -R, --reentrant generate a reentrant C scanner\n"
+" --bison-bridge scanner for bison pure parser.\n"
+" --bison-locations include yylloc support.\n"
+" --stdinit initialize yyin/yyout to stdin/stdout\n"
+" --nounistd do not include <unistd.h>\n"
+" --noFUNCTION do not generate a particular FUNCTION\n"
+"\n"
+"Miscellaneous:\n"
+" -c do-nothing POSIX option\n"
+" -n do-nothing POSIX option\n"
+" -?\n"
+" -h, --help produce this help message\n"
+" -V, --version report %s version\n"
+msgstr ""
+"ÐенеÑÑÑ Ð¿ÑогÑами, Ñо знаÑ
одÑÑÑ Ñаблони Ñ ÑекÑÑÑ.\n"
+"\n"
+"СÑиÑÐ½ÐµÐ½Ð½Ñ ÑаблиÑÑ:\n"
+" -Ca, --align виÑÑвнÑÑи ÑаблиÑÑ Ñ Ð¿Ð°Ð¼'ÑÑÑ Ð·Ð±ÑлÑÑивÑи ÑозмÑÑ\n"
+" ÑÑ
елеменÑÑв\n"
+" -Ce, --ecs ÑÑвоÑÑваÑи клаÑи еквÑваленÑноÑÑÑ\n"
+" -Cf не ÑÑиÑкаÑи ÑаблиÑÑ; викоÑиÑÑовÑваÑи -f пÑедÑÑавленнÑ\n"
+" -CF не ÑÑиÑкаÑи ÑаблиÑÑ; викоÑиÑÑовÑваÑи -F пÑедÑÑавленнÑ\n"
+" -Cm, --meta-ecs ÑÑвоÑÑваÑи клаÑи меÑа-еквÑваленÑноÑÑÑ\n"
+" -Cr, --read викоÑиÑÑаÑи read() замÑÑÑÑ stdio Ñк\n"
+" вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ ÑканеÑа\n"
+" -f, --full ÑÑвоÑиÑи Ñвидкий, великий ÑканеÑ. Теж Ñаме, Ñо -Cfr\n"
+" -F, --fast заÑÑоÑÑваÑи алÑÑеÑнаÑивний Ð¾Ð¿Ð¸Ñ ÑаблиÑÑ.\n"
+" Теж Ñаме, Ñо -CFr\n"
+" -Cem ÑÑепÑÐ½Ñ ÑÑиÑÐ½ÐµÐ½Ð½Ñ Ð·Ð° замовÑÑваннÑм\n"
+" (Ñеж Ñаме, Ñо --ecs --meta-ecs)\n"
+"\n"
+"ÐалагодженнÑ:\n"
+" -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"
+" (пÑоÑилежна за влаÑÑивоÑÑÑми до опÑÑÑ -I)\n"
+" -i, --case-insensitive ÑгноÑÑваÑи ÑегÑÑÑÑ ÑимволÑв Ñ ÑаблонаÑ
\n"
+" -l, --lex-compat макÑималÑна ÑÑмÑÑнÑÑÑÑ Ð· оÑигÑналÑним lex\n"
+" -X, --posix-compat макÑималÑна ÑÑмÑÑнÑÑÑÑ Ð· POSIX lex\n"
+" -I, --interactive ÑÑвоÑиÑи ÑнÑеÑакÑивний ÑканеÑ\n"
+" (пÑоÑилежна за влаÑÑивоÑÑÑми до опÑÑÑ -B)\n"
+" --yylineno вÑдÑлÑдковÑваÑи ÑиÑло ÑÑдкÑв Ñ yylineno\n"
+"\n"
+"ÐенеÑаÑÑÑ ÐºÐ¾Ð´Ñ:\n"
+" -+, --c++ ÑÑвоÑиÑи C++ ÐºÐ»Ð°Ñ ÑканеÑа\n"
+" -Dmacro[=defn] #define macro defn (за замовÑÑваннÑм defn='1')\n"
+" -L, --noline не ÑÑвоÑÑваÑи #line диÑекÑиви Ð´Ð»Ñ ÑканеÑа\n"
+" -P, --prefix=РЯÐÐРвикоÑиÑÑаÑи РЯÐÐÐ Ñк пÑеÑÑÐºÑ Ð·Ð°Ð¼ÑÑÑÑ Â«yy»\n"
+" -R, --reentrant генеÑÑваÑи ÑеенÑеÑабелÑний C-ÑканеÑ\n"
+" --bison-bridge ÑÐºÐ°Ð½ÐµÑ ÑÑлÑки Ð´Ð»Ñ bison аналÑзаÑоÑÑ\n"
+" --bison-locations додаÑи пÑдÑÑÐ¸Ð¼ÐºÑ yylloc\n"
+" --stdinit ÑнÑÑÑалÑзÑваÑи yyin/yyout до stdin/stdout\n"
+" --noansi-definitions визнаÑÐµÐ½Ð½Ñ ÑÑнкÑÑй Ñ Ð·Ð°ÑÑаÑÑÐ»Ð¾Ð¼Ñ ÑÑилÑ\n"
+" --noansi-prototypes поÑожнÑй ÑпиÑок паÑамеÑÑÑв Ñ Ð¿ÑоÑоÑипаÑ
\n"
+" --nounistd не додаваÑи <unistd.h>\n"
+" --noФУÐÐЦÐЯ не генеÑÑваÑи Ð·Ð°Ð´Ð°Ð½Ñ ÑÑнкÑÑÑ Ð¤Ð£ÐÐЦÐЯ\n"
+"\n"
+"ÐнÑе:\n"
+" -Ñ Ð½ÐµÐ´ÑÑÑий POSIX паÑамеÑÑ\n"
+" -n недÑÑÑий POSIX паÑамеÑÑ\n"
+" -?\n"
+" -h, --help показаÑи ÑÑ Ð´Ð¾Ð²ÑдкÑ\n"
+" -V, --version показаÑи веÑÑÑÑ %s\n"
+
+#: src/misc.c:64
+msgid "allocation of sko_stack failed"
+msgstr "не вдалоÑÑ Ð¾ÑÑимаÑи памâÑÑÑ Ð¿Ñд sko_stack"
+
+#: src/misc.c:100
+#, c-format
+msgid "name \"%s\" ridiculously long"
+msgstr "Ñм'Ñ Â«%s» занадÑо довге"
+
+#: src/misc.c:149 src/misc.c:162
+msgid "memory allocation failed in allocate_array()"
+msgstr "помилка видÑÐ»ÐµÐ½Ð½Ñ Ð¿Ð°Ð¼'ÑÑÑ Ñ allocate_array()"
+
patch/flex-2.6.4.diff view on Meta::CPAN
#include <math.h>
@@ -77,8 +76,10 @@
#include <strings.h>
#include "flexint.h"
-/* We use gettext. So, when we write strings which should be translated, we mark them with _() */
-#ifdef ENABLE_NLS
+/* We use gettext. So, when we write strings which should be translated, we
+ * mark them with _()
+ */
+#if defined(ENABLE_NLS) && ENABLE_NLS
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif /* HAVE_LOCALE_H */
@@ -631,10 +632,6 @@ extern int sectnum, nummt, hshcol, dfaeql, numeps, eps2, num_reallocs;
extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave;
extern int num_backing_up, bol_needed;
-#ifndef HAVE_REALLOCARRAY
-void *reallocarray(void *, size_t, size_t);
-#endif
-
void *allocate_array(int, size_t);
void *reallocate_array(void *, int, size_t);
@@ -1131,7 +1128,7 @@ extern int filter_fix_linedirs(struct filter *chain);
* From "regex.c"
*/
-extern regex_t regex_linedir, regex_blank_line;
+extern regex_t regex_linedir;
bool flex_init_regex(void);
void flex_regcomp(regex_t *preg, const char *regex, int cflags);
char *regmatch_dup (regmatch_t * m, const char *src);
diff --git a/src/gen.c b/src/gen.c
index 590e5d8..c959f75 100644
--- a/src/gen.c
+++ b/src/gen.c
@@ -464,14 +464,14 @@ static struct yytbl_data *mkecstbl (void)
void genecs (void)
{
- int i, j;
+ int ch, row;
int numrows;
out_str_dec (get_yy_char_decl (), "yy_ec", csize);
- for (i = 1; i < csize; ++i) {
- ecgroup[i] = ABS (ecgroup[i]);
- mkdata (ecgroup[i]);
+ for (ch = 1; ch < csize; ++ch) {
+ ecgroup[ch] = ABS (ecgroup[ch]);
+ mkdata (ecgroup[ch]);
}
dataend ();
@@ -479,12 +479,13 @@ void genecs (void)
if (trace) {
fputs (_("\n\nEquivalence Classes:\n\n"), stderr);
+ /* Print in 8 columns */
numrows = csize / 8;
- for (j = 0; j < numrows; ++j) {
- for (i = j; i < csize; i = i + numrows) {
+ for (row = 0; row < numrows; ++row) {
+ for (ch = row; ch < csize; ch += numrows) {
fprintf (stderr, "%4s = %-2d",
- readable_form (i), ecgroup[i]);
+ readable_form (ch), ecgroup[ch]);
putc (' ', stderr);
}
@@ -1234,9 +1235,9 @@ void gentabs (void)
yytbl_data_compress (yyacc_tbl);
if (yytbl_data_fwrite (&tableswr, yyacc_tbl) < 0)
flexerror (_("Could not write yyacc_tbl"));
- yytbl_data_destroy (yyacc_tbl);
- yyacc_tbl = NULL;
}
+ yytbl_data_destroy (yyacc_tbl);
+ yyacc_tbl = NULL;
/* End generating yy_accept */
if (useecs) {
@@ -1289,11 +1290,10 @@ void gentabs (void)
if (tablesext) {
yytbl_data_compress (yymeta_tbl);
if (yytbl_data_fwrite (&tableswr, yymeta_tbl) < 0)
- flexerror (_
- ("Could not write yymeta_tbl"));
- yytbl_data_destroy (yymeta_tbl);
- yymeta_tbl = NULL;
+ flexerror (_("Could not write yymeta_tbl"));
}
+ yytbl_data_destroy (yymeta_tbl);
+ yymeta_tbl = NULL;
/* End generating yy_meta */
}
@@ -1350,9 +1350,9 @@ void gentabs (void)
yytbl_data_compress (yybase_tbl);
if (yytbl_data_fwrite (&tableswr, yybase_tbl) < 0)
flexerror (_("Could not write yybase_tbl"));
- yytbl_data_destroy (yybase_tbl);
- yybase_tbl = NULL;
}
+ yytbl_data_destroy (yybase_tbl);
+ yybase_tbl = NULL;
/* End generating yy_base */
@@ -1382,9 +1382,9 @@ void gentabs (void)
yytbl_data_compress (yydef_tbl);
if (yytbl_data_fwrite (&tableswr, yydef_tbl) < 0)
flexerror (_("Could not write yydef_tbl"));
- yytbl_data_destroy (yydef_tbl);
- yydef_tbl = NULL;
}
+ yytbl_data_destroy (yydef_tbl);
+ yydef_tbl = NULL;
/* End generating yy_def */
@@ -1420,9 +1420,9 @@ void gentabs (void)
yytbl_data_compress (yynxt_tbl);
if (yytbl_data_fwrite (&tableswr, yynxt_tbl) < 0)
flexerror (_("Could not write yynxt_tbl"));
- yytbl_data_destroy (yynxt_tbl);
- yynxt_tbl = NULL;
}
+ yytbl_data_destroy (yynxt_tbl);
( run in 0.469 second using v1.01-cache-2.11-cpan-9288abcf80b )