diff options
author | nate <nate@FreeBSD.org> | 1996-06-19 20:48:06 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-06-19 20:48:06 +0000 |
commit | d4f014461bc07fca54b2cd433609b621fc41de13 (patch) | |
tree | ae643c558fdb5902ac3cf1acf047d18715e1846d /usr.bin/lex/tblcmp.c | |
parent | 5ef1dc8eacedf7cc26d0872db31307f1bcc25fae (diff) | |
download | FreeBSD-src-d4f014461bc07fca54b2cd433609b621fc41de13.zip FreeBSD-src-d4f014461bc07fca54b2cd433609b621fc41de13.tar.gz |
Finish the import and merge in FreeBSD specific changes.
Add a 'bootstrap' target which *must* be run before building the new
version, since the new scanner relies on the current version of flex to
build itself otherwise.
Diffstat (limited to 'usr.bin/lex/tblcmp.c')
-rw-r--r-- | usr.bin/lex/tblcmp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/lex/tblcmp.c b/usr.bin/lex/tblcmp.c index 655717b..738b76d 100644 --- a/usr.bin/lex/tblcmp.c +++ b/usr.bin/lex/tblcmp.c @@ -6,7 +6,7 @@ * * This code is derived from software contributed to Berkeley by * Vern Paxson. - * + * * The United States Government has rights in this work pursuant * to contract no. DE-AC03-76SF00098 between the United States * Department of Energy and the University of California. @@ -26,7 +26,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -/* $Header: /home/ncvs/src/usr.bin/lex/tblcmp.c,v 1.1.1.1 1994/08/24 13:10:31 csgr Exp $ */ +/* $Header: /home/ncvs/src/usr.bin/lex/tblcmp.c,v 1.1.1.2 1996/06/19 20:26:43 nate Exp $ */ #include "flexdef.h" @@ -310,7 +310,7 @@ void expand_nxt_chk() chk = reallocate_integer_array( chk, current_max_xpairs ); zero_out( (char *) (chk + old_max), - MAX_XPAIRS_INCREMENT * sizeof( int ) / sizeof( char ) ); + (size_t) (MAX_XPAIRS_INCREMENT * sizeof( int )) ); } @@ -436,8 +436,7 @@ void inittbl() { register int i; - zero_out( (char *) chk, - current_max_xpairs * sizeof( int ) / sizeof( char ) ); + zero_out( (char *) chk, (size_t) (current_max_xpairs * sizeof( int )) ); tblend = 0; firstfree = tblend + 1; |