pull/1/head
Timothy Pearson 13 years ago
parent 7d27356baf
commit 71cbc66f6c

@ -1,6 +1,5 @@
#line 2 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.c"
#line 4 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.c" #line 3 "<stdout>"
#define YY_INT_ALIGNED short int #define YY_INT_ALIGNED short int
@ -1143,7 +1142,7 @@ int yy_flex_debug = 0;
#define YY_MORE_ADJ 0 #define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET #define YY_RESTORE_YY_MORE_OFFSET
char *yytext; char *yytext;
#line 1 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 1 "/TEMP/sip4-tqt/sipgen/lexer.l"
/* /*
* The SIP lexer. * The SIP lexer.
* *
@ -1161,7 +1160,7 @@ char *yytext;
* SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
#line 20 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 20 "/TEMP/sip4-tqt/sipgen/lexer.l"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -1199,7 +1198,7 @@ static FILE *openFile(const char *);
static void fatallex(char *); static void fatallex(char *);
#line 1203 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.c" #line 1202 "<stdout>"
#define INITIAL 0 #define INITIAL 0
#define code 1 #define code 1
@ -1391,10 +1390,10 @@ YY_DECL
register char *yy_cp, *yy_bp; register char *yy_cp, *yy_bp;
register int yy_act; register int yy_act;
#line 60 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 60 "/TEMP/sip4-tqt/sipgen/lexer.l"
#line 1398 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.c" #line 1397 "<stdout>"
if ( !(yy_init) ) if ( !(yy_init) )
{ {
@ -1480,372 +1479,372 @@ do_action: /* This label is used only to access EOF actions. */
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 62 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 62 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_API;} {return TK_API;}
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 63 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 63 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_DEFENCODING;} {return TK_DEFENCODING;}
YY_BREAK YY_BREAK
case 3: case 3:
YY_RULE_SETUP YY_RULE_SETUP
#line 64 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 64 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PLUGIN;} {return TK_PLUGIN;}
YY_BREAK YY_BREAK
case 4: case 4:
YY_RULE_SETUP YY_RULE_SETUP
#line 65 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 65 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_INCLUDE;} {return TK_INCLUDE;}
YY_BREAK YY_BREAK
case 5: case 5:
YY_RULE_SETUP YY_RULE_SETUP
#line 66 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 66 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_OPTINCLUDE;} {return TK_OPTINCLUDE;}
YY_BREAK YY_BREAK
case 6: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 67 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 67 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_IMPORT;} {return TK_IMPORT;}
YY_BREAK YY_BREAK
case 7: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 68 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 68 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_MODULE;} {return TK_MODULE;}
YY_BREAK YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 69 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 69 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_CMODULE;} {return TK_CMODULE;}
YY_BREAK YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 70 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 70 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_CONSMODULE;} {return TK_CONSMODULE;}
YY_BREAK YY_BREAK
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 71 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 71 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_COMPOMODULE;} {return TK_COMPOMODULE;}
YY_BREAK YY_BREAK
case 11: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 72 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 72 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_TIMELINE;} {return TK_TIMELINE;}
YY_BREAK YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 73 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 73 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PLATFORMS;} {return TK_PLATFORMS;}
YY_BREAK YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 74 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 74 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_FEATURE;} {return TK_FEATURE;}
YY_BREAK YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 75 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 75 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_LICENSE;} {return TK_LICENSE;}
YY_BREAK YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 76 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 76 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_MAPPEDTYPE;} {return TK_MAPPEDTYPE;}
YY_BREAK YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 77 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 77 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_EXCEPTION;} {return TK_EXCEPTION;}
YY_BREAK YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 78 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 78 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_IF;} {return TK_IF;}
YY_BREAK YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 79 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 79 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_DEFMETATYPE;} {return TK_DEFMETATYPE;}
YY_BREAK YY_BREAK
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 80 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 80 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_DEFSUPERTYPE;} {return TK_DEFSUPERTYPE;}
YY_BREAK YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 81 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 81 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_END;} {return TK_END;}
YY_BREAK YY_BREAK
case 21: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 82 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 82 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_CLASS;} {return TK_CLASS;}
YY_BREAK YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 83 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 83 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_STRUCT;} {return TK_STRUCT;}
YY_BREAK YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 84 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 84 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PUBLIC;} {return TK_PUBLIC;}
YY_BREAK YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 85 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 85 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PROTECTED;} {return TK_PROTECTED;}
YY_BREAK YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 86 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 86 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PRIVATE;} {return TK_PRIVATE;}
YY_BREAK YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 87 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 87 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIGNALS;} {return TK_SIGNALS;}
YY_BREAK YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 88 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 88 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIGNALS;} {return TK_SIGNALS;}
YY_BREAK YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 89 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 89 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIGNAL_METHOD;} {return TK_SIGNAL_METHOD;}
YY_BREAK YY_BREAK
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 90 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 90 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SLOTS;} {return TK_SLOTS;}
YY_BREAK YY_BREAK
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 91 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 91 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SLOTS;} {return TK_SLOTS;}
YY_BREAK YY_BREAK
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 92 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 92 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SLOT_METHOD;} {return TK_SLOT_METHOD;}
YY_BREAK YY_BREAK
case 32: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 93 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 93 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_CHAR;} {return TK_CHAR;}
YY_BREAK YY_BREAK
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 94 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 94 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_WCHAR_T;} {return TK_WCHAR_T;}
YY_BREAK YY_BREAK
case 34: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 95 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 95 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_BOOL;} {return TK_BOOL;}
YY_BREAK YY_BREAK
case 35: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 96 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 96 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SHORT;} {return TK_SHORT;}
YY_BREAK YY_BREAK
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 97 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 97 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_INT;} {return TK_INT;}
YY_BREAK YY_BREAK
case 37: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 98 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 98 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_LONG;} {return TK_LONG;}
YY_BREAK YY_BREAK
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 99 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 99 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_FLOAT;} {return TK_FLOAT;}
YY_BREAK YY_BREAK
case 39: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 100 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 100 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_DOUBLE;} {return TK_DOUBLE;}
YY_BREAK YY_BREAK
case 40: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 101 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 101 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_VOID;} {return TK_VOID;}
YY_BREAK YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 102 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 102 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_VIRTUAL;} {return TK_VIRTUAL;}
YY_BREAK YY_BREAK
case 42: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 103 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 103 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_ENUM;} {return TK_ENUM;}
YY_BREAK YY_BREAK
case 43: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 104 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 104 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIGNED;} {return TK_SIGNED;}
YY_BREAK YY_BREAK
case 44: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 105 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 105 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_UNSIGNED;} {return TK_UNSIGNED;}
YY_BREAK YY_BREAK
case 45: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 106 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 106 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_CONST;} {return TK_CONST;}
YY_BREAK YY_BREAK
case 46: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 107 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 107 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_STATIC;} {return TK_STATIC;}
YY_BREAK YY_BREAK
case 47: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 108 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 108 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_TRUE;} {return TK_TRUE;}
YY_BREAK YY_BREAK
case 48: case 48:
YY_RULE_SETUP YY_RULE_SETUP
#line 109 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 109 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_FALSE;} {return TK_FALSE;}
YY_BREAK YY_BREAK
case 49: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 110 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 110 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_NULL;} {return TK_NULL;}
YY_BREAK YY_BREAK
case 50: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 111 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 111 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_TYPEDEF;} {return TK_TYPEDEF;}
YY_BREAK YY_BREAK
case 51: case 51:
YY_RULE_SETUP YY_RULE_SETUP
#line 112 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 112 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_NAMESPACE;} {return TK_NAMESPACE;}
YY_BREAK YY_BREAK
case 52: case 52:
YY_RULE_SETUP YY_RULE_SETUP
#line 113 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 113 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_OPERATOR;} {return TK_OPERATOR;}
YY_BREAK YY_BREAK
case 53: case 53:
YY_RULE_SETUP YY_RULE_SETUP
#line 114 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 114 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_THROW;} {return TK_THROW;}
YY_BREAK YY_BREAK
case 54: case 54:
YY_RULE_SETUP YY_RULE_SETUP
#line 115 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 115 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_EXPLICIT;} {return TK_EXPLICIT;}
YY_BREAK YY_BREAK
case 55: case 55:
YY_RULE_SETUP YY_RULE_SETUP
#line 116 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 116 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_TEMPLATE;} {return TK_TEMPLATE;}
YY_BREAK YY_BREAK
case 56: case 56:
YY_RULE_SETUP YY_RULE_SETUP
#line 117 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 117 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SCOPE;} {return TK_SCOPE;}
YY_BREAK YY_BREAK
case 57: case 57:
YY_RULE_SETUP YY_RULE_SETUP
#line 118 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 118 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_LOGICAL_OR;} {return TK_LOGICAL_OR;}
YY_BREAK YY_BREAK
case 58: case 58:
YY_RULE_SETUP YY_RULE_SETUP
#line 119 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 119 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYOBJECT;} {return TK_PYOBJECT;}
YY_BREAK YY_BREAK
case 59: case 59:
YY_RULE_SETUP YY_RULE_SETUP
#line 120 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 120 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYTUPLE;} {return TK_PYTUPLE;}
YY_BREAK YY_BREAK
case 60: case 60:
YY_RULE_SETUP YY_RULE_SETUP
#line 121 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 121 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYLIST;} {return TK_PYLIST;}
YY_BREAK YY_BREAK
case 61: case 61:
YY_RULE_SETUP YY_RULE_SETUP
#line 122 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 122 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYDICT;} {return TK_PYDICT;}
YY_BREAK YY_BREAK
case 62: case 62:
YY_RULE_SETUP YY_RULE_SETUP
#line 123 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 123 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYCALLABLE;} {return TK_PYCALLABLE;}
YY_BREAK YY_BREAK
case 63: case 63:
YY_RULE_SETUP YY_RULE_SETUP
#line 124 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 124 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYSLICE;} {return TK_PYSLICE;}
YY_BREAK YY_BREAK
case 64: case 64:
YY_RULE_SETUP YY_RULE_SETUP
#line 125 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 125 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_PYTYPE;} {return TK_PYTYPE;}
YY_BREAK YY_BREAK
case 65: case 65:
YY_RULE_SETUP YY_RULE_SETUP
#line 126 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 126 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPSIGNAL;} {return TK_SIPSIGNAL;}
YY_BREAK YY_BREAK
case 66: case 66:
YY_RULE_SETUP YY_RULE_SETUP
#line 127 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 127 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPSLOT;} {return TK_SIPSLOT;}
YY_BREAK YY_BREAK
case 67: case 67:
YY_RULE_SETUP YY_RULE_SETUP
#line 128 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 128 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPANYSLOT;} {return TK_SIPANYSLOT;}
YY_BREAK YY_BREAK
case 68: case 68:
YY_RULE_SETUP YY_RULE_SETUP
#line 129 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 129 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPRXCON;} {return TK_SIPRXCON;}
YY_BREAK YY_BREAK
case 69: case 69:
YY_RULE_SETUP YY_RULE_SETUP
#line 130 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 130 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPRXDIS;} {return TK_SIPRXDIS;}
YY_BREAK YY_BREAK
case 70: case 70:
YY_RULE_SETUP YY_RULE_SETUP
#line 131 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 131 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPSLOTCON;} {return TK_SIPSLOTCON;}
YY_BREAK YY_BREAK
case 71: case 71:
YY_RULE_SETUP YY_RULE_SETUP
#line 132 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 132 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_SIPSLOTDIS;} {return TK_SIPSLOTDIS;}
YY_BREAK YY_BREAK
case 72: case 72:
YY_RULE_SETUP YY_RULE_SETUP
#line 133 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 133 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_TQOBJECT;} {return TK_TQOBJECT;}
YY_BREAK YY_BREAK
case 73: case 73:
YY_RULE_SETUP YY_RULE_SETUP
#line 134 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 134 "/TEMP/sip4-tqt/sipgen/lexer.l"
{return TK_ELLIPSIS;} {return TK_ELLIPSIS;}
YY_BREAK YY_BREAK
case 74: case 74:
YY_RULE_SETUP YY_RULE_SETUP
#line 137 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 137 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* Ignore whitespace. */ { /* Ignore whitespace. */
; ;
} }
@ -1853,7 +1852,7 @@ YY_RULE_SETUP
case 75: case 75:
/* rule 75 can match eol */ /* rule 75 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 141 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 141 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* Maintain the line number. */ { /* Maintain the line number. */
++inputFileStack[currentFile].lineno; ++inputFileStack[currentFile].lineno;
@ -1865,14 +1864,14 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 76: case 76:
YY_RULE_SETUP YY_RULE_SETUP
#line 150 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 150 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* Ignore C++ style comments. */ { /* Ignore C++ style comments. */
; ;
} }
YY_BREAK YY_BREAK
case 77: case 77:
YY_RULE_SETUP YY_RULE_SETUP
#line 155 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 155 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* A signed decimal number. */ { /* A signed decimal number. */
yylval.number = strtol(yytext,NULL,0); yylval.number = strtol(yytext,NULL,0);
return TK_NUMBER; return TK_NUMBER;
@ -1880,7 +1879,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 78: case 78:
YY_RULE_SETUP YY_RULE_SETUP
#line 161 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 161 "/TEMP/sip4-tqt/sipgen/lexer.l"
{/* A floating point number. */ {/* A floating point number. */
yylval.real = strtod(yytext,NULL); yylval.real = strtod(yytext,NULL);
return TK_REAL; return TK_REAL;
@ -1888,7 +1887,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 79: case 79:
YY_RULE_SETUP YY_RULE_SETUP
#line 167 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 167 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* An unsigned hexadecimal number. */ { /* An unsigned hexadecimal number. */
yylval.number = strtol(yytext,NULL,16); yylval.number = strtol(yytext,NULL,16);
return TK_NUMBER; return TK_NUMBER;
@ -1896,7 +1895,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 80: case 80:
YY_RULE_SETUP YY_RULE_SETUP
#line 173 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 173 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* An identifier name. */ { /* An identifier name. */
yylval.text = sipStrdup(yytext); yylval.text = sipStrdup(yytext);
return TK_NAME; return TK_NAME;
@ -1904,7 +1903,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 81: case 81:
YY_RULE_SETUP YY_RULE_SETUP
#line 179 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 179 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* A relative pathname. */ { /* A relative pathname. */
yylval.text = sipStrdup(yytext); yylval.text = sipStrdup(yytext);
return TK_PATHNAME; return TK_PATHNAME;
@ -1913,7 +1912,7 @@ YY_RULE_SETUP
case 82: case 82:
/* rule 82 can match eol */ /* rule 82 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 185 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 185 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* A double-quoted string. */ { /* A double-quoted string. */
char *dp, *sp; char *dp, *sp;
@ -1940,7 +1939,7 @@ YY_RULE_SETUP
case 83: case 83:
/* rule 83 can match eol */ /* rule 83 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 209 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 209 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* A single-quoted character. */ { /* A single-quoted character. */
if (strlen(yytext) != 3) if (strlen(yytext) != 3)
fatallex("Exactly one character expected between single quotes"); fatallex("Exactly one character expected between single quotes");
@ -1952,7 +1951,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 84: case 84:
YY_RULE_SETUP YY_RULE_SETUP
#line 219 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 219 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* Ignore C-style comments. */ { /* Ignore C-style comments. */
BEGIN ccomment; BEGIN ccomment;
} }
@ -1960,28 +1959,28 @@ YY_RULE_SETUP
case 85: case 85:
/* rule 85 can match eol */ /* rule 85 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 222 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 222 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ {
++inputFileStack[currentFile].lineno; ++inputFileStack[currentFile].lineno;
} }
YY_BREAK YY_BREAK
case 86: case 86:
YY_RULE_SETUP YY_RULE_SETUP
#line 225 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 225 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ {
BEGIN INITIAL; BEGIN INITIAL;
} }
YY_BREAK YY_BREAK
case 87: case 87:
YY_RULE_SETUP YY_RULE_SETUP
#line 228 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 228 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ {
; ;
} }
YY_BREAK YY_BREAK
case 88: case 88:
YY_RULE_SETUP YY_RULE_SETUP
#line 233 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 233 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The software license. */ { /* The software license. */
codeIdx = 0; codeIdx = 0;
return TK_COPYING; return TK_COPYING;
@ -1989,7 +1988,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 89: case 89:
YY_RULE_SETUP YY_RULE_SETUP
#line 238 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 238 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a from-type code block. */ { /* The start of a from-type code block. */
codeIdx = 0; codeIdx = 0;
return TK_FROMTYPE; return TK_FROMTYPE;
@ -1997,7 +1996,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 90: case 90:
YY_RULE_SETUP YY_RULE_SETUP
#line 243 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 243 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a to-type code block. */ { /* The start of a to-type code block. */
codeIdx = 0; codeIdx = 0;
return TK_TOTYPE; return TK_TOTYPE;
@ -2005,7 +2004,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 91: case 91:
YY_RULE_SETUP YY_RULE_SETUP
#line 248 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 248 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a to-sub-class code block. */ { /* The start of a to-sub-class code block. */
codeIdx = 0; codeIdx = 0;
return TK_TOSUBCLASS; return TK_TOSUBCLASS;
@ -2013,7 +2012,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 92: case 92:
YY_RULE_SETUP YY_RULE_SETUP
#line 253 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 253 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of an exported header code block. */ { /* The start of an exported header code block. */
codeIdx = 0; codeIdx = 0;
return TK_EXPHEADERCODE; return TK_EXPHEADERCODE;
@ -2021,7 +2020,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 93: case 93:
YY_RULE_SETUP YY_RULE_SETUP
#line 258 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 258 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a module header code block. */ { /* The start of a module header code block. */
codeIdx = 0; codeIdx = 0;
return TK_MODHEADERCODE; return TK_MODHEADERCODE;
@ -2029,7 +2028,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 94: case 94:
YY_RULE_SETUP YY_RULE_SETUP
#line 263 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 263 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a type header code block. */ { /* The start of a type header code block. */
codeIdx = 0; codeIdx = 0;
return TK_TYPEHEADERCODE; return TK_TYPEHEADERCODE;
@ -2037,7 +2036,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 95: case 95:
YY_RULE_SETUP YY_RULE_SETUP
#line 268 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 268 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a pre-initialisation code block. */ { /* The start of a pre-initialisation code block. */
codeIdx = 0; codeIdx = 0;
return TK_PREINITCODE; return TK_PREINITCODE;
@ -2045,7 +2044,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 96: case 96:
YY_RULE_SETUP YY_RULE_SETUP
#line 273 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 273 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of an initialisation code block. */ { /* The start of an initialisation code block. */
codeIdx = 0; codeIdx = 0;
return TK_INITCODE; return TK_INITCODE;
@ -2053,7 +2052,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 97: case 97:
YY_RULE_SETUP YY_RULE_SETUP
#line 278 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 278 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a post-initialisation code block. */ { /* The start of a post-initialisation code block. */
codeIdx = 0; codeIdx = 0;
return TK_POSTINITCODE; return TK_POSTINITCODE;
@ -2061,7 +2060,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 98: case 98:
YY_RULE_SETUP YY_RULE_SETUP
#line 283 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 283 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a unit code block. */ { /* The start of a unit code block. */
codeIdx = 0; codeIdx = 0;
return TK_UNITCODE; return TK_UNITCODE;
@ -2069,7 +2068,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 99: case 99:
YY_RULE_SETUP YY_RULE_SETUP
#line 288 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 288 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a module code block. */ { /* The start of a module code block. */
codeIdx = 0; codeIdx = 0;
return TK_MODCODE; return TK_MODCODE;
@ -2077,7 +2076,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 100: case 100:
YY_RULE_SETUP YY_RULE_SETUP
#line 293 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 293 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a type code block. */ { /* The start of a type code block. */
codeIdx = 0; codeIdx = 0;
return TK_TYPECODE; return TK_TYPECODE;
@ -2085,7 +2084,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 101: case 101:
YY_RULE_SETUP YY_RULE_SETUP
#line 298 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 298 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a C++ method code block. */ { /* The start of a C++ method code block. */
codeIdx = 0; codeIdx = 0;
return TK_METHODCODE; return TK_METHODCODE;
@ -2093,7 +2092,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 102: case 102:
YY_RULE_SETUP YY_RULE_SETUP
#line 303 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 303 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a C++ virtual code block. */ { /* The start of a C++ virtual code block. */
codeIdx = 0; codeIdx = 0;
return TK_VIRTUALCATCHERCODE; return TK_VIRTUALCATCHERCODE;
@ -2101,7 +2100,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 103: case 103:
YY_RULE_SETUP YY_RULE_SETUP
#line 308 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 308 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a traverse code block. */ { /* The start of a traverse code block. */
codeIdx = 0; codeIdx = 0;
return TK_TRAVERSECODE; return TK_TRAVERSECODE;
@ -2109,7 +2108,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 104: case 104:
YY_RULE_SETUP YY_RULE_SETUP
#line 313 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 313 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a clear code block. */ { /* The start of a clear code block. */
codeIdx = 0; codeIdx = 0;
return TK_CLEARCODE; return TK_CLEARCODE;
@ -2117,7 +2116,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 105: case 105:
YY_RULE_SETUP YY_RULE_SETUP
#line 318 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 318 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a get buffer code block. */ { /* The start of a get buffer code block. */
codeIdx = 0; codeIdx = 0;
return TK_GETBUFFERCODE; return TK_GETBUFFERCODE;
@ -2125,7 +2124,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 106: case 106:
YY_RULE_SETUP YY_RULE_SETUP
#line 323 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 323 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a release buffer code block. */ { /* The start of a release buffer code block. */
codeIdx = 0; codeIdx = 0;
return TK_RELEASEBUFFERCODE; return TK_RELEASEBUFFERCODE;
@ -2133,7 +2132,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 107: case 107:
YY_RULE_SETUP YY_RULE_SETUP
#line 328 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 328 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a read buffer code block. */ { /* The start of a read buffer code block. */
codeIdx = 0; codeIdx = 0;
return TK_READBUFFERCODE; return TK_READBUFFERCODE;
@ -2141,7 +2140,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 108: case 108:
YY_RULE_SETUP YY_RULE_SETUP
#line 333 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 333 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a write buffer code block. */ { /* The start of a write buffer code block. */
codeIdx = 0; codeIdx = 0;
return TK_WRITEBUFFERCODE; return TK_WRITEBUFFERCODE;
@ -2149,7 +2148,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 109: case 109:
YY_RULE_SETUP YY_RULE_SETUP
#line 338 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 338 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a segment count code block. */ { /* The start of a segment count code block. */
codeIdx = 0; codeIdx = 0;
return TK_SEGCOUNTCODE; return TK_SEGCOUNTCODE;
@ -2157,7 +2156,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 110: case 110:
YY_RULE_SETUP YY_RULE_SETUP
#line 343 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 343 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a char buffer code block. */ { /* The start of a char buffer code block. */
codeIdx = 0; codeIdx = 0;
return TK_CHARBUFFERCODE; return TK_CHARBUFFERCODE;
@ -2165,7 +2164,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 111: case 111:
YY_RULE_SETUP YY_RULE_SETUP
#line 348 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 348 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a pickle code block. */ { /* The start of a pickle code block. */
codeIdx = 0; codeIdx = 0;
return TK_PICKLECODE; return TK_PICKLECODE;
@ -2173,7 +2172,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 112: case 112:
YY_RULE_SETUP YY_RULE_SETUP
#line 353 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 353 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a pre-Python code block. */ { /* The start of a pre-Python code block. */
codeIdx = 0; codeIdx = 0;
return TK_PREPYCODE; return TK_PREPYCODE;
@ -2181,7 +2180,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 113: case 113:
YY_RULE_SETUP YY_RULE_SETUP
#line 358 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 358 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a raise exception code block. */ { /* The start of a raise exception code block. */
codeIdx = 0; codeIdx = 0;
return TK_RAISECODE; return TK_RAISECODE;
@ -2189,7 +2188,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 114: case 114:
YY_RULE_SETUP YY_RULE_SETUP
#line 363 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 363 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a docstring block. */ { /* The start of a docstring block. */
codeIdx = 0; codeIdx = 0;
return TK_DOCSTRING; return TK_DOCSTRING;
@ -2197,7 +2196,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 115: case 115:
YY_RULE_SETUP YY_RULE_SETUP
#line 368 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 368 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a documentation block. */ { /* The start of a documentation block. */
codeIdx = 0; codeIdx = 0;
return TK_DOC; return TK_DOC;
@ -2205,7 +2204,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 116: case 116:
YY_RULE_SETUP YY_RULE_SETUP
#line 373 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 373 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of an exported documentation block. */ { /* The start of an exported documentation block. */
codeIdx = 0; codeIdx = 0;
return TK_EXPORTEDDOC; return TK_EXPORTEDDOC;
@ -2213,7 +2212,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 117: case 117:
YY_RULE_SETUP YY_RULE_SETUP
#line 378 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 378 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a Makefile code block. */ { /* The start of a Makefile code block. */
codeIdx = 0; codeIdx = 0;
return TK_MAKEFILE; return TK_MAKEFILE;
@ -2221,7 +2220,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 118: case 118:
YY_RULE_SETUP YY_RULE_SETUP
#line 383 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 383 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of an access code block. */ { /* The start of an access code block. */
codeIdx = 0; codeIdx = 0;
return TK_ACCESSCODE; return TK_ACCESSCODE;
@ -2229,7 +2228,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 119: case 119:
YY_RULE_SETUP YY_RULE_SETUP
#line 388 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 388 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a get code block. */ { /* The start of a get code block. */
codeIdx = 0; codeIdx = 0;
return TK_GETCODE; return TK_GETCODE;
@ -2237,7 +2236,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 120: case 120:
YY_RULE_SETUP YY_RULE_SETUP
#line 393 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 393 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The start of a set code block. */ { /* The start of a set code block. */
codeIdx = 0; codeIdx = 0;
return TK_SETCODE; return TK_SETCODE;
@ -2245,7 +2244,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 121: case 121:
YY_RULE_SETUP YY_RULE_SETUP
#line 398 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 398 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The end of a code block. */ { /* The end of a code block. */
BEGIN INITIAL; BEGIN INITIAL;
codeIdx = -1; codeIdx = -1;
@ -2255,7 +2254,7 @@ YY_RULE_SETUP
case 122: case 122:
/* rule 122 can match eol */ /* rule 122 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 404 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 404 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The end of a code line . */ { /* The end of a code line . */
struct inputFile *ifp; struct inputFile *ifp;
@ -2277,7 +2276,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 123: case 123:
YY_RULE_SETUP YY_RULE_SETUP
#line 423 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 423 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* The contents of a code line. */ { /* The contents of a code line. */
if (codeIdx == MAX_CODE_LINE_LENGTH) if (codeIdx == MAX_CODE_LINE_LENGTH)
fatallex("Line is too long"); fatallex("Line is too long");
@ -2287,17 +2286,17 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 124: case 124:
YY_RULE_SETUP YY_RULE_SETUP
#line 430 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 430 "/TEMP/sip4-tqt/sipgen/lexer.l"
{ /* Anything else is returned as is. */ { /* Anything else is returned as is. */
return yytext[0]; return yytext[0];
} }
YY_BREAK YY_BREAK
case 125: case 125:
YY_RULE_SETUP YY_RULE_SETUP
#line 434 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 434 "/TEMP/sip4-tqt/sipgen/lexer.l"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 2301 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.c" #line 2300 "<stdout>"
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(code): case YY_STATE_EOF(code):
case YY_STATE_EOF(ccomment): case YY_STATE_EOF(ccomment):
@ -3300,7 +3299,7 @@ void yyfree (void * ptr )
#define YYTABLES_NAME "yytables" #define YYTABLES_NAME "yytables"
#line 434 "/home/phil/hg/sip/sip-4.10.5/sipgen/lexer.l" #line 434 "/TEMP/sip4-tqt/sipgen/lexer.l"

@ -84,10 +84,10 @@ struct {return TK_STRUCT;}
public {return TK_PUBLIC;} public {return TK_PUBLIC;}
protected {return TK_PROTECTED;} protected {return TK_PROTECTED;}
private {return TK_PRIVATE;} private {return TK_PRIVATE;}
Q_SIGNALS {return TK_SIGNALS;} signals {return TK_SIGNALS;}
Q_SIGNALS {return TK_SIGNALS;} Q_SIGNALS {return TK_SIGNALS;}
Q_SIGNAL {return TK_SIGNAL_METHOD;} Q_SIGNAL {return TK_SIGNAL_METHOD;}
Q_SLOTS {return TK_SLOTS;} slots {return TK_SLOTS;}
Q_SLOTS {return TK_SLOTS;} Q_SLOTS {return TK_SLOTS;}
Q_SLOT {return TK_SLOT_METHOD;} Q_SLOT {return TK_SLOT_METHOD;}
char {return TK_CHAR;} char {return TK_CHAR;}
@ -130,7 +130,7 @@ SIP_RXOBJ_CON {return TK_SIPRXCON;}
SIP_RXOBJ_DIS {return TK_SIPRXDIS;} SIP_RXOBJ_DIS {return TK_SIPRXDIS;}
SIP_SLOT_CON {return TK_SIPSLOTCON;} SIP_SLOT_CON {return TK_SIPSLOTCON;}
SIP_SLOT_DIS {return TK_SIPSLOTDIS;} SIP_SLOT_DIS {return TK_SIPSLOTDIS;}
SIP_QOBJECT {return TK_QOBJECT;} SIP_QOBJECT {return TK_TQOBJECT;}
\.\.\. {return TK_ELLIPSIS;} \.\.\. {return TK_ELLIPSIS;}
@ -212,7 +212,7 @@ SIP_QOBJECT {return TK_QOBJECT;}
yylval.qchar = yytext[1]; yylval.qchar = yytext[1];
return TK_QCHAR; return TK_TQCHAR;
} }

File diff suppressed because it is too large Load Diff

@ -121,9 +121,9 @@
TK_LOGICAL_OR = 337, TK_LOGICAL_OR = 337,
TK_CONST = 338, TK_CONST = 338,
TK_STATIC = 339, TK_STATIC = 339,
TK_SIPTQT_SIGNAL = 340, TK_SIPSIGNAL = 340,
TK_SIPTQT_SLOT = 341, TK_SIPSLOT = 341,
TK_SIPANYTQT_SLOT = 342, TK_SIPANYSLOT = 342,
TK_SIPRXCON = 343, TK_SIPRXCON = 343,
TK_SIPRXDIS = 344, TK_SIPRXDIS = 344,
TK_SIPSLOTCON = 345, TK_SIPSLOTCON = 345,
@ -235,9 +235,9 @@
#define TK_LOGICAL_OR 337 #define TK_LOGICAL_OR 337
#define TK_CONST 338 #define TK_CONST 338
#define TK_STATIC 339 #define TK_STATIC 339
#define TK_SIPTQT_SIGNAL 340 #define TK_SIPSIGNAL 340
#define TK_SIPTQT_SLOT 341 #define TK_SIPSLOT 341
#define TK_SIPANYTQT_SLOT 342 #define TK_SIPANYSLOT 342
#define TK_SIPRXCON 343 #define TK_SIPRXCON 343
#define TK_SIPRXDIS 344 #define TK_SIPRXDIS 344
#define TK_SIPSLOTCON 345 #define TK_SIPSLOTCON 345

@ -1772,7 +1772,7 @@ classline: ifstart
} }
| TK_SIGNALS ':' { | TK_SIGNALS ':' {
if (currentSpec -> genc) if (currentSpec -> genc)
yyerror("Q_SIGNALS section not allowed in a C module"); yyerror("signals section not allowed in a C module");
if (notSkipping()) if (notSkipping())
sectionFlags = SECT_IS_SIGNAL; sectionFlags = SECT_IS_SIGNAL;
@ -2288,7 +2288,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2); $$.name = cacheName(currentSpec, $2);
$$.defval = $4; $$.defval = $4;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPSLOT optname optflags optassign { | TK_SIPSLOT optname optflags optassign {
$$.atype = slot_type; $$.atype = slot_type;
@ -2297,7 +2297,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2); $$.name = cacheName(currentSpec, $2);
$$.defval = $4; $$.defval = $4;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPANYSLOT optname optflags optassign { | TK_SIPANYSLOT optname optflags optassign {
$$.atype = anyslot_type; $$.atype = anyslot_type;
@ -2306,7 +2306,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.name = cacheName(currentSpec, $2); $$.name = cacheName(currentSpec, $2);
$$.defval = $4; $$.defval = $4;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPRXCON optname optflags { | TK_SIPRXCON optname optflags {
$$.atype = rxcon_type; $$.atype = rxcon_type;
@ -2317,7 +2317,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
if (findOptFlag(&$3, "SingleShot", bool_flag) != NULL) if (findOptFlag(&$3, "SingleShot", bool_flag) != NULL)
$$.argflags |= ARG_SINGLE_SHOT; $$.argflags |= ARG_SINGLE_SHOT;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPRXDIS optname optflags { | TK_SIPRXDIS optname optflags {
$$.atype = rxdis_type; $$.atype = rxdis_type;
@ -2325,7 +2325,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.nrderefs = 0; $$.nrderefs = 0;
$$.name = cacheName(currentSpec, $2); $$.name = cacheName(currentSpec, $2);
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPSLOTCON '(' arglist ')' optname optflags { | TK_SIPSLOTCON '(' arglist ')' optname optflags {
$$.atype = slotcon_type; $$.atype = slotcon_type;
@ -2339,7 +2339,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.u.sa = sipMalloc(sizeof (signatureDef)); $$.u.sa = sipMalloc(sizeof (signatureDef));
*$$.u.sa = $3; *$$.u.sa = $3;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_SIPSLOTDIS '(' arglist ')' optname optflags { | TK_SIPSLOTDIS '(' arglist ')' optname optflags {
$$.atype = slotdis_type; $$.atype = slotdis_type;
@ -2353,7 +2353,7 @@ argvalue: TK_SIPSIGNAL optname optflags optassign {
$$.u.sa = sipMalloc(sizeof (signatureDef)); $$.u.sa = sipMalloc(sizeof (signatureDef));
*$$.u.sa = $3; *$$.u.sa = $3;
currentSpec -> sigQ_SLOTS = TRUE; currentSpec -> sigslots = TRUE;
} }
| TK_QOBJECT optname optflags { | TK_QOBJECT optname optflags {
$$.atype = qobject_type; $$.atype = qobject_type;
@ -2750,7 +2750,7 @@ void parse(sipSpec *spec, FILE *fp, char *filename, stringList *tsl,
spec->typedefs = NULL; spec->typedefs = NULL;
spec->exphdrcode = NULL; spec->exphdrcode = NULL;
spec->docs = NULL; spec->docs = NULL;
spec->sigQ_SLOTS = FALSE; spec->sigslots = FALSE;
spec->genc = -1; spec->genc = -1;
spec->plugins = NULL; spec->plugins = NULL;
@ -3266,7 +3266,7 @@ static void finishClass(sipSpec *pt, moduleDef *mod, classDef *cd,
cd->pyqt4_flags = flg->fvalue.ival; cd->pyqt4_flags = flg->fvalue.ival;
if (findOptFlag(of, "PyQt4NoQMetaObject", bool_flag) != NULL) if (findOptFlag(of, "PyQt4NoQMetaObject", bool_flag) != NULL)
setPyQt4NoQMetaObject(cd); setPyTQt4NoTQMetaObject(cd);
if (isOpaque(cd)) if (isOpaque(cd))
{ {
@ -3666,7 +3666,7 @@ static enumDef *newEnum(sipSpec *pt, moduleDef *mod, mappedTypeDef *mt_scope,
ed->next_alt = next_alt; ed->next_alt = next_alt;
ed->module = mod; ed->module = mod;
ed->members = NULL; ed->members = NULL;
ed->Q_SLOTS = NULL; ed->slots = NULL;
ed->overs = NULL; ed->overs = NULL;
ed->next = pt -> enums; ed->next = pt -> enums;
@ -3959,7 +3959,7 @@ static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod,
ifaceFileList *iffl, **used; ifaceFileList *iffl, **used;
type_names = type_values = NULL; type_names = type_values = NULL;
appendTypeStrings(classFQCName(tcd->cd), &tcd->sig, &td->types, NULL, &type_names, &type_values); appendTypeStrings(classFTQCName(tcd->cd), &tcd->sig, &td->types, NULL, &type_names, &type_values);
/* /*
* Add a mapping from the template name to the instantiated name. If we * Add a mapping from the template name to the instantiated name. If we
@ -3968,9 +3968,9 @@ static void instantiateClassTemplate(sipSpec *pt, moduleDef *mod,
ad = &tcd->sig.args[tcd->sig.nrArgs++]; ad = &tcd->sig.args[tcd->sig.nrArgs++];
memset(ad, 0, sizeof (argDef)); memset(ad, 0, sizeof (argDef));
ad->atype = defined_type; ad->atype = defined_type;
ad->u.snd = classFQCName(tcd->cd); ad->u.snd = classFTQCName(tcd->cd);
appendScopedName(&type_names, text2scopePart(scopedNameTail(classFQCName(tcd->cd)))); appendScopedName(&type_names, text2scopePart(scopedNameTail(classFTQCName(tcd->cd))));
appendScopedName(&type_values, text2scopePart(scopedNameToString(fqname))); appendScopedName(&type_values, text2scopePart(scopedNameToString(fqname)));
/* Create the new class. */ /* Create the new class. */
@ -4249,9 +4249,9 @@ static void instantiateTemplateEnums(sipSpec *pt, classTmplDef *tcd,
ed->members = emd; ed->members = emd;
} }
ed->Q_SLOTS = instantiateTemplateMethods(ted->Q_SLOTS, mod); ed->slots = instantiateTemplateMethods(ted->slots, mod);
ed->overs = instantiateTemplateOverloads(pt, ted->overs, ed->overs = instantiateTemplateOverloads(pt, ted->overs,
ted->Q_SLOTS, ed->Q_SLOTS, tcd, td, cd, used, type_names, ted->slots, ed->slots, tcd, td, cd, used, type_names,
type_values); type_values);
ed->next = pt->enums; ed->next = pt->enums;
@ -4360,7 +4360,7 @@ static void templateType(argDef *ad, classTmplDef *tcd, templateDef *td, classDe
} }
/* Handle the class name itself. */ /* Handle the class name itself. */
if (strcmp(name, scopedNameTail(classFQCName(tcd->cd))) == 0) if (strcmp(name, scopedNameTail(classFTQCName(tcd->cd))) == 0)
{ {
ad->atype = class_type; ad->atype = class_type;
ad->u.cd = ncd; ad->u.cd = ncd;
@ -4585,7 +4585,7 @@ static int foundInScope(scopedNameDef *fq_name, scopedNameDef *rel_name)
scopedNameDef *snd; scopedNameDef *snd;
int found; int found;
snd = copyScopedName(classFQCName(scope)); snd = copyScopedName(classFTQCName(scope));
appendScopedName(&snd, copyScopedName(rel_name)); appendScopedName(&snd, copyScopedName(rel_name));
found = (compareScopedNames(fq_name, snd) == 0); found = (compareScopedNames(fq_name, snd) == 0);
@ -4969,16 +4969,16 @@ static void newFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
if (isSignal(od)) if (isSignal(od))
setHasShadow(c_scope); setHasShadow(c_scope);
pt->sigQ_SLOTS = TRUE; pt->sigslots = TRUE;
} }
if (isSignal(od) && (methodcode != NULL || vcode != NULL)) if (isSignal(od) && (methodcode != NULL || vcode != NULL))
yyerror("Cannot provide code for Q_SIGNALS"); yyerror("Cannot provide code for signals");
if (isstatic) if (isstatic)
{ {
if (isSignal(od)) if (isSignal(od))
yyerror("Static functions cannot be Q_SIGNALS"); yyerror("Static functions cannot be signals");
if (isvirt) if (isvirt)
yyerror("Static functions cannot be virtual"); yyerror("Static functions cannot be virtual");
@ -5005,8 +5005,8 @@ static void newFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
if (isvirt) if (isvirt)
{ {
if (isSignal(od) && pluginPyQt3(pt)) if (isSignal(od) && pluginPyTQt3(pt))
yyerror("Virtual Q_SIGNALS aren't supported"); yyerror("Virtual signals aren't supported");
setIsVirtual(od); setIsVirtual(od);
setHasShadow(c_scope); setHasShadow(c_scope);
@ -5232,7 +5232,7 @@ static memberDef *findFunction(sipSpec *pt, moduleDef *mod, classDef *c_scope,
int nrargs; /* Nr. of arguments. */ int nrargs; /* Nr. of arguments. */
} slot_table[] = { } slot_table[] = {
{"__str__", str_slot, TRUE, 0}, {"__str__", str_slot, TRUE, 0},
{"__tqunicode__", tqunicode_slot, TRUE, 0}, {"__unicode__", tqunicode_slot, TRUE, 0},
{"__int__", int_slot, FALSE, 0}, {"__int__", int_slot, FALSE, 0},
{"__long__", long_slot, FALSE, 0}, {"__long__", long_slot, FALSE, 0},
{"__float__", float_slot, FALSE, 0}, {"__float__", float_slot, FALSE, 0},
@ -6062,7 +6062,7 @@ static const char *getDocValue(optFlags *optflgs)
/* /*
* Return TRUE if the PyQt3 plugin was specified. * Return TRUE if the PyQt3 plugin was specified.
*/ */
int pluginPyQt3(sipSpec *pt) int pluginPyTQt3(sipSpec *pt)
{ {
return stringFind(pt->plugins, "PyQt3"); return stringFind(pt->plugins, "PyQt3");
} }
@ -6071,7 +6071,7 @@ int pluginPyQt3(sipSpec *pt)
/* /*
* Return TRUE if the PyQt4 plugin was specified. * Return TRUE if the PyQt4 plugin was specified.
*/ */
int pluginPyQt4(sipSpec *pt) int pluginPyTQt4(sipSpec *pt)
{ {
return stringFind(pt->plugins, "PyQt4"); return stringFind(pt->plugins, "PyQt4");
} }

@ -23,6 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <tqt.h>
#ifdef TRUE #ifdef TRUE
#undef TRUE #undef TRUE

Loading…
Cancel
Save