-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.h
More file actions
23 lines (19 loc) · 812 Bytes
/
Copy patherrors.h
File metadata and controls
23 lines (19 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef ERRORS_H
#define ERRORS_H
/* constants */
#define ALPHABET 26
#define ASCII_A 65
/* error codes */
#define INSUFFICIENT_NUMBER_OF_PARAMETERS 1
#define INVALID_INPUT_CHARACTER 2
#define INVALID_INDEX 3
#define NON_NUMERIC_CHARACTER 4
#define IMPOSSIBLE_PLUGBOARD_CONFIGURATION 5
#define INCORRECT_NUMBER_OF_PLUGBOARD_PARAMETERS 6
#define INVALID_ROTOR_MAPPING 7
#define NO_ROTOR_STARTING_POSITION 8
#define INVALID_REFLECTOR_MAPPING 9
#define INCORRECT_NUMBER_OF_REFLECTOR_PARAMETERS 10
#define ERROR_OPENING_CONFIGURATION_FILE 11
#define NO_ERROR 0
#endif