天天挂茶馆

1149 发表于 2018-10-8 17:17:10

c++调用大漠系列:MFC与LUA交互实战_获得控件文本

本帖最后由 1149 于 2018-10-9 16:05 编辑


正在组织思路...
else if (isalpha(ls->current) || ls->current == '_' || ls->current > 0x80) {          /* identifier or reserved word */          TString *ts;          if (ls->current == 'L') {            next(ls);            if (ls->current == '"' || ls->current == '/'') {            read_wstring(ls, ls->current, seminfo);            return TK_WSTRING;            }            save(ls, 'L');          }          /* identifier or reserved word */          do {            if(ls->current > 0x80)            {               save_and_next(ls);               save_and_next(ls);            }            else               save_and_next(ls);          } while (isalnum(ls->current) || ls->current == '_' || ls->current > 0x80);          ts = luaX_newstring(ls, luaZ_buffer(ls->buff),                                  luaZ_bufflen(ls->buff));          if (ts->tsv.reserved > 0)/* reserved word? */            return ts->tsv.reserved - 1 + FIRST_RESERVED;          else {            seminfo->ts = ts;            return TK_NAME;          }      }

---------------------
作者:chrisxie
来源:CSDN
原文:https://blog.csdn.net/chrisxie/article/details/2998290?utm_source=copy
版权声明:本文为博主原创文章,转载请附上博文链接!

ms930602 发表于 2021-11-30 17:45:58

实战 奥利给
页: [1]
查看完整版本: c++调用大漠系列:MFC与LUA交互实战_获得控件文本