• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版8659 (tree)
时间2020-03-31 00:19:52
作者zmatsuo

Log Message

文字列リテラルをとる引数に const を追加

更改概述

差异

--- branches/unicode_macro_2/teraterm/ttpmacro/ttmparse.c (revision 8658)
+++ branches/unicode_macro_2/teraterm/ttpmacro/ttmparse.c (revision 8659)
@@ -901,7 +901,7 @@
901901 return TRUE;
902902 }
903903
904-BOOL CheckVar(PCHAR Name, LPWORD VarType, PVarId VarId)
904+BOOL CheckVar(const char *Name, LPWORD VarType, PVarId VarId)
905905 {
906906 #if 0
907907 int i;
@@ -986,7 +986,7 @@
986986 return v;
987987 }
988988
989-BOOL NewIntVar(PCHAR Name, int InitVal)
989+BOOL NewIntVar(const char *Name, int InitVal)
990990 {
991991 #if 0
992992 long P;
@@ -1004,7 +1004,7 @@
10041004 #endif
10051005 }
10061006
1007-BOOL NewStrVar(PCHAR Name, PCHAR InitVal)
1007+BOOL NewStrVar(const char *Name, PCHAR InitVal)
10081008 {
10091009 #if 0
10101010 long P;
@@ -1023,7 +1023,7 @@
10231023 #endif
10241024 }
10251025
1026-int NewIntAryVar(PCHAR Name, int size)
1026+int NewIntAryVar(const char *Name, int size)
10271027 {
10281028 #if 0
10291029 long P;
@@ -1051,7 +1051,7 @@
10511051 #endif
10521052 }
10531053
1054-int NewStrAryVar(PCHAR Name, int size)
1054+int NewStrAryVar(const char *Name, int size)
10551055 {
10561056 #if 0
10571057 long P;
@@ -1079,7 +1079,7 @@
10791079 #endif
10801080 }
10811081
1082-BOOL NewLabVar(PCHAR Name, BINT InitVal, WORD ILevel)
1082+BOOL NewLabVar(const char *Name, BINT InitVal, WORD ILevel)
10831083 {
10841084 #if 0
10851085 long P;
--- branches/unicode_macro_2/teraterm/ttpmacro/ttmparse.h (revision 8658)
+++ branches/unicode_macro_2/teraterm/ttpmacro/ttmparse.h (revision 8659)
@@ -330,12 +330,12 @@
330330 BOOL CheckReservedWord(PCHAR Str, LPWORD WordId);
331331 BOOL GetLabelName(PCHAR Name);
332332 BOOL GetString(PCHAR Str, LPWORD Err);
333-BOOL CheckVar(PCHAR Name, LPWORD VarType, PVarId VarId);
334-BOOL NewIntVar(PCHAR Name, int InitVal);
335-BOOL NewStrVar(PCHAR Name, PCHAR InitVal);
336-BOOL NewLabVar(PCHAR Name, BINT InitVal, WORD ILevel);
337-int NewIntAryVar(PCHAR Name, int size);
338-int NewStrAryVar(PCHAR Name, int size);
333+BOOL CheckVar(const char *Name, LPWORD VarType, PVarId VarId);
334+BOOL NewIntVar(const char *Name, int InitVal);
335+BOOL NewStrVar(const char *Name, PCHAR InitVal);
336+BOOL NewLabVar(const char *Name, BINT InitVal, WORD ILevel);
337+int NewIntAryVar(const char *Name, int size);
338+int NewStrAryVar(const char *Name, int size);
339339 void DelLabVar(WORD ILevel);
340340 void CopyLabel(WORD ILabel, BINT far *Ptr, LPWORD Level);
341341 BOOL GetExpression(LPWORD ValType, int far *Val, LPWORD Err);
Show on old repository browser