Hi<br><br>I came across some code which is in the following style<br><br>//file1.c<br>#include <stdlib.h><br>#include <gdk/gdkkeysyms.h><br>#include <gtk/gtk.h><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("Hello world\n");<br><br>}<br><br>//main.c<br><br>#include <stdio.h><br>#include "file1.c"<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>Vivek Kumar<br>