X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a083fbbf221545ea6e68a831da060d8834f36eca..29620c5d9ca470f7c81a2de14b031798a33e7589:/src/derives.c diff --git a/src/derives.c b/src/derives.c index 33a8a035..6002b88f 100644 --- a/src/derives.c +++ b/src/derives.c @@ -15,7 +15,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Bison; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ /* set_derives finds, for each variable (nonterminal), which rules can derive it. @@ -25,15 +26,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include "system.h" -#include "new.h" +#include "alloc.h" #include "types.h" #include "gram.h" +void set_derives PARAMS((void)); +void free_derives PARAMS((void)); short **derives; void -set_derives() +set_derives (void) { register int i; register int lhs; @@ -82,7 +85,7 @@ set_derives() } void -free_derives() +free_derives (void) { FREE(derives[ntokens]); FREE(derives + ntokens); @@ -92,7 +95,8 @@ free_derives() #ifdef DEBUG -print_derives() +void +print_derives (void) { register int i; register short *sp; @@ -115,4 +119,3 @@ print_derives() } #endif -