]> git.sur5r.net Git - cc65/commitdiff
Rename more stuff from "overlay" to "replace".
authorLaubzega <mileksmyk@gmail.com>
Thu, 6 Sep 2018 07:18:39 +0000 (00:18 -0700)
committerLaubzega <mileksmyk@gmail.com>
Thu, 6 Sep 2018 07:18:39 +0000 (00:18 -0700)
src/ld65/bin.c
src/ld65/config.c

index c94ac9319a5ea6fdbd4b841afb1000a3829b7936..6f0e4ab362e8d0cbd2a313cffa7817933886641b 100644 (file)
@@ -193,7 +193,7 @@ static void BinWriteMem (BinDesc* D, MemoryArea* M)
                     NewAddr += M->Start;
                 }
                 if (DoWrite || (M->Flags & MF_FILL) != 0) {
-                    /* Seek in "overlay" segments */
+                    /* Seek in "replace" segments */
                     if (S->Flags & SF_REPLACE) {
                         fseek (D->F, NewAddr - M->Start, SEEK_SET);
                     } else {
index 5c61bdd3f0e787a5cda45492d8fa60820eccec1d..0e4d0c1e4577745c9103f0b3341372cdb0e44b2d 100644 (file)
@@ -1797,7 +1797,7 @@ unsigned CfgProcess (void)
     for (I = 0; I < CollCount (&MemoryAreas); ++I) {
         unsigned J;
         unsigned long Addr;
-        unsigned Overlays = 0;
+        unsigned Replaces = 0;
 
         /* Get the next memory area */
         MemoryArea* M = CollAtUnchecked (&MemoryAreas, I);
@@ -1851,23 +1851,23 @@ unsigned CfgProcess (void)
             /* Remember the start address before handling this segment */
             unsigned long StartAddr = Addr;
 
-            /* Take note of overlayed segments and make sure there are no other
+            /* Take note of "replace" segments and make sure there are no other
             ** segment types following them in current memory region.
             */
             if (S->Flags & SF_REPLACE) {
                 if (S->Flags & (SF_OFFSET | SF_START)) {
-                    ++Overlays;
+                    ++Replaces;
                 } else {
                     CfgError (GetSourcePos (M->LI),
-                              "Segment `%s' of type `overlay' requires either"
+                              "Segment `%s' of type `replace' requires either"
                               " `Start' or `Offset' attribute to be specified",
                               GetString (S->Name));
                 }
             } else {
-                if (Overlays > 0) {
+                if (Replaces > 0) {
                     CfgError (GetSourcePos (M->LI),
                               "Segment `%s' is preceded by at least one segment"
-                              " of type `overlay'",
+                              " of type `replace'",
                               GetString (S->Name));
                 }
             }