Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ast/gramlex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
#include <fstream> // cout, ifstream


// workaround for flex-2.5.31
#ifdef FLEX_STD // detect later versions of flex
// copied from flex's output
// workaround for flex-2.5.31 and later
#ifndef yy_current_buffer // FlexLexer.h changed function
// check for macro definition
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)

// the 'yy_current_buffer' field was replaced by the buffer stack
// alluded to above
#define yy_current_buffer YY_CURRENT_BUFFER
#endif // FLEX_STD
#endif // yy_current_buffer


// ----------------- GrammarLexer::AltReportError ---------------
Expand Down
1 change: 1 addition & 0 deletions smbase/configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# configure script for smbase

use strict 'subs';
use lib '.';

require sm_config;

Expand Down