Changeset 4739 in webkit for trunk/JavaScriptCore/kjs/lexer.cpp


Ignore:
Timestamp:
Jul 30, 2003, 4:54:41 PM (22 years ago)
Author:
darin
Message:

Reviewed by Dave.

  • fixed problem where some JavaScriptCore symbols had no namespace or prefix
  • kjs/grammar.y: Added a define for yylloc to make it use the kjs prefix. This is the same thing done for the rest of the symbols automatically by yacc, but for some reason it's not done for yyloc. Also make automatic() function static.
  • kjs/grammar.cpp: Regenerated.
  • kjs/lexer.cpp: Use kjsyylloc instead of yyloc.
  • pcre/pcre.h: Add defines to prepend kjs prefixes for all the PCRE functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/lexer.cpp

    r2800 r4739  
    5252#include "lexer.lut.h"
    5353
    54 extern YYLTYPE yylloc; // global bison variable holding token info
     54extern YYLTYPE kjsyylloc; // global bison variable holding token info
    5555
    5656// a bridge for yacc from the C world to C++
     
    482482  restrKeyword = false;
    483483  delimited = false;
    484   yylloc.first_line = yylineno; // ???
    485   yylloc.last_line = yylineno;
     484  kjsyylloc.first_line = yylineno; // ???
     485  kjsyylloc.last_line = yylineno;
    486486
    487487  switch (state) {
Note: See TracChangeset for help on using the changeset viewer.