]> git.saurik.com Git - bison.git/commit
Fix infringement on user name space reported by Bruno Haible.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 23:22:10 +0000 (23:22 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 23:22:10 +0000 (23:22 +0000)
commitbedf57f515d42455aa4cca5209dcbcaaa071eaab
tree8c75480842104784a3c360b5f775f48293b9358b
parent4d1801f1a888fc5687ae103fb76935ef0d24cbaf
Fix infringement on user name space reported by Bruno Haible.
* data/yacc.c (YYSIZE_T): Define first, so that later decls can use it.
Prefer GCC's __SIZE_TYPE__ if available, so that we don't infringe on
the user's name space.
(alloca): Include <stdlib.h> to get it, if it's not built in.
(YYMALLOC, YYFREE): Define only if needed.
(malloc, free): Declare, but only if needed, as this infringes on
the user name space.
ChangeLog
data/yacc.c