]> git.sur5r.net Git - cc65/commitdiff
Since there is now line info with type ASM and a count not equal to zero, the
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 4 Nov 2012 12:58:17 +0000 (12:58 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 4 Nov 2012 12:58:17 +0000 (12:58 +0000)
search for the toplevel line info had to be changed slightly.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5906 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/lineinfo.c
src/ld65/lineinfo.h

index 3e7817803607e9e2355db77fc81705d83aa6974b..3ff8491c607aaef92a2faec390c01b0a96da1d67 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001-2011, Ullrich von Bassewitz                                      */
+/* (C) 2001-2012, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -89,7 +89,7 @@ void FreeLineInfo (LineInfo* LI)
 
 LineInfo* DupLineInfo (const LineInfo* LI)
 /* Creates a duplicate of a line info structure */
-{                              
+{
     /* Allocate memory */
     LineInfo* New = xmalloc (sizeof (LineInfo));
 
@@ -176,8 +176,8 @@ void ReadLineInfoList (FILE* F, ObjData* O, Collection* LineInfos)
 
 
 const LineInfo* GetAsmLineInfo (const Collection* LineInfos)
-/* Find a line info of type LI_TYPE_ASM in the given collection and return it.
- * Return NULL if no such line info was found.
+/* Find a line info of type LI_TYPE_ASM and count zero in the given collection
+ * and return it. Return NULL if no such line info was found.
  */
 {
     unsigned I;
@@ -185,7 +185,7 @@ const LineInfo* GetAsmLineInfo (const Collection* LineInfos)
     /* Search for a line info of LI_TYPE_ASM */
     for (I = 0; I < CollCount (LineInfos); ++I) {
         const LineInfo* LI = CollConstAt (LineInfos, I);
-        if (LI_GET_TYPE (LI->Type) == LI_TYPE_ASM) {
+        if (LI->Type == LI_MAKE_TYPE (LI_TYPE_ASM, 0)) {
             return LI;
         }
     }
index d9f2cf691b53e237db37f266fdf97f43d61291f2..c965b2d67035548c6b320b6690a3c4f1e8b2f688 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001-2011, Ullrich von Bassewitz                                      */
+/* (C) 2001-2012, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -106,8 +106,8 @@ void ReadLineInfoList (FILE* F, struct ObjData* O, Collection* LineInfos);
  */
 
 const LineInfo* GetAsmLineInfo (const Collection* LineInfos);
-/* Find a line info of type LI_TYPE_ASM in the given collection and return it.
- * Return NULL if no such line info was found.
+/* Find a line info of type LI_TYPE_ASM and count zero in the given collection
+ * and return it. Return NULL if no such line info was found.
  */
 
 #if defined(HAVE_INLINE)