Thread: [cedet-semantic] How can (semantic-get-local-arguments) work well when arguments in form of "IN str
Brought to you by:
zappo
From: jianli z. <jia...@gm...> - 2009-12-26 14:02:12
|
I use cedet-1.0pre6/semantic, and when I call (semantic-get-local-arguments) in a C function VOID GetBasicInformation( IN EFI_PEI_SERVICES **PeiServices, IN PEI_PCI_CFG_PPI *pPCIPPI, IN PEI_SMBUS_PPI *pSMBusPPI, IN VIA_DRAM_ATTRIBUTE *DramAttr) { } I get this err info (("EFI_PEI_SERVICES" variable (:type ("IN" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/ GetBasicInformation.c" reparse-symbol arg-sub-list) [927 948]) ("" variable (:type ("PeiServices" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [949 961]) ("PEI_PCI_CFG_PPI" variable (:type ("IN" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [966 986]) ("" variable (:type ("pPCIPPI" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [986 994]) ("PEI_SMBUS_PPI" variable (:type ("IN" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [999 1017]) ("" variable (:type ("pSMBusPPI" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [1017 1027]) ("VIA_DRAM_ATTRIBUTE" variable (:type ("IN" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [1032 1055]) ("" variable (:type ("DramAttr" type ... nil nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [1055 1064])) I have tried to solve this myself, but failed. Can anybody be nice to help me? thank advance. |
From: Eric M. L. <er...@si...> - 2009-12-26 15:47:27
|
Hi, What is IN? If IN is a #define in some header file, then you can do a few things to fix it. See cedet/common/cedet.info for a C++ section for a high level summary on the topic. Eric jianli zhao wrote: > I use cedet-1.0pre6/semantic, and when I call > (semantic-get-local-arguments) in a C function > > VOID GetBasicInformation( > IN EFI_PEI_SERVICES **PeiServices, > IN PEI_PCI_CFG_PPI *pPCIPPI, > IN PEI_SMBUS_PPI *pSMBusPPI, > IN VIA_DRAM_ATTRIBUTE *DramAttr) > { } > > I get this err info > (("EFI_PEI_SERVICES" variable (:type ("IN" type ... nil nil)) (:filename > "d:/My Dropbox/emacs/test/ > GetBasicInformation.c" reparse-symbol arg-sub-list) [927 948]) ("" > variable (:type ("PeiServices" type ... nil nil)) (:filename "d:/My > Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) > [949 961]) ("PEI_PCI_CFG_PPI" variable (:type ("IN" type ... nil nil)) > (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" > reparse-symbol arg-sub-list) [966 986]) ("" variable (:type ("pPCIPPI" > type ... nil nil)) (:filename "d:/My > Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) > [986 994]) ("PEI_SMBUS_PPI" variable (:type ("IN" type ... nil nil)) > (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" > reparse-symbol arg-sub-list) [999 1017]) ("" variable (:type > ("pSMBusPPI" type ... nil nil)) (:filename "d:/My > Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) > [1017 1027]) ("VIA_DRAM_ATTRIBUTE" variable (:type ("IN" type ... nil > nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" > reparse-symbol arg-sub-list) [1032 1055]) ("" variable (:type > ("DramAttr" type ... nil nil)) (:filename "d:/My > Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) > [1055 1064])) > > I have tried to solve this myself, but failed. > Can anybody be nice to help me? thank advance. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > cedet-semantic mailing list > ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-semantic |
From: jianli z. <jia...@gm...> - 2009-12-27 10:34:10
|
Hi Eric, THANKS, your replay helps, Great!. On Sat, Dec 26, 2009 at 11:48 PM, Eric M. Ludlam <er...@si...>wrote: > Hi, > > What is IN? If IN is a #define in some header file, then you can do a few > things to fix it. See cedet/common/cedet.info for a C++ section for a > high level summary on the topic. > > Eric > > jianli zhao wrote: > >> I use cedet-1.0pre6/semantic, and when I call >> (semantic-get-local-arguments) in a C function >> >> VOID GetBasicInformation( >> IN EFI_PEI_SERVICES **PeiServices, >> IN PEI_PCI_CFG_PPI *pPCIPPI, >> IN PEI_SMBUS_PPI *pSMBusPPI, >> IN VIA_DRAM_ATTRIBUTE *DramAttr) >> { } >> >> I get this err info >> (("EFI_PEI_SERVICES" variable (:type ("IN" type ... nil nil)) (:filename >> "d:/My Dropbox/emacs/test/ >> GetBasicInformation.c" reparse-symbol arg-sub-list) [927 948]) ("" >> variable (:type ("PeiServices" type ... nil nil)) (:filename "d:/My >> Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [949 >> 961]) ("PEI_PCI_CFG_PPI" variable (:type ("IN" type ... nil nil)) (:filename >> "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol >> arg-sub-list) [966 986]) ("" variable (:type ("pPCIPPI" type ... nil nil)) >> (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol >> arg-sub-list) [986 994]) ("PEI_SMBUS_PPI" variable (:type ("IN" type ... nil >> nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" >> reparse-symbol arg-sub-list) [999 1017]) ("" variable (:type ("pSMBusPPI" >> type ... nil nil)) (:filename "d:/My >> Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol arg-sub-list) [1017 >> 1027]) ("VIA_DRAM_ATTRIBUTE" variable (:type ("IN" type ... nil nil)) >> (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" reparse-symbol >> arg-sub-list) [1032 1055]) ("" variable (:type ("DramAttr" type ... nil >> nil)) (:filename "d:/My Dropbox/emacs/test/GetBasicInformation.c" >> reparse-symbol arg-sub-list) [1055 1064])) >> >> I have tried to solve this myself, but failed. >> Can anybody be nice to help me? thank advance. >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> cedet-semantic mailing list >> ced...@li... >> https://lists.sourceforge.net/lists/listinfo/cedet-semantic >> > |