[Lxr-dev] [ lxr-Bugs-3116713 ] Line continuation character "\" problem
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2010-11-23 15:55:49
|
Bugs item #3116713, was opened at 2010-11-23 09:51 Message generated for change (Comment added) made by dcochlin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3116713&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lang support Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: dcochlin (dcochlin) Assigned to: Nobody/Anonymous (nobody) Summary: Line continuation character "\" problem Initial Comment: LXR Version: 0.9.8 Error message in genxref output: BTYPE was: atom DB: mysql Plain files. When the code being parsed contains a line continuation character, like "\" in C, the line associated with "References:" to the tag are wrong. For example, parsing this code (ignore the line numbers, they are included to show the problem with References).... <<< 001 #define my_define (100 - \ 002 25) 003 004 char[] my_string; 005 006 strcat(my_string, "Hello"); 007 008 for (i=0, i<my_define; ++i){ 009 printf("The number is: %d", i); 010 } 011 012 printf("%s", my_string); >>> Clicking on "my_define" results in the following. Note the line numbers in the references for "my_define" should be (1 and 8) not (1 and 7). <<< my_define Declarations: /deviceapps/aim_adams.c, line 1 macro (un)definition 1 declarations in 1 files. References: /deviceapps/aim_adams.c, line 1 /deviceapps/aim_adams.c, line 7 2 references in 1 files. >>> Clicking on my_string results in something even stranger. There are only 3 references in the file and only one of the references displayed match the actual line number. <<< my_string Declarations: /deviceapps/aim_adams.c, line 4 variable definition 1 declarations in 1 files. References: /deviceapps/aim_adams.c, line 3 /deviceapps/aim_adams.c, line 5 /deviceapps/aim_adams.c, line 11 /deviceapps/aim_adams.c, line 12 4 references in 1 files. >>> ---------------------------------------------------------------------- >Comment By: dcochlin (dcochlin) Date: 2010-11-23 09:55 Message: This is re-post of a previous bug. Sorry. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3116713&group_id=27350 |