aboutsummaryrefslogtreecommitdiffstats
path: root/asm/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-10-03 22:18:35 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-10-03 22:18:35 -0700
commit7ad824be7a64fd9421e340b770773ca50005a031 (patch)
tree561e60ef1d55e3a14f26dccc4d53410d917190dd /asm/parser.c
parent97ea4adcf0d862472857a4d2e2211edabf8a69df (diff)
downloadnasm-7ad824be7a64fd9421e340b770773ca50005a031.tar.gz
nasm-7ad824be7a64fd9421e340b770773ca50005a031.tar.xz
nasm-7ad824be7a64fd9421e340b770773ca50005a031.zip
warnings: make it possible to put blank lines in doc text
rdsrc.pl requires blank lines around \c paragraph, but warnings.pl would strip them. Create a *!- prefix to force a blank line. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/parser.c')
-rw-r--r--asm/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm/parser.c b/asm/parser.c
index 012364ac..ba5081ac 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -1167,11 +1167,12 @@ is_expression:
*! permitted, and do not trigger this warning. Some registers which \e{do not} imply
*! a specific size, such as \c{K0}, may need this specification unless the instruction
*! itself implies the instruction size:
- *!
+ *!-
*! \c KMOVW K0,[foo] ; Permitted, KMOVW implies 16 bits
*! \c KMOV WORD K0,[foo] ; Permitted, WORD K0 specifies instruction size
*! \c KMOV K0,WORD [foo] ; Permitted, WORD [foo] specifies instruction size
*! \c KMOV K0,[foo] ; Not permitted, instruction size ambiguous
+ *!-
*/
nasm_warn(WARN_REGSIZE, "invalid register size specification ignored");
}