Source file: /~heha/hs/gputils64-210929.zip/gpasm/evaluate.h

/* evaluates variables
   Copyright 2002-2005	Craig Franklin
*/

#pragma once

#include "stdhdr.h"

EXTERN_C bool eval_enforce_arity(int Arity, int Must_be);
EXTERN_C bool eval_enforce_simple(const struct pnode_t *Pnode);
EXTERN_C int eval_list_length(const struct pnode_t *List);

EXTERN_C bool eval_can_evaluate(const struct pnode_t *Pnode);
EXTERN_C bool eval_can_evaluate_value(const struct pnode_t *Pnode);
EXTERN_C gpasmVal eval_evaluate(const struct pnode_t *Pnode);
EXTERN_C gpasmVal eval_maybe_evaluate(const struct pnode_t *Pnode);

EXTERN_C int eval_count_reloc(const struct pnode_t *Pnode);
EXTERN_C gpasmVal eval_reloc_evaluate(const struct pnode_t *Pnode, uint16_t Type,
                                    bool *Is_reloc, gpasmVal *Reloc_value, bool Add_coff);

EXTERN_C int eval_fill_number(const struct pnode_t *Pnode);

Detected encoding: UTF-80