Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/corelibs/vos/parsemessage_lexer.ll File Reference

Go to the source code of this file.

Defines


Define Documentation

#define READQUOTED
 

Value:

{                                         \
    if(parsestate->read_quoted) {                            \
        int ret;                                             \
        pREF(Message*, m, parsestate->m->lastMessage(),      \
            (m->fields.back()).quoted = true;                \
            std::string& target = (m->fields.back()).source; \
            target.resize(parsestate->read_quoted);          \
            int i;                                           \
            for(i = 0; i < yyleng; i++) {                    \
                target[i] = yytext[i];                       \
            }                                                \
            for(; i < parsestate->read_quoted; i++) {        \
                int c;                                       \
                if((c = yyinput()) == EOF) break;            \
                target[i] = c;                               \
            }                                                \
            parsestate->chars_read += i;                     \
            if(i != parsestate->read_quoted) ret = EOF;      \
            else ret = CDATA;                                \
        );                                                   \
        return ret;                                          \
    }                                                        \
}


Generated on Tue Aug 12 03:55:48 2003 for Interreality Project - VOS by doxygen 1.3.2