svnno****@sourc*****
svnno****@sourc*****
2009年 7月 3日 (金) 22:35:37 JST
Revision: 3574 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3574 Author: yutakapon Date: 2009-07-03 22:35:37 +0900 (Fri, 03 Jul 2009) Log Message: ----------- 1ã¤ã®è¡ã«ãè¤æ°ã®ã³ã¡ã³ããããå ´åã«å¯¾å¿ãããã messagebox "message" "title" /*comment*/ /*comment2*/ Modified Paths: -------------- trunk/teraterm/ttpmacro/ttmparse.c -------------- next part -------------- Modified: trunk/teraterm/ttpmacro/ttmparse.c =================================================================== --- trunk/teraterm/ttpmacro/ttmparse.c 2009-07-03 13:11:48 UTC (rev 3573) +++ trunk/teraterm/ttpmacro/ttmparse.c 2009-07-03 13:35:37 UTC (rev 3574) @@ -333,7 +333,12 @@ /* C¾êRgªÂ¶çêÄ¢é©Ç¤© */ int IsCommentClosed(void) { +#ifdef SUPPORT_C_STYLE_COMMENT return (commenting == 0); +#else + // Y@\ª³øÌêÍAíÉu^vðÔ·B + return 1; +#endif } BYTE GetFirstChar() @@ -379,34 +384,40 @@ } /* C¾êRgÌnÜè */ - if (LineBuff[LinePtr] == '/' && LineBuff[LinePtr + 1] == '*') { - comment_starting = 1; - LinePtr += 2; - while (LinePtr < LineLen) { - /* RgÌIíèªoÄéÜÅXLbv */ - if (LineBuff[LinePtr] == '*' && LineBuff[LinePtr + 1] == '/') { - LinePtr += 2; - comment_starting = 0; - break; + do { + if (LineBuff[LinePtr] == '/' && LineBuff[LinePtr + 1] == '*') { + comment_starting = 1; + LinePtr += 2; + while (LinePtr < LineLen) { + /* RgÌIíèªoÄéÜÅXLbv */ + if (LineBuff[LinePtr] == '*' && LineBuff[LinePtr + 1] == '/') { + LinePtr += 2; + comment_starting = 0; + break; + } + LinePtr++; } - LinePtr++; - } - if (LinePtr < LineLen) - b = LineBuff[LinePtr]; - else - b = 0; + if (LinePtr < LineLen) + b = LineBuff[LinePtr]; + else + b = 0; - while ((LinePtr<LineLen) && ((b==' ') || (b=='\t'))) - { - LinePtr++; - if (LinePtr<LineLen) b = LineBuff[LinePtr]; + while ((LinePtr<LineLen) && ((b==' ') || (b=='\t'))) + { + LinePtr++; + if (LinePtr<LineLen) b = LineBuff[LinePtr]; + } + + /* RgÌIíèªêsÉoêµÈ¢êÍAi±IÉL^·éB*/ + if (comment_starting) + commenting = 1; } - /* RgÌIíèªêsÉoêµÈ¢êÍAi±IÉL^·éB*/ - if (comment_starting) - commenting = 1; - } + /* 1ÂÌsÉA¡ÌRgª éêÉηé½ßA̶ªXbV ÈçÎA + * [vÌnßÉß·B + */ + } while (b == '/'); #endif if ((b>' ') && (b!=';'))