1 /* Copyright (C) 1996,1997,2000,2001, 2006 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
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but 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 02110-1301 USA
18 /* This is the 'main' function for the `guile' executable. It is not
19 included in libguile.a.
21 Eventually, we hope this file will be automatically generated,
22 based on the list of installed, statically linked libraries on the
23 system. For now, please don't put interesting code in here. */
35 #include <libguile/scmconfig.h>
39 #ifdef HAVE_WINSOCK2_H
43 /* Debugger interface (don't change the order of the following lines) */
45 #include <libguile/gdb_interface.h>
49 inner_main (void *closure SCM_UNUSED
, int argc
, char **argv
)
52 /* This is necessary to startup the Winsock API under Win32. */
54 WSAStartup (0x0202, &WSAData
);
56 #endif /* __MINGW32__ */
58 /* module initializations would go here */
59 scm_shell (argc
, argv
);
63 #endif /* __MINGW32__ */
67 main (int argc
, char **argv
)
69 #if !defined (__MINGW32__)
70 /* libtool automagically inserts this variable into your executable... */
71 extern const lt_dlsymlist lt_preloaded_symbols
[];
72 lt_dlpreload_default (lt_preloaded_symbols
);
74 scm_boot_guile (argc
, argv
, inner_main
, 0);
75 return 0; /* never reached */