From unknown Wed Jun 18 23:03:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1177 <1177@debbugs.gnu.org> To: bug#1177 <1177@debbugs.gnu.org> Subject: Status: 23.0.60; cc-mode cannot recognize pointer array declaretions Reply-To: bug#1177 <1177@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:03:19 +0000 retitle 1177 23.0.60; cc-mode cannot recognize pointer array declaretions reassign 1177 emacs,cc-mode submitter 1177 Feng Li severity 1177 minor tag 1177 fixed thanks From fengli@blackmagic-design.com Wed Oct 15 23:38:09 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Oct 2008 06:38:09 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9G6c5vH001528 for ; Wed, 15 Oct 2008 23:38:07 -0700 Received: from mail.gnu.org ([199.232.76.166]:47300 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KqMSJ-0008I5-Vj for emacs-pretest-bug@gnu.org; Thu, 16 Oct 2008 02:35:32 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KqMUi-00083I-Sv for emacs-pretest-bug@gnu.org; Thu, 16 Oct 2008 02:38:04 -0400 Received: from smtpauth00.csee.onr.siteprotect.com ([64.26.60.144]:60500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KqMUi-00082w-GG for emacs-pretest-bug@gnu.org; Thu, 16 Oct 2008 02:38:00 -0400 Received: from SCUMBAG (unknown [203.111.191.138]) (Authenticated sender: fengli@blackmagic-design.com) by smtpauth00.csee.onr.siteprotect.com (Postfix) with ESMTP id C8E06758053 for ; Thu, 16 Oct 2008 01:37:57 -0500 (CDT) From: Feng Li To: emacs-pretest-bug@gnu.org Subject: 23.0.60; cc-mode cannot recognize pointer array declaretions Date: Thu, 16 Oct 2008 17:37:51 +1100 Message-ID: <81r66hqc3k.fsf@blackmagic-design.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: cc-mode cannot fontify the following code correctly, where 'prUTF16Char*' should have the type face and sampleRateStrings should have the variable face, but they both are displayed in regular text color. prUTF16Char* sampleRateStrings[] = {L"48000Hz"}; If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file c:/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-14 on SCUMBAG Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.2) --cflags -I../../emacs_libs/inc' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: cwarn-mode: t display-time-mode: t shell-dirtrack-mode: t recentf-mode: t cua-mode: t semantic-idle-scheduler-mode: t which-function-mode: t show-paren-mode: t global-auto-revert-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: n P N P q C-x 5 0 C-z M-x r e p o r t SPC C-g M-x r e p o r t Recent messages: Generating summary...done Mark set insert-for-yank: Buffer is read-only: # End of message [4 times] Undo... Undo! Mark set Quit Mark set Making completion list... -- Feng Li Blackmagic Design fengli@blackmagic-design.com www.blackmagic-design.com From rgm@gnu.org Thu Oct 16 10:57:04 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.6 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 16 Oct 2008 17:57:04 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9GHv2fn009167 for ; Thu, 16 Oct 2008 10:57:03 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KqX3L-00051f-Qe; Thu, 16 Oct 2008 13:54:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18679.32723.800060.756977@fencepost.gnu.org> Date: Thu, 16 Oct 2008 13:54:27 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: lrdU[_qun,y_F;9g51seineGDFyFj_j+$y#H'I{AD^l^f]fR$c-qC~,_)mDOj]t>\}-{-m X-Debbugs-No-Ack: yes reassign 1177 emacs,cc-mode tags 1102 wontfix From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 15:26:46 2011 Received: (at 1177) by debbugs.gnu.org; 3 Oct 2011 19:26:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAoA1-0001AA-K1 for submit@debbugs.gnu.org; Mon, 03 Oct 2011 15:26:46 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAo9z-0001A2-NP for 1177@debbugs.gnu.org; Mon, 03 Oct 2011 15:26:44 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RAo8b-0001wo-Df; Mon, 03 Oct 2011 15:25:17 -0400 From: Glenn Morris To: Feng Li Subject: Re: bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions References: <81r66hqc3k.fsf@blackmagic-design.com> X-Spook: Rumsfeld beanpole ASLET Waco, Texas Firewalls Venezuela X-Ran: s-E.POI26EB&:iv_8_so_F<`|WCGmIRQuH~0Xf.FNKZO&.#Cpc%NIQ]ct}$wF`eBoFyR+{ X-Hue: blue X-Attribution: GM Date: Mon, 03 Oct 2011 15:25:17 -0400 In-Reply-To: <81r66hqc3k.fsf@blackmagic-design.com> (Feng Li's message of "Thu, 16 Oct 2008 17:37:51 +1100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 1177 Cc: 1177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Feng Li wrote: > cc-mode cannot fontify the following code correctly, where > 'prUTF16Char*' should have the type face and sampleRateStrings should > have the variable face, but they both are displayed in regular text > color. > > prUTF16Char* sampleRateStrings[] = {L"48000Hz"}; I don't know much about cc-mode, but it works if you add an appropriate entry to `c-font-lock-extra-types'. Maybe this is how it is supposed to work? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 11 13:46:31 2012 Received: (at 1177) by debbugs.gnu.org; 11 Aug 2012 17:46:31 +0000 Received: from localhost ([127.0.0.1]:49775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0Fld-0005BH-48 for submit@debbugs.gnu.org; Sat, 11 Aug 2012 13:46:30 -0400 Received: from smtp.enseirb-matmeca.fr ([147.210.18.60]:51916) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0DLU-0001gc-VU for 1177@debbugs.gnu.org; Sat, 11 Aug 2012 11:11:22 -0400 X-Virus-Scanned: amavisd-new at enseirb-matmeca.fr Received: from [192.168.1.20] (ANancy-256-1-29-211.w90-26.abo.wanadoo.fr [90.26.28.211]) (authenticated bits=0) from identified as scastelli by smtp.enseirb-matmeca.fr (8.14.3/8.14.3/smtp-fg-03-2011) with ESMTP id q7BF2qLh014143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <1177@debbugs.gnu.org>; Sat, 11 Aug 2012 17:02:57 +0200 Message-ID: <5026740E.8080202@enseirb-matmeca.fr> Date: Sat, 11 Aug 2012 17:02:38 +0200 From: =?ISO-8859-1?Q?St=E9phane_Castelli?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: 1177@debbugs.gnu.org Subject: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 1177 X-Mailman-Approved-At: Sat, 11 Aug 2012 13:46:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I can confirm this bug, but with function prototypes, like this : SDL_Surface* displayInit(void); int* stuff(someStuff); works fine. If i write "SDL_Surface* displayInit(void);", then erase the ';' and replace it by '{', then erase the '{' and re-replace it by ';', the coloration will work fine whatever i do next... GNU Emacs 24.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.10) of 2012-07-13 on x86-04.phx2.fedoraproject.org Fedora 17 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 19:26:42 2018 Received: (at 1177) by debbugs.gnu.org; 23 Jun 2018 23:26:42 +0000 Received: from localhost ([127.0.0.1]:33523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWrvW-0003Dc-8h for submit@debbugs.gnu.org; Sat, 23 Jun 2018 19:26:42 -0400 Received: from mail-it0-f45.google.com ([209.85.214.45]:37963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWrvT-0003DK-Un; Sat, 23 Jun 2018 19:26:40 -0400 Received: by mail-it0-f45.google.com with SMTP id v83-v6so7575117itc.3; Sat, 23 Jun 2018 16:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=6CC3KJYjUAmIewYjmEFkzk7k3XDJtyJK6zOMIse7grc=; b=qQuH0+LOPQaG3Xvo5Nranrq42pLBEAN3bhmmHhqG0p7oeY49tpDOtxs7907aO9BdLV 4crrgEKbJXIWJj44oa8dwOtiwNQDt9ohLHZkiM+KzgadvauRtHQv5seL4gdRszt9jkNm MNcDn5R643DFzpkuD4EQjlP6Auy5AV9GwEXNpoZ4olyB829GufOhDCXUDhGXiAsEOy9w vPBmiQFbW8/DNQQOqjWBW7ccqm4QI+3JMSrW1F9ke6AauUX3N9oOll5H5TNpQ0W/Pfrm Ou6k6X5J8cYXREwkcM/ZnwWTusXJ66TYLKK7tQAFhAKWyZ6W3BFQJbG2tGEwjjbVYhop o31Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6CC3KJYjUAmIewYjmEFkzk7k3XDJtyJK6zOMIse7grc=; b=h6JSvN8+qIyKAADtI7mfWt7D+iQzHGhiHvZczk7gby5H3F6lHjLHD59JxMkni930sj NkODBid21iwi7iyIpkEFOezU3dpc+o8+1BD2McQBFGyj3uyk0/Hp69qp47wGKuy9a7Zw 0ify1wNRJ+I3hMIh6WS4+YmIUYgjIus/BO9AQK5Buue8tpkGz1k0HAdnE4mrjxP1ii3R E8BFmB9c1LNm1zPsu/6DBzPTcbu4AB6T2WBgKZjBdcI22vlOYWKKbW06LXSIYEEG6Od6 7bpx+3Fqv4BwojsXVlIznKvW8+WVj/1h23xo6SqCFMeG5eDn/GM28IKHMJ44/k1FWi2y uH0g== X-Gm-Message-State: APt69E0EXlogxB7ABM/k0fXW0DUGoGvLIAkP7zHGvrodf1p7bhZ3ddB5 CmS+NzknNmFJuyZrMDxdTPkBfg== X-Google-Smtp-Source: ADUXVKJ7HdbbBDaHr8N515/7xHg4gISBbaEzMw2HFqLLnAKAUO126rEOTqSXqNLjFHVkcJcMmTO9CA== X-Received: by 2002:a02:203:: with SMTP id 3-v6mr5793113jau.125.1529796394214; Sat, 23 Jun 2018 16:26:34 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j7-v6sm4195245ioa.37.2018.06.23.16.26.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Jun 2018 16:26:33 -0700 (PDT) From: Noam Postavsky To: =?utf-8?Q?St=C3=A9phane?= Castelli Subject: Re: bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer References: <81r66hqc3k.fsf@blackmagic-design.com> <5026740E.8080202@enseirb-matmeca.fr> Date: Sat, 23 Jun 2018 19:26:31 -0400 In-Reply-To: <5026740E.8080202@enseirb-matmeca.fr> (=?utf-8?Q?=22St=C3=A9p?= =?utf-8?Q?hane?= Castelli"'s message of "Sat, 11 Aug 2012 17:02:38 +0200") Message-ID: <876029qe3c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 1177 Cc: 1177@debbugs.gnu.org, Feng Li X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) found 1177 25.3 tags 1177 fixed close 1177 26.1 quit St=C3=A9phane Castelli writes: > I can confirm this bug, but with function prototypes, like this : > > SDL_Surface* displayInit(void); I see the bug happen with original scenario and this one also in 25.3, but not in 26.1. From unknown Wed Jun 18 23:03:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 22 Jul 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator