diff options
-rwxr-xr-x | soltools/HIDCompiler/hidclex.l | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/soltools/HIDCompiler/hidclex.l b/soltools/HIDCompiler/hidclex.l index 6c1e62278d2b..df36c708f2a8 100755 --- a/soltools/HIDCompiler/hidclex.l +++ b/soltools/HIDCompiler/hidclex.l @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hidclex.l,v $ - * $Revision: 1.8 $ + * $Revision: 1.9 $ * * This file is part of OpenOffice.org. * @@ -37,7 +37,7 @@ #pragma warning(push, 1) #endif -static char const Revision[] = "$Revision: 1.8 $" ; +static char const Revision[] = "$Revision: 1.9 $" ; /* @@ -79,21 +79,6 @@ static int nInputFileDepth = 0; #include <ctype.h> -#if defined _MSC_VER -#include <io.h> -#endif - -char* lower(char* str) -{ - size_t s= strlen(str); - size_t i=0; - while( i < s ){ - str[i] = (char) tolower( str[i] ); - i++; - } - return str; -} - int alloc_cnt = 0; void freestring( char const * ); //forward @@ -192,24 +177,6 @@ void makestring(char** newstr, char* oldstr) } } -int strncmpi(char* stra, char* strb, size_t cnt) -{ - // like strncmp() but case insensitive - size_t i; - char a,b; - for(i=0;i<cnt;i++){ - a = (char) tolower(stra[i]); - b = (char) tolower(strb[i]); - if( a < b ) - return -1; - if( a > b ) - return 1; - if( a == '\0' && b == '\0' ) - return 0; - } - return 0; -} - #ifndef WNT int strcmpi(char const * stra, char const * strb) { @@ -451,13 +418,6 @@ resource* pop_resource() return stack[ stackptr-- ]; } -void delete_stack() -{ - while( stackptr > EMPTYSTACK ) - delete pop_resource(); -} - - /* forward */ int eat_comment(); int eat_cpp_comment(); @@ -475,6 +435,10 @@ int eat_cpp_comment(); %} +/* 89012 */ +%option never-interactive + + simple ([^\n\"]*) %p 7000 string \"{simple}((((\\\\)*(\\\"))?){simple})*\" |