oga's tools
Revision | 072053f41b600498af676d48e4fed864d80b571b (tree) |
---|---|
Time | 2014-02-01 15:49:27 |
Author | oga <oga@mxg....> |
Commiter | oga |
support VC6
@@ -7,6 +7,10 @@ | ||
7 | 7 | #include <stdlib.h> |
8 | 8 | #include <string.h> |
9 | 9 | |
10 | +#ifdef _WIN32 | |
11 | +#include <windows.h> | |
12 | +#endif | |
13 | + | |
10 | 14 | /* script format */ |
11 | 15 | /* |
12 | 16 | ------------------------- |
@@ -250,6 +254,7 @@ int ReadMidiScript(FILE *fp) | ||
250 | 254 | if (CurTrack >= 0) { |
251 | 255 | AddMidiCommand(TrackData[CurTrack], &TrackLen[CurTrack], 0, CMD_EndOfTrack); |
252 | 256 | } |
257 | + return 0; | |
253 | 258 | } |
254 | 259 | |
255 | 260 | /* |
@@ -289,6 +294,8 @@ int AddDelta(unsigned char *trackdat, int *len, int delta) | ||
289 | 294 | if (vf > 1) printf("AddDelta: trackdat[%d] = 0x%02x\n", *len+i, trackdat[*len+i]); |
290 | 295 | } |
291 | 296 | *len += cnt; |
297 | + | |
298 | + return 0; | |
292 | 299 | } |
293 | 300 | |
294 | 301 | /* |
@@ -320,6 +327,8 @@ int AddMidiCommand(unsigned char *trackdat, int *len, int delta, char *cmd) | ||
320 | 327 | ++cmd; |
321 | 328 | } |
322 | 329 | if (vf > 1) printf("AddMidiCommand: len = %d\n", *len); |
330 | + | |
331 | + return 0; | |
323 | 332 | } |
324 | 333 | |
325 | 334 | /* |
@@ -348,6 +357,8 @@ int AddMidiCmdStr(unsigned char *trackdat, int *len, char *cmd, char *str) | ||
348 | 357 | /* add string */ |
349 | 358 | strcpy(&trackdat[*len], str); |
350 | 359 | *len += strlen(str); |
360 | + | |
361 | + return 0; | |
351 | 362 | } |
352 | 363 | |
353 | 364 | /* |