Debian Codegraph @

src/test-extra.c

raw
1 /*
2 This is to test features that aren't accessible from Scheme by default.
3 We build a special executable that exposes those features.
4
5 (This also shows how to write a simple program linking libgauche. Scroll
6 down to main() to see how.)
7 */
8
9 #include "gauche.h"
10 #include "gauche/priv/configP.h"
11
12 void Scm_Init_libextra(ScmModule *);
13
14 /* main */
15 int main(int argc, const char **argv)
16 {
17 GC_INIT();
18 Scm_Init(GAUCHE_SIGNATURE);
19 Scm_AddLoadPath("../src/", FALSE);
20 Scm_AddLoadPath("../libsrc/", FALSE);
21 Scm_AddLoadPath("../lib/", FALSE);
22 Scm_Init_libextra(Scm_UserModule());
23 Scm_SimpleMain(argc, argv, NULL, 0);
24 return 0;
25 }