bug3.c

Go to the documentation of this file.
00001 /* bug 3 */
00002 
00003 /* bug: Doxygen reports that not_called is called by bar */
00004 static int not_called(void)
00005 {
00006   return 0;
00007 }
00008 
00009 #ifdef FOO
00010 /* These six comment lines (all at the start of the line,       */
00011 /* and within #ifdef) cause the following line numbers to be    */
00012 /* offset by -6, which in its turn causes the "References" and  */
00013 /* the "Referenced by" relations to be screwed up; presumably   */
00014 /* because Doxygen associates the names of the following        */
00015 /* functions with the wrong function bodies.                    */
00016 
00017 static void dummy(void)
00018 {
00019   return not_called();
00020 }
00021 #endif
00022 
00023 
00024 static int bar(int argc, char *argv[])
00025 {
00026   return 0;
00027 }
00028 
00029 
00030 static int foo(int argc, char *argv[])
00031 {
00032   return bar(argc, argv);
00033 }
00034 
00035 
00036 int main(int argc, char *argv[])
00037 {
00038   /* bug: Doxygen reports that main calls bar, instead of foo */
00039   return foo(argc, argv);
00040 }

Generated on Tue Jan 29 13:35:00 2008 for LineNumberBugs by  doxygen 1.5.4