On Thu, Sep 14, 2006 at 11:19:49AM +0200, Akim Demaille wrote: > >>> "Bob" == Bob Rossi <[EMAIL PROTECTED]> writes: > > >> > 3. yychar, yylval, yynerrs, and yylloc (external parser variables) > >> > These variables remain external in the default parser. However, in > >> > the pure and push parser they go in the struct yypvars. So, I'm > >> > currently making accessor functions to access them. I currently only > >> > have: > >> > int get_yyresult (void *PVVOID); > >> > void set_yychar (void *PVVOID, int yychar); > >> > because they are the only 2 I need. However, should I just generate > >> > all 4 pairs of set/get functions for yychar, yylval, yynerrs, and > >> > yylloc? > >> > >> I'd just generate the ones you need for now. However, their names > >> should start with yy to avoid namespace collision. > > > Got it. that's done. > > I don't want to be a pain in the neck, but I like > > yychar_set, yychar_get etc. > > instead of > > yyget_char etc.
Yes, I had already made this change, so that's good. Bob Rossi
