summaryrefslogtreecommitdiff
path: root/nasmlib.c
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 /nasmlib.c
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 'nasmlib.c')
-rw-r--r--nasmlib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 7f7fdef..5e43daa 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -254,7 +254,7 @@ int64_t readnum(char *str, bool *error)
*error = true;
return 0;
}
-
+
/*
* `checklimit' must be 2**(32|64) / radix. We can't do that in
* 32/64-bit arithmetic, which we're (probably) using, so we
@@ -284,7 +284,7 @@ int64_t readnum(char *str, bool *error)
(result == checklimit && digit >= last)) {
warn = true;
}
-
+
result = radix * result + digit;
}
r++;
@@ -530,7 +530,7 @@ void saa_free(struct SAA *s)
static void saa_extend(struct SAA *s)
{
size_t blkn = s->nblks++;
-
+
if (blkn >= s->nblkptrs) {
size_t rindex = s->rblk - s->blk_ptrs;
size_t windex = s->wblk - s->blk_ptrs;
@@ -690,7 +690,7 @@ void saa_rnbytes(struct SAA *s, void *data, size_t len)
void saa_fread(struct SAA *s, size_t posn, void *data, size_t len)
{
size_t ix;
-
+
if (posn+len > s->datalen) {
nasm_malloc_error(ERR_PANIC|ERR_NOFILE, "overrun in saa_fread");
return;
@@ -708,7 +708,7 @@ void saa_fread(struct SAA *s, size_t posn, void *data, size_t len)
void saa_fwrite(struct SAA *s, size_t posn, const void *data, size_t len)
{
size_t ix;
-
+
if (posn > s->datalen) {
/* Seek beyond the end of the existing array not supported */
nasm_malloc_error(ERR_PANIC|ERR_NOFILE, "overrun in saa_fwrite");
@@ -867,7 +867,7 @@ void null_debug_linenum(const char *filename, int32_t linenumber, int32_t segto)
{
(void)filename;
(void)linenumber;
- (void)segto;
+ (void)segto;
}
void null_debug_deflabel(char *name, int32_t segment, int32_t offset,
int is_global, char *special)