summaryrefslogtreecommitdiff
path: root/src/base/main.h
blob: 4ae7540dd4bf67a044b75055cc4ce973f973c960 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MAIN_H
#define MAIN_H

#ifdef NLS
#include <libintl.h>
#include <locale.h>
#endif /* NLS */

#include "bool.h"
#include "string_length.h"
#include "path.h"

#define WINDOW_SIZE_X		800
#define WINDOW_SIZE_Y		600

#ifdef NLS
#define _(text)			gettext(text)
#else /* NLS */
#define _(text)			(text)
#endif /* NLS */

#include "msg.h"

#ifndef __WIN32__
#define PATH_SEPARATOR "/"
#else
#define PATH_SEPARATOR "\\"
#endif

#define UNUSED(var)		if (0 && var) {}

extern char *getParam(char *s);
extern char *getParamElse(char *s1, char *s2);
extern bool_t isParamFlag(char *s);
extern char *get_program_name();
extern char *getString(int n);
extern char *get_string_static(int n);
extern int *newInt(int x);
extern int isFillPath(const char *path);
extern void accessExistFile(const char *s);
extern int tryExistFile(const char *s);

#endif /* MAIN_H */