summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-19 14:42:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-19 14:42:29 -0700
commit7065309739ef398af07e470469f1ae6f0580200c (patch)
treea8d6e0e99b14899193014a87e80f013606a0d504 /rdoff
parent31420e76d1e333825df39964888089181ccf8129 (diff)
downloadnasm-7065309739ef398af07e470469f1ae6f0580200c.tar.gz
nasm-7065309739ef398af07e470469f1ae6f0580200c.tar.bz2
nasm-7065309739ef398af07e470469f1ae6f0580200c.zip
Formatting: kill off "stealth whitespace"
"Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/ldrdf.c10
-rw-r--r--rdoff/ldsegs.h2
-rw-r--r--rdoff/rdflib.c2
-rw-r--r--rdoff/rdlib.c4
-rw-r--r--rdoff/rdoff.c6
-rw-r--r--rdoff/rdoff.h4
-rw-r--r--rdoff/segtab.c2
7 files changed, 15 insertions, 15 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c
index cd07fe7..ece8c3f 100644
--- a/rdoff/ldrdf.c
+++ b/rdoff/ldrdf.c
@@ -47,7 +47,7 @@
*/
struct segment_infonode {
- int dest_seg; /* output segment to be placed into, -1 to
+ int dest_seg; /* output segment to be placed into, -1 to
skip linking this segment */
int32_t reloc; /* segment's relocation factor */
};
@@ -109,7 +109,7 @@ rdf_headerbuf *newheader = NULL;
/* The current state of segment allocation, including information about
* which output segment numbers have been allocated, and their types and
- * amount of data which has already been allocated inside them.
+ * amount of data which has already been allocated inside them.
*/
struct SegmentHeaderRec outputseg[RDF_MAXSEGS];
int nsegs = 0;
@@ -188,7 +188,7 @@ void loadmodule(const char *filename)
exit(1);
}
- /*
+ /*
* store information about the module, and determine what segments
* it contains, and what we should do with them (determine relocation
* factor if we decide to keep them)
@@ -860,7 +860,7 @@ void write_output(const char *filename)
break;
}
- /*
+ /*
* okay, now the relocation is in the segment pointed to by
* cur->seginfo[localseg], and we know everything else is
* okay to go ahead and do the relocation
@@ -926,7 +926,7 @@ void write_output(const char *filename)
case RDFREC_FARIMPORT:
/*
* scan the global symbol table for the symbol
- * and associate its location with the segment number
+ * and associate its location with the segment number
* for this module
*/
se = symtabFind(symtab, hr->i.label);
diff --git a/rdoff/ldsegs.h b/rdoff/ldsegs.h
index 7050376..fcecdf6 100644
--- a/rdoff/ldsegs.h
+++ b/rdoff/ldsegs.h
@@ -38,7 +38,7 @@ struct segconfig sconft[SEGCONFIGMAX] = {
{0xFFFF, 0xFFFF, "invalid segment", 0, 0}
};
-#define getsegconfig(target,number) \
+#define getsegconfig(target,number) \
{ \
int _i; \
int _t = number; \
diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c
index b4bf6d6..852920e 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -15,7 +15,7 @@
* The format of the directory will be 'RDLDD' followed by a version
* number, followed by the length of the directory, and then the
* directory, the format of which has not yet been designed.
- * The module name of the directory must be '.dir'.
+ * The module name of the directory must be '.dir'.
*
* All module names beginning with '.' are reserved for possible future
* extensions. The linker ignores all such modules, assuming they have
diff --git a/rdoff/rdlib.c b/rdoff/rdlib.c
index a6ae156..885752d 100644
--- a/rdoff/rdlib.c
+++ b/rdoff/rdlib.c
@@ -119,8 +119,8 @@ int rdl_searchlib(struct librarynode *lib, const char *label, rdffile * f)
rewind(lib->fp);
while (!feof(lib->fp)) {
- /*
- * read the module name from the file, and prepend
+ /*
+ * read the module name from the file, and prepend
* the library name and '.' to it.
*/
strcpy(buf, lib->name);
diff --git a/rdoff/rdoff.c b/rdoff/rdoff.c
index 2539499..8201c72 100644
--- a/rdoff/rdoff.c
+++ b/rdoff/rdoff.c
@@ -1,4 +1,4 @@
-/* rdoff.c library of routines for manipulating rdoff files
+/* rdoff.c library of routines for manipulating rdoff files
*
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
* Julian Hall. All rights reserved. The software is
@@ -135,10 +135,10 @@ void freemembuf(memorybuffer * b)
General purpose routines and variables used by the library functions
========================================================================= */
-/*
+/*
* translateint32_t() and translateint16_t()
*
- * translate from little endian to local representation
+ * translate from little endian to local representation
*/
int32_t translateint32_t(int32_t in)
{
diff --git a/rdoff/rdoff.h b/rdoff/rdoff.h
index dc23f2b..88efd10 100644
--- a/rdoff/rdoff.h
+++ b/rdoff/rdoff.h
@@ -48,7 +48,7 @@
#define RDFREC_MODNAME 8
#define RDFREC_COMMON 10
-/*
+/*
* Generic record - contains the type and length field, plus a 128 byte
* array 'data'
*/
@@ -58,7 +58,7 @@ struct GenericRec {
char data[128];
};
-/*
+/*
* Relocation record
*/
struct RelocRec {
diff --git a/rdoff/segtab.c b/rdoff/segtab.c
index e1a3ddf..693094e 100644
--- a/rdoff/segtab.c
+++ b/rdoff/segtab.c
@@ -11,7 +11,7 @@ struct segtabnode {
struct segtabnode *left;
struct segtabnode *right;
- /*
+ /*
* counts of how many are left or right, for use in reorganising
* the tree
*/