scanflags.c (228072) | scanflags.c (250125) |
---|---|
1/* scanflags - flags used by scanning. */ 2 3/* Copyright (c) 1990 The Regents of the University of California. */ 4/* All rights reserved. */ 5 6/* This code is derived from software contributed to Berkeley by */ 7/* Vern Paxson. */ 8 --- 46 unchanged lines hidden (view full) --- 55} 56 57/* one-time initialization. Should be called before any sf_ functions. */ 58void 59sf_init (void) 60{ 61 assert(_sf_stk == NULL); 62 _sf_stk = (scanflags_t*) flex_alloc ( sizeof(scanflags_t) * (_sf_max = 32)); | 1/* scanflags - flags used by scanning. */ 2 3/* Copyright (c) 1990 The Regents of the University of California. */ 4/* All rights reserved. */ 5 6/* This code is derived from software contributed to Berkeley by */ 7/* Vern Paxson. */ 8 --- 46 unchanged lines hidden (view full) --- 55} 56 57/* one-time initialization. Should be called before any sf_ functions. */ 58void 59sf_init (void) 60{ 61 assert(_sf_stk == NULL); 62 _sf_stk = (scanflags_t*) flex_alloc ( sizeof(scanflags_t) * (_sf_max = 32)); |
63 if (!_sf_stk) 64 lerrsf_fatal(_("Unable to allocate %ld of stack"), 65 (long)sizeof(scanflags_t)); |
|
63 _sf_stk[_sf_top_ix] = 0; 64} 65 66/* vim:set expandtab cindent tabstop=4 softtabstop=4 shiftwidth=4 textwidth=0: */ | 66 _sf_stk[_sf_top_ix] = 0; 67} 68 69/* vim:set expandtab cindent tabstop=4 softtabstop=4 shiftwidth=4 textwidth=0: */ |