Replace ULONG by uint32_t

All affected `printf` have been fixed.

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-12-31 14:16:36 +01:00
parent 87c9d819a1
commit ba944527ec
24 changed files with 231 additions and 244 deletions

View File

@@ -22,11 +22,14 @@
#include <unistd.h>
#include "extern/err.h"
#include "link/mylink.h"
#include "link/script.h"
#include "parser.h"
#include "types.h"
extern int yyparse();
/* File include stack. */

View File

@@ -4,7 +4,6 @@
#include <string.h>
#include "extern/err.h"
#include "types.h"
#include "link/mylink.h"
#include "link/main.h"

View File

@@ -384,7 +384,7 @@ obj_Readfile(char *tzObjectfile)
int32_t
file_Length(FILE * f)
{
ULONG r, p;
uint32_t r, p;
p = ftell(f);
fseek(f, 0, SEEK_END);

View File

@@ -4,8 +4,10 @@
#include <string.h>
#include "extern/err.h"
#include "link/main.h"
#include "link/patch.h"
#include "types.h"
#define HASHSIZE 73
@@ -16,7 +18,7 @@ struct ISymbol {
int32_t nBank; /* -1 = constant */
char tzObjFileName[_MAX_PATH + 1]; /* Object file where the symbol was defined. */
char tzFileName[_MAX_PATH + 1]; /* Source file where the symbol was defined. */
ULONG nFileLine; /* Line where the symbol was defined. */
uint32_t nFileLine; /* Line where the symbol was defined. */
struct ISymbol *pNext;
};
@@ -80,7 +82,7 @@ sym_GetBank(char *tzName)
void
sym_CreateSymbol(char *tzName, int32_t nValue, int32_t nBank, char *tzObjFileName,
char *tzFileName, ULONG nFileLine)
char *tzFileName, uint32_t nFileLine)
{
if (strcmp(tzName, "@") == 0)
return;