996
|
1 /* -*- mode: C; coding: utf-8; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
|
|
2 *
|
|
3 * cfunge - A standard-conforming Befunge93/98/109 interpreter in C.
|
|
4 * Copyright (C) 2008-2009 Arvid Norlander <anmaster AT tele2 DOT se>
|
|
5 *
|
|
6 * This program is free software: you can redistribute it and/or modify
|
|
7 * it under the terms of the GNU General Public License as published by
|
|
8 * the Free Software Foundation, either version 3 of the License, or
|
|
9 * (at the proxy's option) any later version. Arvid Norlander is a
|
|
10 * proxy who can decide which future versions of the GNU General Public
|
|
11 * License can be used.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful,
|
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 * GNU General Public License for more details.
|
|
17 *
|
|
18 * You should have received a copy of the GNU General Public License
|
|
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20 */
|
|
21
|
|
22 /**
|
|
23 * @file
|
|
24 * Header for main.c.
|
|
25 */
|
|
26
|
|
27 #ifndef FUNGE_HAD_SRC_MAIN_H
|
|
28 #define FUNGE_HAD_SRC_MAIN_H
|
|
29
|
|
30 #include "global.h"
|
|
31
|
|
32 /**
|
|
33 * @defgroup fungearg Interpreter command line arguments
|
|
34 *
|
|
35 * Contains information about command line parameters
|
|
36 * @note
|
|
37 * DO NOT MODIFY these two!
|
|
38 * (They are declared in main.c by the way.)
|
|
39 */
|
|
40 /*@{*/
|
|
41 /// Points to program name argument of argv, don't modify.
|
|
42 ///
|
|
43 /// Currently this points into the real argv of main(). Though that may change
|
|
44 /// without prior notice.
|
|
45 extern const char **fungeargv;
|
|
46 /// Copy of argc, don't modify.
|
|
47 extern int fungeargc;
|
|
48 /*@}*/
|
|
49
|
|
50 #endif
|