-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargs.h
29 lines (22 loc) · 844 Bytes
/
args.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// mind -- a Forth interpreter
// Copyright 2011-2014 Markus Redeker <[email protected]>
//
// Published under the GNU General Public License version 2 or any
// later version, at your choice. There is NO WARRANY, not at all. See
// the file "copying" for details.
// This file contains code to handle the command line parameters.
#ifndef ARGS_H
#define ARGS_H
#include "types.h"
typedef struct {
cell *raw_argv; // (char**) content of argv
cell raw_argc; // (int) argc
cell *argv; // (char**) content of argv
cell argc; // (int) argc
cell progname; // (char*) argv[0]
cell command; // (char*) command parameter
cell interactive; // flag: start the interactive mode
} args_t;
extern args_t args;
void init_args(int argc, char *argv[]);
#endif