gnupic: some problem in source code--scan.l


Previous by date: 10 Jul 2012 01:50:15 -0000 Re: What are stkadj and FUSTART???, Lorenzo Marcantonio
Next by date: 10 Jul 2012 01:50:15 -0000 Re: some problem in source code--scan.l, Byron Jeff
Previous in thread:
Next in thread: 10 Jul 2012 01:50:15 -0000 Re: some problem in source code--scan.l, Byron Jeff

Subject: some problem in source code--scan.l
From: feqin fan ####@####.####
Date: 10 Jul 2012 01:50:15 -0000
Message-Id: <CAOfAq_oxw+cfxyPxuKfa35Jy42mGCFi8dZTeOn5hyLa6M5csNA@mail.gmail.com>

Hello, everyone..

I have some problem need your help, THX..

at the beginning of scan.l LINE 97

#define YY_INPUT(buf,result,max_size) \
  { \
    GP_INPUT(buf,result,max_size); \
    if (result) \
      { \
        state.src->last_char_is_nl = (buf[result - 1] == '\n'); \
      } \
    else if (!state.src->last_char_is_nl) \
      { \
        *buf = '\n'; \
        result = 1; \
        state.src->last_char_is_nl = true; \
      } \
  }

BUT,state.src->last_char_is_nl = true, WHERE is the number
*last_char_is_nl* in struct state.src ?

--------------------------------------------

Another problem, the pattern   ^{IDENT}#v\(   match what?
someone Please give me a example..

Thank you, guys..

:-)



------------------------------------

live long and prosper..

Previous by date: 10 Jul 2012 01:50:15 -0000 Re: What are stkadj and FUSTART???, Lorenzo Marcantonio
Next by date: 10 Jul 2012 01:50:15 -0000 Re: some problem in source code--scan.l, Byron Jeff
Previous in thread:
Next in thread: 10 Jul 2012 01:50:15 -0000 Re: some problem in source code--scan.l, Byron Jeff


Powered by ezmlm-browse 0.20.