Re: Semantic macro parse problem
Zhongwei Yao <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <CAJnfWeFj=UrdgcY3L7VeBEBfaERNuM_8hW7CM3HP-VNmpAEXwQ@mail.gmail.com> |
I tried to debug this error without success. However emacs 24.3.1 has no such problem. It may be caused by *hideif mode. *I'll ask it in more general list. Thanks, Zhongwei On Thu, Dec 11, 2014 at 3:19 PM, Zhongwei Yao <[email protected]> wrote: > > Hi, list, > When semantic parses one file with only following content: > > #if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) > #define TEST_SEMANTICS > #endif > > semantic will give following error: > > eval: Wrong type argument: number-or-marker-p, "__ORDER_LITTLE_ENDIAN__" > > Here is the backtrace: > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p > "__ORDER_LITTLE_ENDIAN__") > hif-equal("__ORDER_LITTLE_ENDIAN__" 1234) > eval((hif-equal (hif-lookup (quote __BYTE_ORDER__)) (hif-lookup (quote > __ORDER_LITTLE_ENDIAN__)))) > semantic-c-do-lex-if() > semantic-c-lexer(1 79 nil nil) > semantic-lex(1 79 nil) > semantic-parse-region-default(1 79 nil nil nil) > semantic-parse-region-c-mode(1 79 nil nil nil) > semantic-parse-region(1 79) > semantic-fetch-tags() > semantic-force-refresh() > call-interactively(semantic-force-refresh nil nil) > command-execute(semantic-force-refresh) > > Anyone could help me figure how to solve this problem? > > My emacs version is: > GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > And semantic is the stock version in Emacs. > > -- > Thanks, > Zhongwei > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Cedet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cedet-devel