-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathprint_error.h
50 lines (40 loc) · 1.36 KB
/
print_error.h
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
/**
* naken_asm assembler.
* Author: Michael Kohn
* Email: [email protected]
* Web: https://www.mikekohn.net/
* License: GPLv3
*
* Copyright 2010-2023 by Michael Kohn
*
*/
#ifndef NAKEN_ASM_PRINT_ERROR_H
#define NAKEN_ASM_PRINT_ERROR_H
void print_error(AsmContext *asm_context, const char *s);
void print_warning(AsmContext *asm_context, const char *s);
void print_error_unexp(AsmContext *asm_context, const char *s);
void print_error_expecting(
AsmContext *asm_context,
const char *wanted,
const char *got);
void print_error_unknown_instr(AsmContext *asm_context, const char *instr);
void print_error_opcount(AsmContext *asm_context, const char *instr);
void print_error_illegal_operands(AsmContext *asm_context, const char *instr);
void print_error_illegal_expression(AsmContext *asm_context, const char *instr);
void print_error_illegal_register(AsmContext *asm_context, const char *instr);
void print_error_range(
AsmContext *asm_context,
const char *s,
int64_t r1,
int64_t r2);
void print_error_unknown_operand_combo(
AsmContext *asm_context,
const char *instr);
void print_error_internal(
AsmContext *asm_context,
const char *filename,
int line);
void print_already_defined(AsmContext *asm_context, char *name);
void print_not_defined(AsmContext *asm_context, char *name);
void print_error_align(AsmContext *asm_context, int align);
#endif