blob: a933cbfd0a69dd3022fc16d8165a91e03ec2e9fe [file] [log] [blame]
H. Peter Anvin76690a12002-04-30 20:52:49 +00001/* 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 Anvineba20a72002-04-30 20:53:55 +000017void eval_global_info (struct ofmt *output, lfunc lookup_label, loc_t *locp);
H. Peter Anvin76690a12002-04-30 20:52:49 +000018
19/*
20 * The evaluator itself.
21 */
22expr *evaluate (scanner sc, void *scprivate, struct tokenval *tv,
23 int *fwref, int critical, efunc report_error,
24 struct eval_hints *hints);
25
H. Peter Anvineba20a72002-04-30 20:53:55 +000026void eval_cleanup(void);
27
H. Peter Anvin76690a12002-04-30 20:52:49 +000028#endif