• R/O
  • HTTP
  • SSH
  • HTTPS

kz_h8write: Commit

H8/3069F writer for KOZOS - kz_h8write


Commit MetaInfo

Revision8556781699a4e777e13e29a136d0641ee592f534 (tree)
Zeit2012-04-30 09:30:14
AutorShinichiro Nakamura <shinta.main.jp@gmai...>
CommiterShinichiro Nakamura

Log Message

Supports Visual Studio 2010.

Ändern Zusammenfassung

Diff

--- a/src/kz_h8write.c
+++ b/src/kz_h8write.c
@@ -70,18 +70,6 @@ typedef struct {
7070 int error; /**< オプション指定エラー検出フラグ。 */
7171 } user_option_t;
7272
73-#define USER_OPTION_INITIALIZER \
74-{ \
75- .cpu_name = "\0", \
76- .cpu_freq = 20, \
77- .mot_file = "\0", \
78- .serial_port = "\0", \
79- .version = 0, \
80- .help = 0, \
81- .debug = 0, \
82- .error = 0, \
83-}
84-
8573 #define USER_OPTION_CPU_NAME(P) ((P)->cpu_name)
8674 #define USER_OPTION_CPU_FREQ(P) ((P)->cpu_freq)
8775 #define USER_OPTION_MOT_FILE(P) ((P)->mot_file)
@@ -670,7 +658,7 @@ int main(int argc, char **argv)
670658 SERIAL *serial = NULL;
671659 enum ErrorCode ec = NoError;
672660 uint32_t devcode = 0;
673- user_option_t user_option = USER_OPTION_INITIALIZER;
661+ user_option_t user_option;
674662
675663 /*
676664 * バナーを表示する。
--- a/src/kz_h8write.vcxproj
+++ b/src/kz_h8write.vcxproj
@@ -80,11 +80,13 @@
8080 <ItemGroup>
8181 <ClCompile Include="kz_h8write.c" />
8282 <ClCompile Include="mot.c" />
83+ <ClCompile Include="optparse.c" />
8384 <ClCompile Include="serial_windows.c" />
8485 </ItemGroup>
8586 <ItemGroup>
8687 <ClInclude Include="kz_h8write.h" />
8788 <ClInclude Include="mot.h" />
89+ <ClInclude Include="optparse.h" />
8890 <ClInclude Include="serial.h" />
8991 </ItemGroup>
9092 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
--- a/src/kz_h8write.vcxproj.filters
+++ b/src/kz_h8write.vcxproj.filters
@@ -24,6 +24,9 @@
2424 <ClCompile Include="serial_windows.c">
2525 <Filter>ソース ファイル</Filter>
2626 </ClCompile>
27+ <ClCompile Include="optparse.c">
28+ <Filter>ソース ファイル</Filter>
29+ </ClCompile>
2730 </ItemGroup>
2831 <ItemGroup>
2932 <ClInclude Include="kz_h8write.h">
@@ -35,5 +38,8 @@
3538 <ClInclude Include="serial.h">
3639 <Filter>ヘッダー ファイル</Filter>
3740 </ClInclude>
41+ <ClInclude Include="optparse.h">
42+ <Filter>ヘッダー ファイル</Filter>
43+ </ClInclude>
3844 </ItemGroup>
3945 </Project>
\ No newline at end of file
Show on old repository browser