[Iup-users] IupLoadBuffer
Brought to you by:
scuri
From: <d40...@ya...> - 2013-12-06 17:51:54
|
Hi All --------------------------My EnvironmentWindows7 32bit JapaneseMingw32g++ 4.8.1-std=c++11--------------------------sample... char led_str[] = "export = DIALOG(VBOX(LABEL[TITLE = Label](\"\")))";auto s = ::IupLoadBuffer(led_str); -------------------------------------------------------------------------------------------------------------s is not Zero. "led(export = DIALOG(VBOX(LABEL[TITLE = Label](\"\")))): bad input at line 1 - symbol 'IALOG' not defined\n"------------------------------------------------------------------------------------------------------------- Is this Bug? iup_ledlex.c-------------------------------------------------------------------------------------------------------------::original code static void iLexUngetc(int c){ if (ilex.file) ungetc(c, ilex.file); else { if (*ilex.f != 0) *(char*)ilex.f = (char)c; /* write back to the string ???? */ }} static int iLexGetc(void){ if (ilex.file) return getc(ilex.file); else { if (*ilex.f != 0) ilex.f++; if (*ilex.f == 0) return EOF; return *ilex.f; }} -------------------------------------------------------------------------------------------------------------static void iLexUngetc(int c){ if (ilex.file) ungetc(c, ilex.file); else { if (*ilex.f != 0) *(char*)(--ilex.f) = (char)c; /* write back to the string ???? */ ^^^^^^^^ }} static int iLexGetc(void){ if (ilex.file) return getc(ilex.file); else return *ilex.f ? *(++ilex.f - 1): EOF; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^}-------------------------------------------------------------------------------------------------------------- Sorry...I am not good at English. I am using the translation site. r.k |