diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-07-31 17:36:29 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-07-31 17:36:29 +0000 |
commit | 2f74809e61c10aa65729df36030d341d4a51cf8c (patch) | |
tree | 2d32e7a6001947c7cd6635348d614f76ab17f7f0 /soltools/HIDCompiler | |
parent | 9eb4ff01cbf2e8afe159fef3b8e2741e090edca9 (diff) |
INTEGRATION: CWS mh30b (1.7.8); FILE MERGED
2008/07/16 13:02:55 mh 1.7.8.2: remove unused code, #i91591#
2008/06/06 14:41:38 mh 1.7.8.1: #89012# isatty : necer-interactive
Diffstat (limited to 'soltools/HIDCompiler')
-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})*\" |