🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2306

Re: Search for the Universal Header File

#2306
From: Michael Smith
Date: Sat, 16 Mar 1996 16:53
50 lines
1786 bytes
Hans-Bernhard Broeker wrote:
> But that's absolutely counter-useful! Where's the real gain if you have
> to write
> 
> #define WANT_STDIO
> #define WANT_LOCAL_SOMETHING
> #include <uUHF.h>
> 
> instead of
> 
> #include <stdio.h>
> #include <local_something.h>
> 

I missed the start of this, so I may have the wrong end of the stick, but 
I think that the intention would be to replace code like:

#if defined(SOME_SYSTEM)
#include <malloc.h>
#elif defined(SOME_OTHER_SYSTEM)
#include <alloc.h>
#elif defined(YET_ANOTHER_SYSTEM)
#include <memory.h>
#else
#include <stdlib.h>
#endif

#if defined(MSDOS)
#include <sys\\stat.h>
#elif defined(VMS)
#include <whatever file spec needed for VMS>
#else
#include <sys/stat.h>
#endif

with code like this:

#define INCLUDE_MALLOC
#define INCLUDE_STAT
#include <uUHF.h>

There are lots of cases where different systems need different include 
files.


-- 
#####################################################################
Michael Smith                                       msmith@mpx.com.au
Emmenjay Consulting                 http://www.hutch.com.au/~emmenjay
#####################################################################
Technical Details
Message-ID: <4iermd$apc@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gqe8u$pn7@solutions.solon.com> <4gu0ql$eo8@solutions.solon.com> <4h81eq$ai9@solutions.solon.com> <4i2jsl$8ff@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Michael Smith <msmith@mpx.com.au>
Newsgroups: comp.lang.c.moderated
Subject: Re: Search for the Universal Header File
Date: 16 Mar 1996 10:53:33 -0600
Organization: Emmenjay Consulting
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4iermd$apc@solutions.solon.com>
References: <4gqe8u$pn7@solutions.solon.com> <4gu0ql$eo8@solutions.solon.com> <4h81eq$ai9@solutions.solon.com> <4i2jsl$8ff@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0 (Win16; I)