Added a method to write variable sized unsigned values. Use this method for
all sorts of things in the object files. This does not only make the object files smaller, but does also remove several limits (strings may be longer than 255 bytes, several counters no longer have 8 or 16 bit limits). git-svn-id: svn://svn.cc65.org/cc65/trunk@260 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -57,6 +57,9 @@ void Write16 (FILE* F, unsigned Val);
|
||||
void Write32 (FILE* F, unsigned long Val);
|
||||
/* Write a 32 bit value to the file */
|
||||
|
||||
void WriteVar (FILE* F, unsigned long V);
|
||||
/* Write a variable sized value to the file in special encoding */
|
||||
|
||||
void WriteStr (FILE* F, const char* S);
|
||||
/* Write a string to the file */
|
||||
|
||||
@@ -72,6 +75,9 @@ unsigned Read16 (FILE* F);
|
||||
unsigned long Read32 (FILE* F);
|
||||
/* Read a 32 bit value from the file */
|
||||
|
||||
unsigned long ReadVar (FILE* F);
|
||||
/* Read a variable size value from the file */
|
||||
|
||||
char* ReadStr (FILE* F);
|
||||
/* Read a string from the file (the memory will be malloc'ed) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user