-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIFError.h
42 lines (33 loc) · 1.16 KB
/
IFError.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
//
// IFError.h
// Inform
//
// Created by Andrew Hunter on Mon Aug 18 2003.
// Copyright (c) 2003 Andrew Hunter. All rights reserved.
//
#ifndef __IFError_h
#define __IFError_h
//
// A flex source that scans Inform files for errors
//
typedef enum {
IFLexBase = 1,
IFLexCompilerVersion,
IFLexCompilerMessage,
IFLexCompilerWarning,
IFLexCompilerError,
IFLexCompilerFatalError,
IFLexAssembly,
IFLexHexDump,
IFLexStatistics,
IFLexProgress,
} IFLex;
extern int IFLexLastProgress;
extern char* IFLexLastProgressString;
extern int IFErrorScanString(const char* string); // Scans a string (presumably from the compiler) for anything that looks like an error
extern void IFErrorAddError (const char* file,
int line,
IFLex type, // Limited to Message, Warning or Error
const char* message); // (Defined in IFCompilerController.h - called whenever a new error is encountered)
extern void IFErrorCopyBlorbTo(const char* whereTo); // (Defined in IFCompilerController.h - called when cblorb asks for a new location to store its blorb file)
#endif