1 | /* $Id: third.c,v 1.1.1.2 2004-10-03 04:59:48 ghudson Exp $ */ |
---|
2 | |
---|
3 | /* Copyright (C) 1998-99 Martin Baulig |
---|
4 | This file is part of LibGTop 1.0. |
---|
5 | |
---|
6 | Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998. |
---|
7 | |
---|
8 | LibGTop is free software; you can redistribute it and/or modify it |
---|
9 | under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation; either version 2 of the License, |
---|
11 | or (at your option) any later version. |
---|
12 | |
---|
13 | LibGTop is distributed in the hope that it will be useful, but WITHOUT |
---|
14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
16 | for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with LibGTop; see the file COPYING. If not, write to the |
---|
20 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
21 | Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | |
---|
24 | #include <locale.h> |
---|
25 | #include <libintl.h> |
---|
26 | #include <stdio.h> |
---|
27 | |
---|
28 | #include <glibtop.h> |
---|
29 | |
---|
30 | #include <glibtop/open.h> |
---|
31 | #include <glibtop/close.h> |
---|
32 | |
---|
33 | #include <glibtop/union.h> |
---|
34 | #include <glibtop/sysdeps.h> |
---|
35 | |
---|
36 | void main_prog(int argc, char *argv[]); |
---|
37 | |
---|
38 | int |
---|
39 | main (int argc, char *argv[]) |
---|
40 | { |
---|
41 | setlocale (LC_ALL, ""); |
---|
42 | bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR); |
---|
43 | textdomain (GETTEXT_PACKAGE); |
---|
44 | |
---|
45 | gh_enter (argc, argv, main_prog); |
---|
46 | exit (0); |
---|
47 | } |
---|
48 | |
---|
49 | void |
---|
50 | main_prog (int argc, char *argv[]) |
---|
51 | { |
---|
52 | glibtop_boot_guile (); |
---|
53 | #ifdef GLIBTOP_GUILE_NAMES |
---|
54 | glibtop_boot_guile_names (); |
---|
55 | #endif |
---|
56 | |
---|
57 | gh_repl (argc, argv); |
---|
58 | } |
---|