H. Peter Anvin | 76690a1 | 2002-04-30 20:52:49 +0000 | [diff] [blame] | 1 | /* eval.h header file for eval.c |
| 2 | * |
| 3 | * The Netwide Assembler is copyright (C) 1996 Simon Tatham and |
| 4 | * Julian Hall. All rights reserved. The software is |
| 5 | * redistributable under the licence given in the file "Licence" |
| 6 | * distributed in the NASM archive. |
| 7 | */ |
| 8 | |
| 9 | #ifndef NASM_EVAL_H |
| 10 | #define NASM_EVAL_H |
| 11 | |
| 12 | /* |
| 13 | * Called once to tell the evaluator what output format is |
| 14 | * providing segment-base details, and what function can be used to |
| 15 | * look labels up. |
| 16 | */ |
H. Peter Anvin | e2c8018 | 2005-01-15 22:15:51 +0000 | [diff] [blame] | 17 | void eval_global_info(struct ofmt *output, lfunc lookup_label, |
H. Peter Anvin | 12e4651 | 2007-10-03 21:30:57 -0700 | [diff] [blame^] | 18 | struct location * locp); |
H. Peter Anvin | 76690a1 | 2002-04-30 20:52:49 +0000 | [diff] [blame] | 19 | |
| 20 | /* |
| 21 | * The evaluator itself. |
| 22 | */ |
H. Peter Anvin | e2c8018 | 2005-01-15 22:15:51 +0000 | [diff] [blame] | 23 | expr *evaluate(scanner sc, void *scprivate, struct tokenval *tv, |
| 24 | int *fwref, int critical, efunc report_error, |
| 25 | struct eval_hints *hints); |
H. Peter Anvin | 76690a1 | 2002-04-30 20:52:49 +0000 | [diff] [blame] | 26 | |
H. Peter Anvin | eba20a7 | 2002-04-30 20:53:55 +0000 | [diff] [blame] | 27 | void eval_cleanup(void); |
| 28 | |
H. Peter Anvin | 76690a1 | 2002-04-30 20:52:49 +0000 | [diff] [blame] | 29 | #endif |