summaryrefslogtreecommitdiff
path: root/i_validation.h
blob: 52e7c5131e2e48ddf010eff95cfd616a5b5427da (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
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "7ed.h"
#include <stdint.h>

#define _PLUS_ONLY _VALID
#define _PLUS_CONTINUE 2
#define _PLUS_NOTHING _VALID
#define _IMM_NUMBER 4
#define _IMM_NOTHING _VALID
#define _CONTINUE 6
#define _NA 7
#define MODE_L 76
#define MODE_N 78

int validate_imm_numbers(char *smode_buf);

int validate_check_p_m(char *smode_buf, int mode);

int validate_check_imm(char *smode_buf);

int validate_plus_continue(char *smode_buf);

int validate_LN(char *smode_buf, int mode);