nasm/eval.h

30 lines
790 B
C
Raw Normal View History

2002-05-01 04:52:49 +08:00
/* eval.h header file for eval.c
*
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
* Julian Hall. All rights reserved. The software is
* redistributable under the licence given in the file "Licence"
* distributed in the NASM archive.
*/
#ifndef NASM_EVAL_H
#define NASM_EVAL_H
/*
* Called once to tell the evaluator what output format is
* providing segment-base details, and what function can be used to
* look labels up.
*/
2005-01-16 06:15:51 +08:00
void eval_global_info(struct ofmt *output, lfunc lookup_label,
loc_t * locp);
2002-05-01 04:52:49 +08:00
/*
* The evaluator itself.
*/
2005-01-16 06:15:51 +08:00
expr *evaluate(scanner sc, void *scprivate, struct tokenval *tv,
int *fwref, int critical, efunc report_error,
struct eval_hints *hints);
2002-05-01 04:52:49 +08:00
2002-05-01 04:53:55 +08:00
void eval_cleanup(void);
2002-05-01 04:52:49 +08:00
#endif