1 /* Copyright (C) 1996,1997,2000,2001, 2006, 2008 Free Software Foundation, Inc.
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public License
5 * as published by the Free Software Foundation; either version 3 of
6 * the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 /* This is the 'main' function for the `guile' executable. It is not
20 included in libguile.a.
22 Eventually, we hope this file will be automatically generated,
23 based on the list of installed, statically linked libraries on the
24 system. For now, please don't put interesting code in here. */
36 #include <libguile/scmconfig.h>
40 #ifdef HAVE_WINSOCK2_H
44 /* Debugger interface (don't change the order of the following lines) */
46 #include <libguile/gdb_interface.h>
50 inner_main (void *closure SCM_UNUSED
, int argc
, char **argv
)
53 /* This is necessary to startup the Winsock API under Win32. */
55 WSAStartup (0x0202, &WSAData
);
57 #endif /* __MINGW32__ */
59 /* module initializations would go here */
60 scm_shell (argc
, argv
);
64 #endif /* __MINGW32__ */
68 main (int argc
, char **argv
)
70 scm_boot_guile (argc
, argv
, inner_main
, 0);
71 return 0; /* never reached */