瀏覽代碼

* support LL as int number postfix

git-svn-id: trunk@13821 -
florian 16 年之前
父節點
當前提交
48e259876b
共有 2 個文件被更改,包括 533 次插入521 次删除
  1. 2 2
      utils/h2pas/scan.l
  2. 531 519
      utils/h2pas/scan.pas

+ 2 - 2
utils/h2pas/scan.l

@@ -616,14 +616,14 @@ D [0-9]
                         end
                         else
                           skip_until_eol;
-{D}+[Uu]?[Ll]?          if NotInCPlusBlock then
+{D}+[Uu]?[Ll]?[Ll]?     if NotInCPlusBlock then
                         begin
                            while yytext[length(yytext)] in ['L','U','l','u'] do
                              Delete(yytext,length(yytext),1);
                            return(NUMBER);
                         end
                          else skip_until_eol;
-"0x"[0-9A-Fa-f]*[Uu]?[Ll]?
+"0x"[0-9A-Fa-f]*[Uu]?[Ll]?[Ll]?
                         if NotInCPlusBlock then
                         begin
                            (* handle pre- and postfixes *)

文件差異過大導致無法顯示
+ 531 - 519
utils/h2pas/scan.pas


部分文件因文件數量過多而無法顯示