~vcs-imports/flex/trunk

« back to all changes in this revision

Viewing changes to scanflags.c

  • Committer: wlestes
  • Date: 2012-02-03 22:32:35 UTC
  • Revision ID: wlestes-20120203223235-m3k5tplyzf4j6jza
more better error messages; more better memory handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
{
61
61
    assert(_sf_stk == NULL);
62
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
66
    _sf_stk[_sf_top_ix] = 0;
64
67
}
65
68