InputLoc loc;
loc.line = 1;
loc.col = 1;
+ loc.fileName = "<NONE>";
Action *action = new Action( loc, name, inlineList, nextCondId++ );
action->actionRefs.append( rootName );
// Convert the priority number to a long. Check for overflow.
errno = 0;
//cerr << "PRIOR AUG: " << $1->token.data << endl;
- int aug = strtol( $1->token.data, 0, 10 );
+ long aug = strtol( $1->token.data, 0, 10 );
if ( errno == ERANGE && aug == LONG_MAX ) {
/* Priority number too large. Recover by setting the priority to 0. */
error($1->token.loc) << "priority number " << $1->token.data <<
TK_UInt final {
// Convert the priority number to a long. Check for overflow.
errno = 0;
- int rep = strtol( $1->data, 0, 10 );
+ long rep = strtol( $1->data, 0, 10 );
if ( errno == ERANGE && rep == LONG_MAX ) {
// Repetition too large. Recover by returing repetition 1. */
error($1->loc) << "repetition number " << $1->data << " overflows" << endl;
int curly_count = 0;
bool execute = true;
bool singleLineSpec = false;
- InlineBlockType inlineBlockType;
+ InlineBlockType inlineBlockType = CurlyDelimited;
%% write init;
int Scanner::scan( )
{
int token = TK_NO_TOKEN;
- int space, readlen;
- char *attr_id_start;
- char *attr_value_start;
- int attr_id_len;
- int attr_value_len;
+ int space = 0, readlen = 0;
+ char *attr_id_start = 0;
+ char *attr_value_start = 0;
+ int attr_id_len = 0;
+ int attr_value_len = 0;
attrMkList.empty();
buffer.clear();