Skip to content

Commit

Permalink
avoid duplicate yyuoffset, yyuleng from RdScriptEditorTokens.l and RS…
Browse files Browse the repository at this point in the history
…criptEditorTokens - make them shared

git-svn-id: https://svn.r-project.org/R-packages/trunk/Mac-GUI@7797 694ef91d-65df-0310-b7bb-92e67a308ead
  • Loading branch information
s-u committed Mar 5, 2020
1 parent 91626ab commit e9a5226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RdScriptEditorTokens.l
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#import "RdScriptEditorTokens.h"

size_t utf8strlenRd(const char * _s);
size_t yyuoffset, yyuleng;
extern size_t yyuoffset, yyuleng;

//keep track of the current utf-8 character (not byte) offset and token length
#define YY_USER_ACTION { yyuoffset += yyuleng; yyuleng = utf8strlenRd(yytext); }
Expand Down

0 comments on commit e9a5226

Please sign in to comment.