I have included files like file1.c. But how do I force splint to check gtk, gdk header files, which supposedly is giving rise to parse errors.<br><div class="gmail_quote"><br>Hi<br><br>I came across some code which is in the following style<br>
<br>//file1.c<br>#include &lt;stdlib.h&gt;<br>#include &lt;gdk/gdkkeysyms.h&gt;<br>#include &lt;gtk/gtk.h&gt;<br><br>void print(void){<br><br>//use some gdk functions like gdk_pixmap_new()<br>
//or use some varibales like gint, gboolean etc<br><br> printf(&quot;Hello world\n&quot;);<br><br>}<br><br>//main.c<br><br>#include &lt;stdio.h&gt;<br>#include &quot;file1.c&quot;<br><br>int main(int argc, char *argv[]){<br>

<br> print();<br><br> return EXIT_SUCCESS;<br>}<br clear="all"><br>The code has *.c files included rather than *.h files i.e. the code has not been separated into declaration part(*.h) and definition part(*.c), cleanly. When I use splint on such code I get parse errors when gdk constructs are used.<br>

How can I force splint to check the gtk and gdk headers file in this style of programming. <br><br>I would be deeply thankful for some suggestions.<br><br><br>-- <br>Thanking You<br>Sincerely<br><font color="#888888">Vivek Kumar<br>

</font></div><br><br clear="all"><br>-- <br>Thanking You<br>Sincerely<br>Vivek Kumar<br>