mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
35 lines
994 B
C
35 lines
994 B
C
|
/* 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.
|
||
|
*/
|
||
|
void eval_global_info (struct ofmt *output, lfunc lookup_label);
|
||
|
|
||
|
/*
|
||
|
* Called to set the information the evaluator needs: the value of
|
||
|
* $ is set from `segment' and `offset' if `labelname' is NULL, and
|
||
|
* otherwise the name of the current line's label is set from
|
||
|
* `labelname' instead.
|
||
|
*/
|
||
|
void eval_info (char *labelname, long segment, long offset);
|
||
|
|
||
|
/*
|
||
|
* The evaluator itself.
|
||
|
*/
|
||
|
expr *evaluate (scanner sc, void *scprivate, struct tokenval *tv,
|
||
|
int *fwref, int critical, efunc report_error,
|
||
|
struct eval_hints *hints);
|
||
|
|
||
|
#endif
|