2002-05-01 04:51:32 +08: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 licence given in the file "Licence"
|
|
|
|
* distributed in the NASM archive.
|
|
|
|
*/
|
|
|
|
|
2002-05-01 05:00:33 +08:00
|
|
|
extern char lprefix[PREFIX_MAX];
|
|
|
|
extern char lpostfix[PREFIX_MAX];
|
|
|
|
|
2002-05-01 04:51:32 +08:00
|
|
|
int lookup_label (char *label, long *segment, long *offset);
|
2002-05-01 04:52:49 +08:00
|
|
|
int is_extern (char *label);
|
|
|
|
void define_label (char *label, long segment, long offset, char *special,
|
|
|
|
int is_norm, int isextrn, struct ofmt *ofmt, efunc error);
|
2002-05-01 04:53:55 +08:00
|
|
|
void redefine_label (char *label, long segment, long offset, char *special,
|
|
|
|
int is_norm, int isextrn, struct ofmt *ofmt, efunc error);
|
2002-05-01 04:52:49 +08:00
|
|
|
void define_common (char *label, long segment, long size, char *special,
|
2002-05-01 04:51:32 +08:00
|
|
|
struct ofmt *ofmt, efunc error);
|
2002-05-01 04:52:49 +08:00
|
|
|
void declare_as_global (char *label, char *special, efunc error);
|
2002-05-01 04:51:32 +08:00
|
|
|
int init_labels (void);
|
|
|
|
void cleanup_labels (void);
|