summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nasm.h13
-rw-r--r--nasmlib.h10
2 files changed, 10 insertions, 13 deletions
diff --git a/nasm.h b/nasm.h
index 2c96a4c4..9cfd77e5 100644
--- a/nasm.h
+++ b/nasm.h
@@ -963,19 +963,6 @@ enum special_tokens {
/*
* -----
- * Other
- * -----
- */
-
-/*
- * This is a useful #define which I keep meaning to use more often:
- * the number of elements of a statically defined array.
- */
-
-#define elements(x) ( sizeof(x) / sizeof(*(x)) )
-
-/*
- * -----
* Global modes
* -----
*/
diff --git a/nasmlib.h b/nasmlib.h
index aed490e8..560ec1e0 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -163,6 +163,16 @@ void standard_extension(char *inname, char *outname, char *extension,
#endif
/*
+ * Utility macros...
+ *
+ * This is a useful #define which I keep meaning to use more often:
+ * the number of elements of a statically defined array.
+ */
+
+#define elements(x) ( sizeof(x) / sizeof(*(x)) )
+
+
+/*
* some handy macros that will probably be of use in more than one
* output format: convert integers into little-endian byte packed
* format in memory