help-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

global doesn't find "main" in a .c file


From: Markus . Grunwald
Subject: global doesn't find "main" in a .c file
Date: Wed, 29 Jun 2011 08:48:40 +0200


Hello,

global seems to have a problem with one of "my" projects. In the following example, I would expect global to find the "main" function:


address@hidden % ll
total 8
-rwxrwxr-x 1 gru gru 5261 Jun 29 08:29 MessageQAppOS.c*
address@hidden % grep -B2 -A2 main MessageQAppOS.c
 */
int
main (int argc, char ** argv)
{
    Int     status = 0;
address@hidden % gtags -vw
[Wed Jun 29 08:30:04 CEST 2011] Gtags started.
 Using default configuration.
[Wed Jun 29 08:30:04 CEST 2011] Creating 'GTAGS'.
 [1] extracting tags of MessageQAppOS.c
[Wed Jun 29 08:30:04 CEST 2011] Creating 'GRTAGS'.
 [1/1] extracting tags of MessageQAppOS.c
[Wed Jun 29 08:30:04 CEST 2011] Creating 'GSYMS'.
 [1/1] extracting tags of MessageQAppOS.c
[Wed Jun 29 08:30:04 CEST 2011] Done.
address@hidden % global -x main
address@hidden % echo $?
0
address@hidden % gtags --config
:suffixes=c,h,y,s,S,java,c++,cc,cpp,cxx,hxx,hpp,C,H,php,php3,phtml:skip=GPATH,GTAGS,GRTAGS,GSYMS,HTML/,HTML.pub/,html/,tags,TAGS,ID,y.tab.c,y.tab.h,.notfunction,cscope.out,cscope.po.out,cscope.in.out,.gdbinit,SCCS/,RCS/,CVS/,CVSROOT/,{arch}/,.svn/,.git/,.cvsrc,.cvsignore,.gitignore,.cvspass,.cvswrappers,.deps/,autom4te.cache/,.snprj/:GTAGS=/usr/bin/gtags-parser %s:GRTAGS=/usr/bin/gtags-parser -r %s:GSYMS=/usr/bin/gtags-parser -s %s:
address@hidden % dpkg -l global
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                               Description
+++-=====================================-=====================================-==========================================================================================
ii  global                                5.7.1-1                               Source code search and browse tools


The file "MessageQAppOS.c"  is part of an example code for Ti "Syslink", a communication library for DSP systems. It's C code and I don't see, why global doesn't work here. Since it is quite small and it may help to answer my question, I'll attach it.

I hope you can help. I got used to global in another project and don't want to go back to etags  ;)

cu
Markus

Attachment: MessageQAppOS.c.bz2
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]