From: SourceForge.net <no...@so...> - 2005-11-03 18:53:55
|
Bugs item #1347560, was opened at 2005-11-03 18:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1347560&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: genxref Group: v0.9.4 Status: Open Resolution: None Priority: 5 Submitted By: Jean Mao (qijingmao) Assigned to: Nobody/Anonymous (nobody) Summary: duplicated lxr_useage entries Initial Comment: I am using lxr-0.9.2 currently, but I have tried lxr-0.9.4 and which has the same problem. We are using mysql 4.1.7 and plain files. The 'genxref' creates duplicated lxr_useage entries when the source code has something like: wchar_t * foo(wchar_t *str, int len, char *ref_f, ...) { va_list va; va_start(va,ref_f); return( smsg_put_buffer_va(str, len, ref_f, va)); } /* End of smsg_put_buffer() */ .......... foo (buf, K_PATH_SIZE, "Error reading the logfile:\n %0s\n\nSelect the \Cancel\ button to exit.", filepath); ...... That is, when the next line for calling the function is really long. I have dug into the code and found the problem is at the line 184 of the lib/LXR/Lang/Generic.pm (lxr-0.9.4): @lines = ($frag =~ /(.*?\n)/g, $frag =~ /([^\n]*)$/); Where the $frag is end with: "foo (buf, K_PATH_SIZE," with carriage return (\n) and code doubled the last line. Could this be fixed? Please let me know if you have any questions. Thank you in advance for your help. Jean ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1347560&group_id=27350 |