bison/src derives.c

Paul Eggert <[email protected]>
Newsgroups gmane.comp.parsers.bison.cvs
Message-ID <[email protected]>
CVSROOT:	/cvsroot/bison
Module name:	bison
Changes by:	Paul Eggert <[email protected]>	02/12/12 23:50:32

Modified files:
	src            : derives.c 

Log message:
	(derives_compute): Do not subtract NTOKENS from
	the pointer DSET returned by malloc; this isn't portable.
	Instead, always use DSET[i - NTOKENS] rather than DSET[i].
	Similarly for DERIVES.
	
	(derives_compute): Do not bother invoking
	int_of_rule_number, since rule numbers are integers.
	
	All uses of XCALLOC, XMALLOC, and XREALLOC changed to use new macros
	CALLOC, MALLOC, REALLOC.  All uses of XFREE changed to free.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/derives.c.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.