delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/20/15:04:02

Message-ID: <39774EA5.7AA0AE0F@softhome.net>
Date: Thu, 20 Jul 2000 21:10:29 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: <stdarg.h> matters
Reply-To: djgpp-workers AT delorie DOT com

Seems like we're possibly going to convert to GCC's <stdarg.h>
So I'm goint to post a patch witch reverts my changes to <*arg.h>
headers. Just two notes:

1) I want to put in our headers something like

#if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) || (__GNUC__ >= 3)
#error Error in DJGPP installation - GCC headers not properly installed
#endif

Is it OK?

2) Our little ISO incompatibility:
If Those Who Matter (tm) do not change their minds about stdio.h using va_list,
I'll do it as follows:

#define __need___va_list
#include <stdarg.h>
#ifndef _VA_LIST_
typedef __gnuc_va_list va_list
#define _VA_LIST
#endif

Like with <stddef.h>, __need___va_list is a backdoor to get 
actual definition from header file, but due to ISO its returned
type will be called __gnuc_va_list instead of va_list.

OK to go on?

Laurynas

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019