test for valgrind; valgrind is independent of g++.
(maintainer-check-posix): Add _POSIX2_VERSION=200112, to check
for compatibility with POSIX 1003.1-2001 (if running coreutils).
* tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Port to stricter C++.
Use a destructor, so that we can expand the stack. Change
YYSTYPE to char * so that we can free it. Cast result of malloc.
2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
+ Fix problems reported by twlevo@xs4all.nl.
* tests/Makefile.am (maintainer-check-g++): Fix a stray
* tests/Makefile.am (maintainer-check-g++): Fix a stray
- $(GXX) that escaped the renaming of GXX to CXX. Problem
- reported by twlevo@xs4all.nl.
+ $(GXX) that escaped the renaming of GXX to CXX. Remove bogus
+ test for valgrind; valgrind is independent of g++.
+ (maintainer-check-posix): Add _POSIX2_VERSION=200112, to check
+ for compatibility with POSIX 1003.1-2001 (if running coreutils).
+ * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Port to stricter C++.
+ Use a destructor, so that we can expand the stack. Change
+ YYSTYPE to char * so that we can free it. Cast result of malloc.
2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU>
2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU>
# Be real mean with it.
.PHONY: maintainer-check-g++
maintainer-check-g++: $(TESTSUITE)
# Be real mean with it.
.PHONY: maintainer-check-g++
maintainer-check-g++: $(TESTSUITE)
- if test -n "$(VALGRIND)"; then \
- $(TESTSUITE) CC='$(CXX)'; \
- else \
- true; \
- fi
+ $(TESTSUITE) CC='$(CXX)'
.PHONY: maintainer-check-posix
maintainer-check-posix: $(TESTSUITE)
.PHONY: maintainer-check-posix
maintainer-check-posix: $(TESTSUITE)
- $(TESTSUITE) POSIXLY_CORRECT=1
+ $(TESTSUITE) POSIXLY_CORRECT=1 _POSIX2_VERSION=200112
.PHONY: maintainer-check-valgrind
maintainer-check-valgrind: $(TESTSUITE)
.PHONY: maintainer-check-valgrind
maintainer-check-valgrind: $(TESTSUITE)
# Checking GLR Parsing. -*- Autotest -*-
# Checking GLR Parsing. -*- Autotest -*-
-# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
- #define YYSTYPE char const *
]m4_bmatch([$2], [stmtMerge],
[ static YYSTYPE stmtMerge (YYSTYPE x0, YYSTYPE x1);])[
#define YYINITDEPTH 10
]m4_bmatch([$2], [stmtMerge],
[ static YYSTYPE stmtMerge (YYSTYPE x0, YYSTYPE x1);])[
#define YYINITDEPTH 10
+%destructor { free ($$); } TYPENAME ID
+
ungetc (c, stdin);
buffer[i++] = 0;
tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
ungetc (c, stdin);
buffer[i++] = 0;
tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
- yylval = strcpy (malloc (i), buffer);
+ yylval = strcpy ((char *) malloc (i), buffer);
va_start (args, form);
vsprintf (buffer, form, args);
va_end (args);
va_start (args, form);
vsprintf (buffer, form, args);
va_end (args);
- return strcpy (malloc (strlen (buffer) + 1), buffer);
+ return strcpy ((char *) malloc (strlen (buffer) + 1), buffer);