Removed an unused function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4361 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-10-11 15:10:55 +00:00
parent c221b3c8cf
commit 583b9f8fcc

View File

@@ -6,10 +6,10 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2000-2004 Ullrich von Bassewitz */ /* (C) 2000-2009, Ullrich von Bassewitz */
/* R<EFBFBD>merstrasse 52 */ /* Roemerstrasse 52 */
/* D-70794 Filderstadt */ /* D-70794 Filderstadt */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@@ -401,19 +401,6 @@ StrBuf* InitLine (StrBuf* Buf)
void PushLine (const StrBuf* Buf)
/* Push a copy of Buf onto the input stack */
{
CollAppend (&InputStack, Line);
Line = NewStrBuf ();
SB_Copy (Line, Buf);
/* Make CurC and NextC valid */
GetInputChar ();
}
int NextLine (void) int NextLine (void)
/* Get a line from the current input. Returns 0 on end of file. */ /* Get a line from the current input. Returns 0 on end of file. */
{ {
@@ -424,7 +411,7 @@ int NextLine (void)
/* If there is no file open, bail out, otherwise get the current input file */ /* If there is no file open, bail out, otherwise get the current input file */
if (CollCount (&AFiles) == 0) { if (CollCount (&AFiles) == 0) {
return 0; return 0;
} }
Input = CollLast (&AFiles); Input = CollLast (&AFiles);
@@ -507,17 +494,17 @@ const char* GetCurrentFile (void)
{ {
unsigned AFileCount = CollCount (&AFiles); unsigned AFileCount = CollCount (&AFiles);
if (AFileCount > 0) { if (AFileCount > 0) {
const AFile* AF = (const AFile*) CollAt (&AFiles, AFileCount-1); const AFile* AF = (const AFile*) CollAt (&AFiles, AFileCount-1);
return AF->Input->Name; return AF->Input->Name;
} else { } else {
/* No open file. Use the main file if we have one. */ /* No open file. Use the main file if we have one. */
unsigned IFileCount = CollCount (&IFiles); unsigned IFileCount = CollCount (&IFiles);
if (IFileCount > 0) { if (IFileCount > 0) {
const IFile* IF = (const IFile*) CollAt (&IFiles, 0); const IFile* IF = (const IFile*) CollAt (&IFiles, 0);
return IF->Name; return IF->Name;
} else { } else {
return "(outside file scope)"; return "(outside file scope)";
} }
} }
} }
@@ -528,11 +515,11 @@ unsigned GetCurrentLine (void)
{ {
unsigned AFileCount = CollCount (&AFiles); unsigned AFileCount = CollCount (&AFiles);
if (AFileCount > 0) { if (AFileCount > 0) {
const AFile* AF = (const AFile*) CollAt (&AFiles, AFileCount-1); const AFile* AF = (const AFile*) CollAt (&AFiles, AFileCount-1);
return AF->Line; return AF->Line;
} else { } else {
/* No open file */ /* No open file */
return 0; return 0;
} }
} }