Remove trailing whitespace

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-02 17:46:07 +01:00
parent f63339472e
commit e50e3e5a23
17 changed files with 219 additions and 220 deletions

View File

@@ -63,7 +63,7 @@ ensureSectionTypeIsValid(enum eSectionType type)
}
}
SLONG
SLONG
area_Avail(SLONG bank)
{
SLONG r;
@@ -554,7 +554,7 @@ AssignSections(void)
}
}
void
void
CreateSymbolTable(void)
{
struct sSection *pSect;

View File

@@ -7,7 +7,7 @@
#include "link/mylink.h"
#include "link/main.h"
static BBOOL
static BBOOL
symboldefined(char *name)
{
struct sSection *pSect;
@@ -31,7 +31,7 @@ symboldefined(char *name)
return (0);
}
static BBOOL
static BBOOL
addmodulecontaining(char *name)
{
struct sSection **ppLSect;
@@ -66,7 +66,7 @@ addmodulecontaining(char *name)
return (0);
}
void
void
AddNeededModules(void)
{
struct sSection *pSect;

View File

@@ -13,7 +13,7 @@ FILE *sf = NULL;
SLONG currentbank = 0;
SLONG sfbank;
void
void
SetMapfileName(char *name)
{
mf = fopen(name, "w");
@@ -23,7 +23,7 @@ SetMapfileName(char *name)
}
}
void
void
SetSymfileName(char *name)
{
sf = fopen(name, "w");
@@ -35,7 +35,7 @@ SetSymfileName(char *name)
fprintf(sf, ";File generated by rgblink\n\n");
}
void
void
CloseMapfile(void)
{
if (mf) {
@@ -48,7 +48,7 @@ CloseMapfile(void)
}
}
void
void
MapfileInitBank(SLONG bank)
{
if (mf) {
@@ -90,7 +90,7 @@ MapfileInitBank(SLONG bank)
}
}
void
void
MapfileWriteSection(struct sSection * pSect)
{
SLONG i;
@@ -125,7 +125,7 @@ MapfileWriteSection(struct sSection * pSect)
}
}
void
void
MapfileCloseBank(SLONG slack)
{
if (!mf)

View File

@@ -29,7 +29,7 @@ enum ObjectFileContents {
*
*/
SLONG
SLONG
readlong(FILE * f)
{
SLONG r;
@@ -42,7 +42,7 @@ readlong(FILE * f)
return (r);
}
UWORD
UWORD
readword(FILE * f)
{
UWORD r;
@@ -224,7 +224,7 @@ obj_ReadRGB0Section(FILE * f)
return pSection;
}
void
void
obj_ReadRGB0(FILE * pObjfile)
{
struct sSection *pFirstSection;
@@ -375,7 +375,7 @@ obj_ReadRGBSection(FILE * f, enum ObjectFileContents contents)
return pSection;
}
void
void
obj_ReadRGB(FILE * pObjfile, enum ObjectFileContents contents)
{
struct sSection *pFirstSection;
@@ -435,7 +435,7 @@ obj_ReadRGB(FILE * pObjfile, enum ObjectFileContents contents)
*
*/
void
void
obj_ReadOpenFile(FILE * pObjfile, char *tzObjectfile)
{
char tzHeader[8];
@@ -464,7 +464,7 @@ obj_ReadOpenFile(FILE * pObjfile, char *tzObjectfile)
}
}
void
void
obj_Readfile(char *tzObjectfile)
{
FILE *pObjfile;
@@ -484,7 +484,7 @@ obj_Readfile(char *tzObjectfile)
oReadLib = 0;
}
SLONG
SLONG
file_Length(FILE * f)
{
ULONG r, p;
@@ -497,7 +497,7 @@ file_Length(FILE * f)
return (r);
}
void
void
lib_ReadXLB0(FILE * f)
{
SLONG size;

View File

@@ -12,7 +12,7 @@ char *tzOverlayname = NULL;
SLONG MaxOverlayBank;
void
void
writehome(FILE * f, FILE * f_overlay)
{
struct sSection *pSect;
@@ -46,7 +46,7 @@ writehome(FILE * f, FILE * f_overlay)
free(mem);
}
void
void
writebank(FILE * f, FILE * f_overlay, SLONG bank)
{
struct sSection *pSect;
@@ -80,20 +80,20 @@ writebank(FILE * f, FILE * f_overlay, SLONG bank)
free(mem);
}
void
void
out_Setname(char *tzOutputfile)
{
tzOutname = tzOutputfile;
}
void
void
out_SetOverlayname(char *tzOverlayfile)
{
tzOverlayname = tzOverlayfile;
}
void
void
Output(void)
{
SLONG i;

View File

@@ -13,19 +13,19 @@ SLONG rpnstack[256];
SLONG rpnp;
SLONG nPC;
void
void
rpnpush(SLONG i)
{
rpnstack[rpnp++] = i;
}
SLONG
SLONG
rpnpop(void)
{
return (rpnstack[--rpnp]);
}
SLONG
SLONG
getsymvalue(SLONG symid)
{
switch (pCurrentSection->tSymbols[symid]->Type) {
@@ -51,7 +51,7 @@ getsymvalue(SLONG symid)
errx(1, "*INTERNAL* UNKNOWN SYMBOL TYPE");
}
SLONG
SLONG
getsymbank(SLONG symid)
{
SLONG nBank;
@@ -79,7 +79,7 @@ getsymbank(SLONG symid)
return nBank;
}
SLONG
SLONG
calcrpn(struct sPatch * pPatch)
{
SLONG t, size;
@@ -231,7 +231,7 @@ calcrpn(struct sPatch * pPatch)
return (rpnpop());
}
void
void
Patch(void)
{
struct sSection *pSect;

View File

@@ -19,7 +19,7 @@ struct ISymbol {
struct ISymbol *tHash[HASHSIZE];
SLONG
SLONG
calchash(char *s)
{
SLONG r = 0;
@@ -29,7 +29,7 @@ calchash(char *s)
return (r % HASHSIZE);
}
void
void
sym_Init(void)
{
SLONG i;
@@ -37,7 +37,7 @@ sym_Init(void)
tHash[i] = NULL;
}
SLONG
SLONG
sym_GetValue(char *tzName)
{
if (strcmp(tzName, "@") == 0) {
@@ -58,7 +58,7 @@ sym_GetValue(char *tzName)
}
}
SLONG
SLONG
sym_GetBank(char *tzName)
{
struct ISymbol **ppSym;
@@ -75,7 +75,7 @@ sym_GetBank(char *tzName)
errx(1, "Unknown symbol '%s'", tzName);
}
void
void
sym_CreateSymbol(char *tzName, SLONG nValue, SLONG nBank)
{
if (strcmp(tzName, "@") == 0)