<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LC++]Producing a log of routine entry and exit</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; Just a couple of minor questions.&nbsp; Is &quot;sys.h&quot; the best</FONT>
<BR><FONT SIZE=2>&gt; name for this file?&nbsp; Ie, couldn't it be confused with</FONT>
<BR><FONT SIZE=2>&gt; /usr/include/linux/sys.h?&nbsp; Perhaps &quot;umbrella.h&quot; would be</FONT>
<BR><FONT SIZE=2>&gt; a better name?&nbsp; But on the other hand, maybe &quot;sys.h&quot;</FONT>
<BR><FONT SIZE=2>&gt; is the psuedo standard name for it???</FONT>
</P>

<P><FONT SIZE=2>Personally, my current project uses &quot;system.h&quot;.</FONT>
<BR><FONT SIZE=2>If you make sure your include paths are correct, the &quot;&quot; and &lt;&gt;</FONT>
<BR><FONT SIZE=2>should take care of ambiguities between your files and the</FONT>
<BR><FONT SIZE=2>system files.</FONT>
</P>

<P><FONT SIZE=2>&gt; The other minor question is...&nbsp; Is there any particular advantage</FONT>
<BR><FONT SIZE=2>&gt; in using </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; #ifndef MYAPP_HEADENAME_H</FONT>
<BR><FONT SIZE=2>&gt; &gt; #define MYAPP_HEADENAME_H</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; rather than just</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; #ifndef HEADERNAME_H</FONT>
<BR><FONT SIZE=2>&gt; #define HEADERNAME_H</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; I guess it means it makes it clear which project the header is</FONT>
<BR><FONT SIZE=2>&gt; associated with.&nbsp; But why not do the same with the filename?&nbsp; Eg</FONT>
<BR><FONT SIZE=2>&gt; you could have &quot;myapp_sys.h&quot;.</FONT>
</P>

<P><FONT SIZE=2>You could also make a script to create a header file, which would</FONT>
<BR><FONT SIZE=2>create a random identifier using /dev/[u]random. The main point of</FONT>
<BR><FONT SIZE=2>such directives is to make sure the contents of the file is not</FONT>
<BR><FONT SIZE=2>preprocessed twice, so the most information you can put in it, the</FONT>
<BR><FONT SIZE=2>better, I think. Also, probably don't put the project name if you</FONT>
<BR><FONT SIZE=2>think you'll refactor this file in a lib afterwards :)</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>

</BODY>
</HTML>