diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-12 14:34:34 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-12 14:34:34 -0800 |
commit | eb5b3ae0d3383cef2651ae642ad297bc1dc6f228 (patch) | |
tree | c16780b9a0ef1bf47009c452733dba699cd94c38 /Mkfiles | |
parent | 64471097ca7598e8238f9e5ed25b3afaa9b10f2c (diff) | |
download | nasm-eb5b3ae0d3383cef2651ae642ad297bc1dc6f228.tar.gz |
nasmlib: Add nasm_(v)asprintf()
Add a version of (v)asprintf(), which allocates a string on the
heap. Unlike the standard version of (v)asprintf(), we return the
pointer; if one wants the length of the string then one can simply use
the %n pattern.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'Mkfiles')
-rw-r--r-- | Mkfiles/msvc.mak | 6 | ||||
-rw-r--r-- | Mkfiles/openwcom.mak | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak index 7ea3b55a..89e392d9 100644 --- a/Mkfiles/msvc.mak +++ b/Mkfiles/msvc.mak @@ -68,11 +68,11 @@ LIBOBJ = stdlib\snprintf.$(O) stdlib\vsnprintf.$(O) stdlib\strlcpy.$(O) \ stdlib\strnlen.$(O) stdlib\strrchrnul.$(O) \ \ nasmlib\ver.$(O) \ - nasmlib\crc64.$(O) nasmlib\malloc.$(O) \ + nasmlib\crc64.$(O) nasmlib\alloc.$(O) nasmlib\asprintf.$(O) \ nasmlib\md5c.$(O) nasmlib\string.$(O) nasmlib\nctype.$(O) \ nasmlib\file.$(O) nasmlib\mmap.$(O) nasmlib\ilog2.$(O) \ nasmlib\realpath.$(O) nasmlib\path.$(O) \ - nasmlib\filename.$(O) nasmlib\srcfile.$(O) \ + nasmlib\filename.$(O) \ nasmlib\zerobuf.$(O) nasmlib\readnum.$(O) nasmlib\bsi.$(O) \ nasmlib\rbtree.$(O) nasmlib\hashtbl.$(O) \ nasmlib\raa.$(O) nasmlib\saa.$(O) \ @@ -97,7 +97,7 @@ LIBOBJ = stdlib\snprintf.$(O) stdlib\vsnprintf.$(O) stdlib\strlcpy.$(O) \ asm\segalloc.$(O) \ asm\preproc-nop.$(O) \ asm\rdstrnum.$(O) \ - \ + asm\srcfile.$(O) \ macros\macros.$(O) \ \ output\outform.$(O) output\outlib.$(O) output\legacy.$(O) \ diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak index 2b0031af..1c407dea 100644 --- a/Mkfiles/openwcom.mak +++ b/Mkfiles/openwcom.mak @@ -57,11 +57,11 @@ LIBOBJ = stdlib\snprintf.$(O) stdlib\vsnprintf.$(O) stdlib\strlcpy.$(O) & stdlib\strnlen.$(O) stdlib\strrchrnul.$(O) & & nasmlib\ver.$(O) & - nasmlib\crc64.$(O) nasmlib\malloc.$(O) & + nasmlib\crc64.$(O) nasmlib\alloc.$(O) nasmlib\asprintf.$(O) & nasmlib\md5c.$(O) nasmlib\string.$(O) nasmlib\nctype.$(O) & nasmlib\file.$(O) nasmlib\mmap.$(O) nasmlib\ilog2.$(O) & nasmlib\realpath.$(O) nasmlib\path.$(O) & - nasmlib\filename.$(O) nasmlib\srcfile.$(O) & + nasmlib\filename.$(O) & nasmlib\zerobuf.$(O) nasmlib\readnum.$(O) nasmlib\bsi.$(O) & nasmlib\rbtree.$(O) nasmlib\hashtbl.$(O) & nasmlib\raa.$(O) nasmlib\saa.$(O) & @@ -86,7 +86,7 @@ LIBOBJ = stdlib\snprintf.$(O) stdlib\vsnprintf.$(O) stdlib\strlcpy.$(O) & asm\segalloc.$(O) & asm\preproc-nop.$(O) & asm\rdstrnum.$(O) & - & + asm\srcfile.$(O) & macros\macros.$(O) & & output\outform.$(O) output\outlib.$(O) output\legacy.$(O) & |