mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 00:32:08 +00:00
Filecount is now an u16
git-svn-id: svn://svn.cc65.org/cc65/trunk@257 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
ac8e170215
commit
6b3b938945
@ -38,8 +38,10 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "../common/xmalloc.h"
|
/* common */
|
||||||
|
#include "xmalloc.h"
|
||||||
|
|
||||||
|
/* ld65 */
|
||||||
#include "dbgsyms.h"
|
#include "dbgsyms.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "exports.h"
|
#include "exports.h"
|
||||||
@ -105,7 +107,7 @@ void ObjReadFiles (FILE* F, ObjData* O)
|
|||||||
{
|
{
|
||||||
unsigned I;
|
unsigned I;
|
||||||
|
|
||||||
O->FileCount = Read8 (F);
|
O->FileCount = Read16 (F);
|
||||||
O->Files = xmalloc (O->FileCount * sizeof (char*));
|
O->Files = xmalloc (O->FileCount * sizeof (char*));
|
||||||
for (I = 0; I < O->FileCount; ++I) {
|
for (I = 0; I < O->FileCount; ++I) {
|
||||||
/* Skip MTime and size */
|
/* Skip MTime and size */
|
||||||
|
@ -361,7 +361,7 @@ void DumpObjFiles (FILE* F, unsigned long Offset)
|
|||||||
printf (" Files:\n");
|
printf (" Files:\n");
|
||||||
|
|
||||||
/* Read the number of files and print it */
|
/* Read the number of files and print it */
|
||||||
Count = Read8 (F);
|
Count = Read16 (F);
|
||||||
printf (" Count:%27u\n", Count);
|
printf (" Count:%27u\n", Count);
|
||||||
|
|
||||||
/* Read and print all files */
|
/* Read and print all files */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user