changeset 1681:bd68c9adc7ca

Rename some constants.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 31 May 2018 13:46:23 +0300
parents dbffbd333a16
children 2cfb4806cf71
files tools/objlink.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tools/objlink.c	Thu May 31 13:32:26 2018 +0300
+++ b/tools/objlink.c	Thu May 31 13:46:23 2018 +0300
@@ -10,8 +10,8 @@
 #include "dmargs.h"
 #include "dmfile.h"
 
-#define MAX_FILENAMES    (128)
-#define MAX_MEMBLOCKS    (128)
+#define SET_MAX_FILENAMES    (128)
+#define SET_MAX_MEMBLOCKS    (128)
 
 
 /* Typedefs
@@ -30,7 +30,7 @@
     char *desc;
     int size;        // Total addressable memory size
     int nmemBlocks;  // Defined memory areas
-    DMMemBlock memBlocks[MAX_MEMBLOCKS];
+    DMMemBlock memBlocks[SET_MAX_MEMBLOCKS];
 } DMMemModel;
 
 typedef struct
@@ -120,10 +120,10 @@
 /* Global variables
  */
 int           nsrcFiles = 0;              // Number of source files
-DMSourceFile  srcFiles[MAX_FILENAMES];    // Source file names
+DMSourceFile  srcFiles[SET_MAX_FILENAMES];    // Source file names
 
 int        nmemBlocks = 0;
-DMMemBlock memBlocks[MAX_FILENAMES];
+DMMemBlock memBlocks[SET_MAX_FILENAMES];
 
 char       *optLinkFileName = NULL;
 int        optLinkFileFormat = FMT_GENERIC;
@@ -209,7 +209,7 @@
         return FALSE;
     }
 
-    if (nmemBlocks < MAX_FILENAMES)
+    if (nmemBlocks < SET_MAX_FILENAMES)
     {
         memBlocks[nmemBlocks].start = startAddr;
         memBlocks[nmemBlocks].end   = endAddr;
@@ -221,7 +221,7 @@
     else
     {
         dmErrorMsg("Maximum number of memBlock definitions (%d) exceeded!\n",
-            MAX_FILENAMES);
+            SET_MAX_FILENAMES);
         return FALSE;
     }
 }