summaryrefslogtreecommitdiff
path: root/asm/labels.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-03-07 19:44:21 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2017-03-07 19:44:21 -0800
commit9c595b6bb40487da41068bef43e0526a1f07f618 (patch)
treebcb8bdd4f42eb79bb0cebc7a0efeab2ba41673c6 /asm/labels.c
parente28d5ea5d77c0f267b97fc54d0f40bf59fd5a202 (diff)
downloadnasm-9c595b6bb40487da41068bef43e0526a1f07f618.tar.gz
Fix global variables without declarations
Global variables need to be declared in a header file; "extern" in C files should be used extremely rarely (it is OK at least for now for macro tables as they are generally only ever used in one specific location, but otherwise, no.) In a few cases the global variables were actually function-local! Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'asm/labels.c')
-rw-r--r--asm/labels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/labels.c b/asm/labels.c
index 132b6e00..cf9acdd1 100644
--- a/asm/labels.c
+++ b/asm/labels.c
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 1996-2016 The NASM Authors - All Rights Reserved
+ * Copyright 1996-2017 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -108,7 +108,7 @@ struct permts { /* permanent text storage */
char data[PERMTS_SIZE]; /* ... the data block itself */
};
-extern int64_t global_offset_changed; /* defined in nasm.c */
+uint64_t global_offset_changed; /* counter for global offset changes */
static struct hash_table ltab; /* labels hash table */
static union label *ldata; /* all label data blocks */