diff options
author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-06-10 11:57:33 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-06-10 12:47:12 +0000 |
commit | ec9ab0ba6d0e28fc63f9ff28135ec9911ffa882b (patch) | |
tree | 922d4119ff2e535ac313bbbfcfca33b744524e77 /src/xmlpatterns/parser/TokenLookup.gperf | |
parent | 8d5f3bd730486b3fd3d5b1782fa70b80108c0ba4 (diff) | |
download | qtxmlpatterns-ec9ab0ba6d0e28fc63f9ff28135ec9911ffa882b.tar.gz |
Prefixed all tokens with T_ to prevent collisions with macros.
Identifier names like "IN" and "AS" have a high probability of being
defined by certain platforms as macros, esp. with Visual Studio.
Change-Id: I1fbc0ae33f94387b83377181b6012683a418459a
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/xmlpatterns/parser/TokenLookup.gperf')
-rw-r--r-- | src/xmlpatterns/parser/TokenLookup.gperf | 200 |
1 files changed, 100 insertions, 100 deletions
diff --git a/src/xmlpatterns/parser/TokenLookup.gperf b/src/xmlpatterns/parser/TokenLookup.gperf index 2e83bf4..e56cf82 100644 --- a/src/xmlpatterns/parser/TokenLookup.gperf +++ b/src/xmlpatterns/parser/TokenLookup.gperf @@ -86,7 +86,7 @@ /* Output initializers for the TokenMap struct. Note the lack * of a space between the comma and ERROR. Anything else is * a syntax error to gperf. Rocket science. */ -%define initializer-suffix ,ERROR +%define initializer-suffix ,T_ERROR %struct-type @@ -109,105 +109,105 @@ namespace QPatternist * character is stored as the ASCII character, followed by a null byte. * Sorted alphabetically. */ %% -"ancestor", ANCESTOR -"ancestor-or-self", ANCESTOR_OR_SELF -"and", AND -"as", AS -"ascending", ASCENDING -"assign", ASSIGN -"at", AT -"attribute", ATTRIBUTE -"base-uri", BASEURI -"boundary-space", BOUNDARY_SPACE -"by", BY -"case", CASE -"castable", CASTABLE -"cast", CAST -"child", CHILD -"collation", COLLATION -"comment", COMMENT -"construction", CONSTRUCTION -"copy-namespaces", COPY_NAMESPACES -"declare", DECLARE -"default", DEFAULT -"descendant", DESCENDANT -"descendant-or-self", DESCENDANT_OR_SELF -"descending", DESCENDING -"div", DIV -"document", DOCUMENT -"document-node", DOCUMENT_NODE -"element", ELEMENT -"else", ELSE -"empty", EMPTY -"empty-sequence", EMPTY_SEQUENCE -"encoding", ENCODING -"eq", EQ -"every", EVERY -"except", EXCEPT -"external", EXTERNAL -"following", FOLLOWING -"following-sibling", FOLLOWING_SIBLING -"follows", FOLLOWS -"for", FOR -"function", FUNCTION -"ge", GE -"greatest", GREATEST -"gt", GT -"idiv", IDIV -"if", IF -"import", IMPORT -"inherit", INHERIT -"in", IN -"instance", INSTANCE -"intersect", INTERSECT -"is", IS -"item", ITEM -"lax", LAX -"least", LEAST -"le", LE -"let", LET -"lt", LT -"mod", MOD -"module", MODULE -"namespace", NAMESPACE -"ne", NE -"node", NODE -"no-inherit", NO_INHERIT -"no-preserve", NO_PRESERVE -"of", OF -"option", OPTION -"ordered", ORDERED -"ordering", ORDERING -"order", ORDER -"or", OR -"parent", PARENT -"precedes", PRECEDES -"preceding", PRECEDING -"preceding-sibling", PRECEDING_SIBLING -"preserve", PRESERVE -"processing-instruction", PROCESSING_INSTRUCTION -"return", RETURN -"satisfies", SATISFIES -"schema-attribute", SCHEMA_ATTRIBUTE -"schema-element", SCHEMA_ELEMENT -"schema", SCHEMA -"self", SELF -"some", SOME -"stable", STABLE -"strict", STRICT -"strip", STRIP -"text", TEXT -"then", THEN -"to", TO -"treat", TREAT -"typeswitch", TYPESWITCH -"union", UNION -"unordered", UNORDERED -"validate", VALIDATE -"variable", VARIABLE -"version", VERSION -"where", WHERE -"xquery", XQUERY +"ancestor", T_ANCESTOR +"ancestor-or-self", T_ANCESTOR_OR_SELF +"and", T_AND +"as", T_AS +"ascending", T_ASCENDING +"assign", T_ASSIGN +"at", T_AT +"attribute", T_ATTRIBUTE +"base-uri", T_BASEURI +"boundary-space", T_BOUNDARY_SPACE +"by", T_BY +"case", T_CASE +"castable", T_CASTABLE +"cast", T_CAST +"child", T_CHILD +"collation", T_COLLATION +"comment", T_COMMENT +"construction", T_CONSTRUCTION +"copy-namespaces", T_COPY_NAMESPACES +"declare", T_DECLARE +"default", T_DEFAULT +"descendant", T_DESCENDANT +"descendant-or-self", T_DESCENDANT_OR_SELF +"descending", T_DESCENDING +"div", T_DIV +"document", T_DOCUMENT +"document-node", T_DOCUMENT_NODE +"element", T_ELEMENT +"else", T_ELSE +"empty", T_EMPTY +"empty-sequence", T_EMPTY_SEQUENCE +"encoding", T_ENCODING +"eq", T_EQ +"every", T_EVERY +"except", T_EXCEPT +"external", T_EXTERNAL +"following", T_FOLLOWING +"following-sibling", T_FOLLOWING_SIBLING +"follows", T_FOLLOWS +"for", T_FOR +"function", T_FUNCTION +"ge", T_GE +"greatest", T_GREATEST +"gt", T_GT +"idiv", T_IDIV +"if", T_IF +"import", T_IMPORT +"inherit", T_INHERIT +"in", T_IN +"instance", T_INSTANCE +"intersect", T_INTERSECT +"is", T_IS +"item", T_ITEM +"lax", T_LAX +"least", T_LEAST +"le", T_LE +"let", T_LET +"lt", T_LT +"mod", T_MOD +"module", T_MODULE +"namespace", T_NAMESPACE +"ne", T_NE +"node", T_NODE +"no-inherit", T_NO_INHERIT +"no-preserve", T_NO_PRESERVE +"of", T_OF +"option", T_OPTION +"ordered", T_ORDERED +"ordering", T_ORDERING +"order", T_ORDER +"or", T_OR +"parent", T_PARENT +"precedes", T_PRECEDES +"preceding", T_PRECEDING +"preceding-sibling", T_PRECEDING_SIBLING +"preserve", T_PRESERVE +"processing-instruction", T_PROCESSING_INSTRUCTION +"return", T_RETURN +"satisfies", T_SATISFIES +"schema-attribute", T_SCHEMA_ATTRIBUTE +"schema-element", T_SCHEMA_ELEMENT +"schema", T_SCHEMA +"self", T_SELF +"some", T_SOME +"stable", T_STABLE +"strict", T_STRICT +"strip", T_STRIP +"text", T_TEXT +"then", T_THEN +"to", T_TO +"treat", T_TREAT +"typeswitch", T_TYPESWITCH +"union", T_UNION +"unordered", T_UNORDERED +"validate", T_VALIDATE +"variable", T_VARIABLE +"version", T_VERSION +"where", T_WHERE +"xquery", T_XQUERY %% } /* Close the QPatternist namespace. */ |