change init_contrib API

This commit is contained in:
Yuichi Nishiwaki
2014-07-20 09:36:18 +09:00
parent 3e5fd1a54b
commit 6a038bc926
5 changed files with 46 additions and 11 deletions
Executable
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/perl
use strict;
print <<EOL;
/**
* !!NOTICE!!
* This file was automatically generated by mkinit.pl, and includes all of
* the prelude files required by Picrin. PLEASE DO NOT EDIT THIS FILE, changes
* will be overwritten the next time the script runs.
*/
#include "picrin.h"
void
pic_init_contrib(pic_state *pic)
{
EOL
foreach my $lib (@ARGV) {
print " void pic_init_$lib(pic_state *);\n";
}
print;
foreach my $lib (@ARGV) {
print " pic_init_$lib(pic);\n";
}
print <<EOL;
}
EOL