summaryrefslogtreecommitdiff
path: root/nasm.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 /nasm.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 'nasm.c')
-rw-r--r--nasm.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/nasm.c b/nasm.c
index 9498540..6ec7f07 100644
--- a/nasm.c
+++ b/nasm.c
@@ -410,7 +410,7 @@ static int process_arg(char *p, char *q)
ofmt->current_dfmt = ofmt->debug_formats[0];
} else if (p[1] == 'O') { /* Optimization level */
int opt;
-
+
if (!*param) {
/* Naked -O == -Ox */
optimizing = INT_MAX >> 1; /* Almost unlimited */
@@ -432,18 +432,18 @@ static int process_arg(char *p, char *q)
else
optimizing = opt; /* More than 5 passes */
break;
-
+
case 'v':
case '+':
param++;
opt_verbose_info = true;
break;
-
+
case 'x':
param++;
optimizing = INT_MAX >> 1; /* Almost unlimited */
break;
-
+
default:
report_error(ERR_FATAL,
"unknown optimization option -O%c\n",
@@ -809,7 +809,7 @@ static void parse_cmdline(int argc, char **argv)
"file `%s' is both input and output file",
inname);
- if (*errname) {
+ if (*errname) {
error_file = fopen(errname, "w");
if (!error_file) {
error_file = stderr; /* Revert to default! */
@@ -1487,13 +1487,13 @@ static enum directives getkw(char **directive, char **value)
* This function prints an error message to error_file in the
* style used by GNU. An example would be:
* file.asm:50: error: blah blah blah
- * where file.asm is the name of the file, 50 is the line number on
+ * where file.asm is the name of the file, 50 is the line number on
* which the error occurs (or is detected) and "error:" is one of
* the possible optional diagnostics -- it can be "error" or "warning"
- * or something else. Finally the line terminates with the actual
+ * or something else. Finally the line terminates with the actual
* error message.
- *
- * @param severity the severity of the warning or error
+ *
+ * @param severity the severity of the warning or error
* @param fmt the printf style format string
*/
static void report_error_gnu(int severity, const char *fmt, ...)
@@ -1520,16 +1520,16 @@ static void report_error_gnu(int severity, const char *fmt, ...)
/**
* MS style error reporting
* This function prints an error message to error_file in the
- * style used by Visual C and some other Microsoft tools. An example
+ * style used by Visual C and some other Microsoft tools. An example
* would be:
* file.asm(50) : error: blah blah blah
- * where file.asm is the name of the file, 50 is the line number on
+ * where file.asm is the name of the file, 50 is the line number on
* which the error occurs (or is detected) and "error:" is one of
* the possible optional diagnostics -- it can be "error" or "warning"
- * or something else. Finally the line terminates with the actual
+ * or something else. Finally the line terminates with the actual
* error message.
- *
- * @param severity the severity of the warning or error
+ *
+ * @param severity the severity of the warning or error
* @param fmt the printf style format string
*/
static void report_error_vc(int severity, const char *fmt, ...)
@@ -1555,7 +1555,7 @@ static void report_error_vc(int severity, const char *fmt, ...)
/**
* check for supressed warning
- * checks for suppressed warning or pass one only warning and we're
+ * checks for suppressed warning or pass one only warning and we're
* not in pass 1
*
* @param severity the severity of the warning or error
@@ -1578,11 +1578,11 @@ static int is_suppressed_warning(int severity)
/**
* common error reporting
* This is the common back end of the error reporting schemes currently
- * implemented. It prints the nature of the warning and then the
+ * implemented. It prints the nature of the warning and then the
* specific error message to error_file and may or may not return. It
* doesn't return if the error severity is a "panic" or "debug" type.
- *
- * @param severity the severity of the warning or error
+ *
+ * @param severity the severity of the warning or error
* @param fmt the printf style format string
*/
static void report_error_common(int severity, const char *fmt,