Path: utzoo!mnetor!uunet!mcvax!enea!pvab!robert
From: robert@pvab.UUCP (Robert Claeson)
Newsgroups: comp.lang.c
Subject: Re: Making re-#includes harmless--a simple solution?
Message-ID: <339@pvab.UUCP>
Date: 11 Dec 87 10:23:09 GMT
References: <13395@think.UUCP>
Reply-To: robert@pvab.UUCP (Robert Claeson)
Organization: Statskonsult Programvaruhuset AB, Sweden
Lines: 16

In article <13395@think.UUCP> rlk@THINK.COM writes:

>1)  The same file may have multiple names (symlinks and/or hard
>links).  How do you KNOW whether a file has been included?  The only
>way is by defining an attribute that only that file will have.  The
>easiest way to do this (aside from checking device/inumbers, which is
>not portable and may not work in some bizarre cases, or other system
>dependent hacks) is to #define a unique name.

How can you be sure that the name you choose is unique, especially if
you use links or symlinks?

-- 
Robert Claeson, System Administrator, PVAB, Box 4040, S-171 04 Solna, Sweden
eunet: robert@pvab
uucp:  sun!enea!pvab!robert