-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.h
More file actions
27 lines (22 loc) · 1.37 KB
/
Copy pathglobals.h
File metadata and controls
27 lines (22 loc) · 1.37 KB
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
#ifndef __GLOBALS_H
#define __GLOBALS_H
#include <stdbool.h>
#define MAX_TOKEN_SIZE 256
#define MAX_ARRAY_SIZE 500
#define MAX_PATH_LEN 1024
#define MAX_JSON_KEYS 256
#define MAX_JSON_FILE_SIZE 4096
#define HELP_STRING "\nOPTIONAL:\n[<filepath>]\n\nREQUIRED:\n[-me/--meta-editor]\t-\tLocation for your metaeditor.exe file.\n\nOPTIONAL:\n[-h/--help]\t\t-\tprint this helpfile\n[-v/--version]\t\t-\tprint program version\n[-dh/--default-headers]\t-\tLocation directory of standard .mqh header files.\n[-wine/--use-wine]\t-\t(default: false) Whether to use Wine to run 'metaeditor.exe' - only available on Linux.\n[-clr/--colourful]\t-\t(default: true) Whether to provide a coloured output.\n[-se/--suppress-errors]\t-\t(default: false) Whether to suppress launch errors for metaeditor.exe (really only matters with Wine).\n[-path/--use-path]\t-\t(default: true) Whether to search your PATH for .ex4, .dll, and .mqh files.\n[-s/--alt-settings]\t-\tAlternate settings file as opposed to the default 'compiler_commands.json' file.\n\n"
#define VERSION_STRING "MQForge v0.0.1\n"
#include "array.h"
extern char *market_platform;
extern char *meta_editor;
extern char *default_header_location;
extern bool use_wine;
extern bool colourful;
extern bool suppress_launch_errors;
extern bool use_PATH;
extern char alt_settings_file[MAX_TOKEN_SIZE];
extern char *work_area;
extern array *target_files;
#endif