Make much more usage of dynamic strings (StrBufs) instead of char* and
friends. Since names and other strings are now StrBufs in many places, code for output had to be changed. Added support for string literals to StrBuf. git-svn-id: svn://svn.cc65.org/cc65/trunk@3825 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000-2003 Ullrich von Bassewitz */
|
||||
/* R<EFBFBD>merstrasse 52 */
|
||||
/* (C) 2000-2008 Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
@@ -38,19 +38,24 @@
|
||||
|
||||
|
||||
|
||||
/* common */
|
||||
#include "strbuf.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
const char* GetFileName (unsigned Name);
|
||||
const StrBuf* GetFileName (unsigned Name);
|
||||
/* Get the name of a file where the name index is known */
|
||||
|
||||
unsigned GetFileIndex (const char* Name);
|
||||
unsigned GetFileIndex (const StrBuf* Name);
|
||||
/* Return the file index for the given file name. */
|
||||
|
||||
unsigned AddFile (const char* Name, unsigned long Size, unsigned long MTime);
|
||||
unsigned AddFile (const StrBuf* Name, unsigned long Size, unsigned long MTime);
|
||||
/* Add a new file to the list of input files. Return the index of the file in
|
||||
* the table.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user