summaryrefslogtreecommitdiffstats
path: root/src/moc/moc.l
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-01 13:14:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-01-08 13:00:16 +0900
commit840945161b56783948793acd952fa48bdbddc211 (patch)
tree8b4f96707077d236f5904add531428db3582f2c3 /src/moc/moc.l
parentb3f74bb12ab86a90a05f7d48325b25c408d0b985 (diff)
downloadtqt-84094516.tar.gz
tqt-84094516.zip
Remove support for Metrowerks compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 37293565c31fa447fbf7cb0566be51d1204e8991)
Diffstat (limited to 'src/moc/moc.l')
-rw-r--r--src/moc/moc.l25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/moc/moc.l b/src/moc/moc.l
index 868f9c0a6..82e7ac1bd 100644
--- a/src/moc/moc.l
+++ b/src/moc/moc.l
@@ -41,33 +41,8 @@
%{
#ifdef MOC_YACC_CODE
-#ifdef MOC_MWERKS_PLUGIN
-#ifdef Q_OS_MAC9
-# define isascii(c) ((int)( (unsigned int) (c) <= (unsigned char)0x7F ))
-#endif
-const char *buf_buffer = NULL;
-long buf_size_total = 0, buf_index = 0;
-#define YY_INPUT(buf, result, max_size) \
- { \
- if(buf_index < buf_size_total ) { \
- while(!isascii(buf_buffer[buf_index])) buf_index++; \
- int ms = ((max_size < buf_size_total) ? max_size : buf_size_total); \
- for(result = 0; result < ms; result++) { \
- char c = buf_buffer[buf_index + result]; \
- if(!isascii(c)) { \
- buf_index++; \
- break; \
- } \
- buf[result] = c == '\r' ? '\n' : c; \
- } \
- buf_index += result; \
- } else result = YY_NULL; \
- }
-#endif
-
#include "ntqstring.h"
-
#define input yyinput // yyinput in C++
#define X if(lexDebug){fprintf(stderr,"LEX (%i) : %s\n",lineNo,yytext);};