Re: [CEDET-devel] Semantic macro parse problem
Brought to you by:
zappo
|
From: Zhongwei Y. <ash...@gm...> - 2014-12-16 07:34:49
|
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 <ash...@gm...> 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
>
|