picrin/tools/mkinit.pl

33 lines
555 B
Perl
Raw Permalink Normal View History

2014-07-19 20:36:18 -04:00
#!/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) {
2017-04-03 11:52:59 -04:00
print " void pic_nitro_init_$lib(pic_state *);\n";
2014-07-19 20:36:18 -04:00
}
print;
foreach my $lib (@ARGV) {
2017-04-03 11:52:59 -04:00
print " pic_nitro_init_$lib(pic);\n";
2014-07-19 20:36:18 -04:00
}
print <<EOL;
}
EOL