Final portion of the fix for bug 20882. Just a cleaner way of doing what is already being done.

This commit is contained in:
briano%netscape.com 1999-12-14 00:56:50 +00:00
Родитель 54aa51a733
Коммит 9587f6dc46
3 изменённых файлов: 8 добавлений и 9 удалений

Просмотреть файл

@ -50,11 +50,11 @@
** Note: on some platforms va_list is defined as an array,
** and requires array notation.
*/
#if (defined(linux) && defined(__powerpc__)) || (defined(__QNX__) && !defined(NTO)) || defined(WIN16)
#ifdef HAVE_VA_LIST_AS_ARRAY
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
#endif /* Linux/PPC || WIN16 */
#endif
/*
** WARNING: This code may *NOT* call JS_LOG (because JS_LOG calls it)

Просмотреть файл

@ -932,7 +932,7 @@ XPCConvert::JSErrorToXPCException(JSContext* cx,
** Note: on some platforms va_list is defined as an array,
** and requires array notation.
*/
#if (defined(linux) && defined(__powerpc__)) || (defined(__QNX__) && !defined(NTO)) || defined(WIN16)
#ifdef HAVE_VA_LIST_AS_ARRAY
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)

Просмотреть файл

@ -41,8 +41,7 @@
** Note: on some platforms va_list is defined as an array,
** and requires array notation.
*/
#if (defined(LINUX) && defined(__powerpc__)) || defined(WIN16) || \
defined(QNX) || (defined(__NetBSD__) && defined(__powerpc__))
#ifdef HAVE_VA_LIST_AS_ARRAY
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)