mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Omit option -p from tests.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,5 +1,15 @@
|
||||
2003-01-01 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* tests/Makefile.in (check-link-c, check-ada, check-pascal,
|
||||
check-test): Omit option -p.
|
||||
* tests/c-parse.exp: Regenerated.
|
||||
* tests/chill.exp: Regenerated.
|
||||
* tests/cplusplus.exp: Regenerated.
|
||||
* tests/gpc.exp: Regenerated.
|
||||
* tests/java.exp: Regenerated.
|
||||
* tests/objc.exp: Regenerated.
|
||||
* tests/test-4.exp: Regenerated.
|
||||
|
||||
* src/output.cc (Output::output_lookup_function_body): Omit the
|
||||
multicompare code section and its variables when it is not used.
|
||||
* tests/chill.exp: Regenerated.
|
||||
|
||||
@@ -67,7 +67,7 @@ extracheck : @CHECK_LANG_SYNTAX@
|
||||
check-link-c: force
|
||||
@echo "performing some tests of the perfect hash generator"
|
||||
$(CC) -c $(CFLAGS) $(srcdir)/test.c
|
||||
$(GPERF) -p -c -l -S1 -I -o $(srcdir)/c.gperf > cinset.c
|
||||
$(GPERF) -c -l -S1 -I -o $(srcdir)/c.gperf > cinset.c
|
||||
$(CC) $(CFLAGS) -o cout cinset.c test.o
|
||||
|
||||
check-link-c++: force
|
||||
@@ -84,7 +84,7 @@ check-ada:
|
||||
@echo "testing Ada reserved words, all items should be found in the set"
|
||||
./aout -v < $(srcdir)/ada.gperf > ada-res.out
|
||||
diff $(srcdir)/ada-res.exp ada-res.out
|
||||
$(GPERF) -p -D -k1,'$$' -s 2 -I -o $(srcdir)/adadefs.gperf > preinset.c
|
||||
$(GPERF) -D -k1,'$$' -s 2 -I -o $(srcdir)/adadefs.gperf > preinset.c
|
||||
$(CC) $(CFLAGS) -o preout preinset.c test.o
|
||||
@echo "testing Ada predefined words, all items should be found in the set"
|
||||
./preout -v < $(srcdir)/adadefs.gperf > ada-pred.out
|
||||
@@ -98,7 +98,7 @@ check-modula3:
|
||||
diff $(srcdir)/modula.exp modula.out
|
||||
|
||||
check-pascal:
|
||||
$(GPERF) -o -S2 -p -I < $(srcdir)/pascal.gperf > pinset.c
|
||||
$(GPERF) -o -S2 -I < $(srcdir)/pascal.gperf > pinset.c
|
||||
$(CC) $(CFLAGS) -o pout pinset.c test.o
|
||||
@echo "testing Pascal reserved words, all items should be found in the set"
|
||||
./pout -v < $(srcdir)/pascal.gperf > pascal.out
|
||||
@@ -136,21 +136,21 @@ check-smtp:
|
||||
|
||||
# these next 5 are demos that show off the generated code
|
||||
check-test:
|
||||
$(GPERF) -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > c-parse.out
|
||||
$(GPERF) -L C -F ', 0, 0' -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > c-parse.out
|
||||
diff $(srcdir)/c-parse.exp c-parse.out
|
||||
$(GPERF) -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/objc.gperf > objc.out
|
||||
$(GPERF) -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/objc.gperf > objc.out
|
||||
diff $(srcdir)/objc.exp objc.out
|
||||
$(GPERF) -L C -F ', 0, 0, 0' -D -E -S1 -p -j1 -i 1 -g -o -t -k'*' < $(srcdir)/chill.gperf > chill.out
|
||||
$(GPERF) -L C -F ', 0, 0, 0' -D -E -S1 -j1 -i 1 -g -o -t -k'*' < $(srcdir)/chill.gperf > chill.out
|
||||
diff $(srcdir)/chill.exp chill.out
|
||||
$(GPERF) -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,7,'$$' < $(srcdir)/cplusplus.gperf > cplusplus.out
|
||||
$(GPERF) -L C -F ', 0, 0' -j1 -g -o -t -N is_reserved_word -k1,4,7,'$$' < $(srcdir)/cplusplus.gperf > cplusplus.out
|
||||
diff $(srcdir)/cplusplus.exp cplusplus.out
|
||||
$(GPERF) -L C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k1,3,'$$' < $(srcdir)/java.gperf > java.out
|
||||
$(GPERF) -L C -F ', 0' -t -j1 -i 1 -g -o -N java_keyword -k1,3,'$$' < $(srcdir)/java.gperf > java.out
|
||||
diff $(srcdir)/java.exp java.out
|
||||
$(GPERF) -n -k1-8 -l < $(srcdir)/modula2.gperf > modula2.out
|
||||
diff $(srcdir)/modula2.exp modula2.out
|
||||
$(GPERF) -D -p -t -k1,'$$' < $(srcdir)/c-parse.gperf > test-4.out
|
||||
$(GPERF) -D -t -k1,'$$' < $(srcdir)/c-parse.gperf > test-4.out
|
||||
diff $(srcdir)/test-4.exp test-4.out
|
||||
$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > gpc.out
|
||||
$(GPERF) -g -o -j1 -t -N is_reserved_word < $(srcdir)/gpc.gperf > gpc.out
|
||||
diff $(srcdir)/gpc.exp gpc.out
|
||||
$(GPERF) -m5 < $(srcdir)/permut2.gperf > permut2.out
|
||||
diff $(srcdir)/permut2.exp permut2.out
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k'1,3,$' */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0' -j1 -i 1 -g -o -t -G -N is_reserved_word -k'1,3,$' */
|
||||
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
struct resword { const char *name; short token; enum rid rid; };
|
||||
|
||||
#define TOTAL_KEYWORDS 83
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%{
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
%}
|
||||
struct resword { const char *name; short token; enum rid rid; };
|
||||
%%
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0, 0' -D -E -S1 -p -j1 -i 1 -g -o -t -k'*' */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0, 0' -D -E -S1 -j1 -i 1 -g -o -t -k'*' */
|
||||
struct resword {
|
||||
const char *name;
|
||||
short token;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k'1,4,7,$' */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0, 0' -j1 -g -o -t -N is_reserved_word -k'1,4,7,$' */
|
||||
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
||||
struct resword { const char *name; short token; enum rid rid;};
|
||||
|
||||
#define TOTAL_KEYWORDS 106
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%{
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
||||
%}
|
||||
struct resword { const char *name; short token; enum rid rid;};
|
||||
%%
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -g -o -j1 -t -p -N is_reserved_word */
|
||||
/* Command-line: ../src/gperf -g -o -j1 -t -N is_reserved_word */
|
||||
/* Computed positions: -k'1,$' */
|
||||
|
||||
/* ISO Pascal 7185 reserved words.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k'1,3,$' */
|
||||
/* Command-line: ../src/gperf -L C -F ', 0' -t -j1 -i 1 -g -o -N java_keyword -k'1,3,$' */
|
||||
|
||||
/* Keyword definition for the GNU compiler for the Java(TM) language.
|
||||
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -p -j1 -i 1 -g -o -t -N is_reserved_word -k'1,3,$' */
|
||||
/* Command-line: ../src/gperf -j1 -i 1 -g -o -t -N is_reserved_word -k'1,3,$' */
|
||||
|
||||
/* Command-line: gperf -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ objc.gperf */
|
||||
/* Command-line: gperf -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ objc.gperf */
|
||||
struct resword { char *name; short token; enum rid rid; };
|
||||
|
||||
#define TOTAL_KEYWORDS 59
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%{
|
||||
/* Command-line: gperf -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ objc.gperf */
|
||||
/* Command-line: gperf -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ objc.gperf */
|
||||
%}
|
||||
struct resword { char *name; short token; enum rid rid; };
|
||||
%%
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* C code produced by gperf version 2.7.2 */
|
||||
/* Command-line: ../src/gperf -D -p -t -k'1,$' */
|
||||
/* Command-line: ../src/gperf -D -t -k'1,$' */
|
||||
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
/* Command-line: gperf -L KR-C -F ', 0, 0' -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
||||
struct resword { const char *name; short token; enum rid rid; };
|
||||
|
||||
#define TOTAL_KEYWORDS 83
|
||||
|
||||
Reference in New Issue
Block a user