quote: make the input argument to nasm_quote() const
commitb157701b17c38fe3f84aab6a43ed34d17e5c91d2
authorH. Peter Anvin <hpa@zytor.com>
Tue, 10 May 2016 09:54:15 +0000 (10 02:54 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 10 May 2016 09:59:04 +0000 (10 02:59 -0700)
tree8d58a052aae0daa2d5090d0ce58bf0933e0d8f68
parentc74a70988520bb25d5fbde22881f43c4e2b06603
quote: make the input argument to nasm_quote() const

Whereas nasm_unquote() unquotes the argument in place, nasm_quote()
has to allocate a new string (since the new string will *always* be
longer than the old string!)  Make the old string const since we're
making a copy anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
quote.c
quote.h