mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
8b6e6bf04f
Separate out function and function pointer attributes, as not all versions of all compilers support both. Have macros related to function attributes auto-generated by autoheader. As a result, rename config.h.in to unconfig.h, to make it more obvious that it is really intended to be included from some C programs. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
9 lines
387 B
Plaintext
9 lines
387 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_SYM(prefix, string)
|
|
dnl
|
|
dnl Convert a (semi-) arbitrary string to a CPP symbol
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_SYM],
|
|
[m4_bpatsubsts(m4_quote(m4_toupper([$*])),
|
|
[,],[],[[^ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]+],[_],[^._?\(.*\)_.$],[[\1]])])
|