int CommentWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: doOK(); break; case 1: doCancel(); break; case 2: doComment((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 3: doExtend((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: doFlag((*reinterpret_cast< int(*)>(_a[1]))); break; case 5: doSwap((*reinterpret_cast< bool(*)>(_a[1]))); break; } _id -= 6; } return _id; }
const char* parseALine(const char* _start, const char* _end) { static char outLineBuffer[128];//buffer to put a line of priovxy actionsfile. //char *p = outLineBuffer; int bitor ; #ifdef DEBUG memset(outLineBuffer, 0, sizeof(outLineBuffer)); #endif if (isComment(_start)) doComment(outLineBuffer, _start, _end); else if (isAT(_start, _end)) doAT(outLineBuffer, _start, _end); else if ((bitor = isBITOR(_start, _end) == 1)) doBITOR(outLineBuffer, _start, _end); else if (bitor == 2) doBITOROR(outLineBuffer, _start, _end); else if (*_start != '\n') doDOT(outLineBuffer, _start, _end); //for (; _start != _end; _start++) // putchar(*_start); return outLineBuffer; }
STATIC void parseString( const char *str ) { /**/myassert( str != NULL ); for(;;) { while( isspace( *str ) ) ++str; switch( *str ) { case 0: return; case SWCHAR: case '-': str += 2; switch( str[-1] ) { case 'o': str = doOutput( str ); break; case 'd': str = doDebug( str ); break; case 'p': str = doParse( str ); break; case 'f': str = doFile( str ); break; case 'q': /* FALL THROUGH */ #if 0 case 'l': #endif case 'b': str = doToggle( str ); break; default: usage(); } if( !isBreakChar( *str ) ) usage(); break; case INCCHAR: str = doInclude( str + 1 ); break; case CMTCHAR: str = doComment( str + 1 ); break; default: str = addFile( str ); break; } } }