소스 검색

*** empty log message ***

peter 25 년 전
부모
커밋
0051318f45
2개의 변경된 파일498개의 추가작업 그리고 478개의 파일을 삭제
  1. 9 9
      utils/h2pas/scan.l
  2. 489 469
      utils/h2pas/scan.pas

+ 9 - 9
utils/h2pas/scan.l

@@ -527,17 +527,17 @@ D [0-9]
                           if not stripinfo then
                             writeln(outfile,'{ C++ end of extern C conditionnal removed }');
                         end;
-"#else"                 begin
+"#"[ \t]*"else"         begin
                            writeln(outfile,'{$else}');
                            block_type:=bt_no;
                            flush(outfile);
                         end;
-"#endif"                begin
+"#"[ \t]*"endif"        begin
                            writeln(outfile,'{$endif}');
                            block_type:=bt_no;
                            flush(outfile);
                         end;
-"#elif"                 begin
+"#"[ \t]*"elif"         begin
                            if not stripinfo then
                              write(outfile,'(*** was #elif ****)');
                            write(outfile,'{$else');
@@ -546,33 +546,33 @@ D [0-9]
                            block_type:=bt_no;
                            flush(outfile);
                         end;
-"#undef"                begin
+"#"[ \t]*"undef"        begin
                            write(outfile,'{$undef');
                            copy_until_eol;
                            writeln(outfile,'}');
                            flush(outfile);
                         end;
-"#error"                begin
+"#"[ \t]*"error"        begin
                            write(outfile,'{$error');
                            copy_until_eol;
                            writeln(outfile,'}');
                            flush(outfile);
                         end;
-"#include"              begin
+"#"[ \t]*"include"      begin
                            write(outfile,'{$include');
                            copy_until_eol;
                            writeln(outfile,'}');
                            flush(outfile);
                            block_type:=bt_no;
                         end;
-"#if"                   begin
+"#"[ \t]*"if"           begin
                            write(outfile,'{$if');
                            copy_until_eol;
                            writeln(outfile,'}');
                            flush(outfile);
                            block_type:=bt_no;
                         end;
-"#pragma"               begin
+"#"[ \t]*"pragma"       begin
                            if not stripinfo then
                             begin
                               write(outfile,'(** unsupported pragma');
@@ -585,7 +585,7 @@ D [0-9]
                             skip_until_eol;
                            block_type:=bt_no;
                         end;
-"#define"               begin
+"#"[ \t]*"define"       begin
                            in_define:=true;
                            in_space_define:=1;
                            return(DEFINE);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 489 - 469
utils/h2pas/scan.pas


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.