nasm/labels.h

31 lines
1.1 KiB
C
Raw Normal View History

2002-04-30 20:51:32 +00:00
/* labels.h header file for labels.c
*
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
* Julian Hall. All rights reserved. The software is
* redistributable under the license given in the file "LICENSE"
2002-04-30 20:51:32 +00:00
* distributed in the NASM archive.
*/
#ifndef LABELS_H
#define LABELS_H
extern char lprefix[PREFIX_MAX];
extern char lpostfix[PREFIX_MAX];
2002-04-30 21:00:33 +00:00
2007-11-06 01:19:32 +00:00
bool lookup_label(char *label, int32_t *segment, int64_t *offset);
bool is_extern(char *label);
2007-11-06 01:19:32 +00:00
void define_label(char *label, int32_t segment, int64_t offset, char *special,
bool is_norm, bool isextrn, struct ofmt *ofmt,
2005-01-15 22:15:51 +00:00
efunc error);
2007-11-06 01:19:32 +00:00
void redefine_label(char *label, int32_t segment, int64_t offset, char *special,
bool is_norm, bool isextrn, struct ofmt *ofmt,
2005-01-15 22:15:51 +00:00
efunc error);
void define_common(char *label, int32_t segment, int32_t size, char *special,
2005-01-15 22:15:51 +00:00
struct ofmt *ofmt, efunc error);
void declare_as_global(char *label, char *special, efunc error);
2005-01-15 22:15:51 +00:00
int init_labels(void);
void cleanup_labels(void);
char *local_scope(char *label);
#endif /* LABELS_H */