• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

oga's tools


Commit MetaInfo

Revision072053f41b600498af676d48e4fed864d80b571b (tree)
Time2014-02-01 15:49:27
Authoroga <oga@mxg....>
Commiteroga

Log Message

support VC6

Change Summary

Incremental Difference

--- a/midic.c
+++ b/midic.c
@@ -7,6 +7,10 @@
77 #include <stdlib.h>
88 #include <string.h>
99
10+#ifdef _WIN32
11+#include <windows.h>
12+#endif
13+
1014 /* script format */
1115 /*
1216 -------------------------
@@ -250,6 +254,7 @@ int ReadMidiScript(FILE *fp)
250254 if (CurTrack >= 0) {
251255 AddMidiCommand(TrackData[CurTrack], &TrackLen[CurTrack], 0, CMD_EndOfTrack);
252256 }
257+ return 0;
253258 }
254259
255260 /*
@@ -289,6 +294,8 @@ int AddDelta(unsigned char *trackdat, int *len, int delta)
289294 if (vf > 1) printf("AddDelta: trackdat[%d] = 0x%02x\n", *len+i, trackdat[*len+i]);
290295 }
291296 *len += cnt;
297+
298+ return 0;
292299 }
293300
294301 /*
@@ -320,6 +327,8 @@ int AddMidiCommand(unsigned char *trackdat, int *len, int delta, char *cmd)
320327 ++cmd;
321328 }
322329 if (vf > 1) printf("AddMidiCommand: len = %d\n", *len);
330+
331+ return 0;
323332 }
324333
325334 /*
@@ -348,6 +357,8 @@ int AddMidiCmdStr(unsigned char *trackdat, int *len, char *cmd, char *str)
348357 /* add string */
349358 strcpy(&trackdat[*len], str);
350359 *len += strlen(str);
360+
361+ return 0;
351362 }
352363
353364 /*