1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 06:28:57 +00:00

Since there is now line info with type ASM and a count not equal to zero, the

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
This commit is contained in:
uz 2012-11-04 12:58:17 +00:00
parent 4a41865898
commit d825bbde06
2 changed files with 8 additions and 8 deletions

View 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;
}
}

View 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)