Since there is a possibility that the Error () function will collide with libwonx.a when linking, It changed to Wonx_Error (). Added bios_exit (). sprite_set_char, sprite_get_char, palette number minus 8 Fixed bug that was not specified. font_set_monodata (), font_set_colordata (), font_get_data (), disp.c, The arguments of screen_set_char (), screen_get_char (), sprite_set_data () Changed from void * to appropriate type. Sample program and attached SpeedMac. I added a document. Version 0.3 beta - from wonx-b03.tar.gz
15 lines
306 B
Perl
15 lines
306 B
Perl
#!/usr/bin/perl
|
|
|
|
while ($FILENAME = shift(@ARGV)) {
|
|
open (RFILE, "< $FILENAME");
|
|
open (WFILE, "> $FILENAME.tmp");
|
|
while (<RFILE>) {
|
|
s/^(\s*\#\s*include\s*)[\<\"]sys\/(.+\.h)[\>\"]/$1\"wonx_include\/$2\"/i;
|
|
print WFILE $_;
|
|
}
|
|
close (RFILE);
|
|
close (WFILE);
|
|
|
|
system("mv $FILENAME.tmp $FILENAME");
|
|
}
|