File: globals.h

package info (click to toggle)
scantool 1.21+dfsg-5
  • links: PTS
  • area: main
  • in suites: sid
  • size: 2,956 kB
  • ctags: 2,392
  • sloc: ansic: 12,279; sh: 829; makefile: 344; asm: 86; perl: 29
file content (63 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (3)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef GLOBALS_H
#define GLOBALS_H

#define _GNU_SOURCE
#include <stdio.h>
#include <allegro.h>
#include "resource.h"


//#define LOG_COMMS   // Uncomment this line to enable serial comm logging

// system_of_measurements
#define METRIC     0
#define IMPERIAL   1

// Display mode flags
#define FULL_SCREEN_MODE            0
#define WINDOWED_MODE               1
#define FULLSCREEN_MODE_SUPPORTED   2
#define WINDOWED_MODE_SUPPORTED     4
#define WINDOWED_MODE_SET           8

// Password for Datafiles (Tr. Code Definitions and Resources)
#define PASSWORD NULL

// Colors in the main palette
#define C_TRANSP       -1
#define C_BLACK         0
#define C_WHITE         1
#define C_RED           255
#define C_BLUE          254
#define C_GREEN         99
#define C_DARK_YELLOW   54
#define C_PURPLE        9
#define C_DARK_GRAY     126
#define C_GRAY          50
#define C_LIGHT_GRAY    55

//
int is_not_genuine_scan_tool;

// Options
int system_of_measurements;
int display_mode;

// File names
char *options_file_name;
char *data_file_name;
char *code_defs_file_name;
char log_file_name[20];
#ifdef LOG_COMMS
char comm_log_file_name[20];
#endif

void write_log(const char *log_string);

#ifdef LOG_COMMS
void write_comm_log(const char *marker, const char *data);
#endif

DATAFILE *datafile;

#endif