From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhongwei Yao Newsgroups: gmane.emacs.help Subject: Fwd: Semantic macro parse problem Date: Tue, 16 Dec 2014 15:41:14 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1418715697 32097 80.91.229.3 (16 Dec 2014 07:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 07:41:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 08:41:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0ml8-0007k1-QV for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 08:41:30 +0100 Original-Received: from localhost ([::1]:43400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0ml7-0003aA-Tc for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 02:41:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0mkw-0003Zt-89 for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 02:41:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0mku-00054K-RE for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 02:41:18 -0500 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:34619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0mku-000542-Ie for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 02:41:16 -0500 Original-Received: by mail-lb0-f176.google.com with SMTP id p9so10673577lbv.35 for ; Mon, 15 Dec 2014 23:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=B3WalIyyP9RlPfQHeiVcFpMJw452pJ0nIzzAGV6mp/A=; b=a0rQX1UxKx6B6mtHQT3FKodJb1LXT0Vbj3cbEPzIWC6acYS0czWjMzkOkLFrjoEnwB hqTUDPCxI4Gbv67KkfvzXBRRJT/JpiVZA6c4Z1UaXdG9d+j4y78Lz26tzOrkbGyU2U0d eEktuKn13e+lyL7GQJlqrDv6Dfu6snO/6iic9tEREu4PQLiIhKtIIR3yi7RJQ4w+9yT5 VzjHLW0ZMmErorV7gZA6TTzICBSCGHB014EFXI8myNB9EJDekS3IUrnjjcneGAgjNcQJ FyrPbLLGYtWul4/f8VXvbppQFnE5FS8wlGHvfw5J1gKvdWOMi8MXz5YgYKjAyzsP6a8b BQVA== X-Received: by 10.112.52.73 with SMTP id r9mr33554218lbo.15.1418715674700; Mon, 15 Dec 2014 23:41:14 -0800 (PST) Original-Received: by 10.114.59.80 with HTTP; Mon, 15 Dec 2014 23:41:14 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101596 Archived-At: Hi, all, I've asked my problem in cedet-devel but not solved. I guess it may be caused by *hideif mode. *And emacs 24.3.1 has no such problem. Thanks for any help to solve this problem! Following is my problem: ---------- Forwarded message ---------- From: Zhongwei Yao Date: Thu, Dec 11, 2014 at 3:19 PM Subject: Semantic macro parse problem To: cedet-devel@lists.sourceforge.net 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