From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61403: 30.0.50; C tree-sitter bug? Date: Fri, 10 Feb 2023 23:14:10 +0800 Message-ID: <87h6vt364d.fsf@yahoo.com> References: <87h6vt364d.fsf.ref@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16543"; mail-complaints-to="usenet@ciao.gmane.io" To: 61403@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 16:17:12 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQV9E-00044s-0I for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 16:17:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQV96-0007fP-05; Fri, 10 Feb 2023 10:17:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQV94-0007eu-5p for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 10:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQV93-0001bW-TM for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 10:17:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQV93-0007Jw-OX for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 10:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 15:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61403 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167604219128098 (code B ref -1); Fri, 10 Feb 2023 15:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2023 15:16:31 +0000 Original-Received: from localhost ([127.0.0.1]:37908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQV8Y-0007J5-CN for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:16:30 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQV8V-0007Iw-MT for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:16:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQV8V-000719-GV for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 10:16:27 -0500 Original-Received: from sonic309-47.consmr.mail.ne1.yahoo.com ([66.163.184.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQV8S-0001SQ-Vp for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 10:16:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676042180; bh=8ajrRHNeg37o/9V3FUdeqeMllkDlIdXCoPuOz1YP8pk=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=P+ajCrUBASMfad6DDGYNpUeRnni3NcPQISLbVZp4srM6qgFr+GNQBvsfbmr3uxjcORrz2kIZzyWilGokxMYcm9ROCfxa7tqEUx8nydif1dF+2vIbYnRVucdrjc1lhfln5Zgl/8JjSdNAoFbsYo12DeuS6SEZqJQh2TbFfd3+X9HmSl3S/hNlVwqetfyBzw1ic9I3uNeb00rrOPrKHuuaYDVFPkQefhRlKW/sG1T3lII6hJshsVQT6KblMJpZyVvW2usdrkZdaJgssSrxUehibpRklDTp3WQ3eGVZsuZQqlyeos8EFibb/Rjy30Pnp5bOo+7odxSkH+zqIzDfb8v31w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676042180; bh=FgLrpeeLu3M3NqINwNYq+cQzUIO1RQH/r3I6nDBs7Et=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=XvMlpKw1hSFM9djRUKLxw0TpRwoFkQcvotJNo1OHsShmzD++GO1H50G3TMJFF0pS9PFBPeKa6MyPMFqdTxHi29RuJdaj+J756N8NjrVko0VVZpWUDohWfSz51fkVR5TUQAAIPJqPJWEDwkuveT2j621YH8Z2UzBu2o6pVOL+V25NqbT+2LO4lUjJM1WGXgxUwhay7J+WQj0lsDS6LHJG9mZ67GPnMsrkBVfvlvkETNzGeOARUm9Pxz+xjPapPSVUXOI2jkouIa0Vukg+3wHZDFofL3MysDi+48vKJq3pOuAgwLmDZuNYxhH2d9xElWZz8/2BlqPwoU0VMFKWILatKg== X-YMail-OSG: lZHHXO4VM1lqKvhZmG9TZzfZGBGI2h3fRHImm6TKwwtNMlrWX.IzZbgIu7s7HIs _8fMdYnTUFKexGu63G94o2u9DX95G.72MqtF67anhvwH9lVujmLkMfRj4Hxyn_eaD.dp0pVXBSLt TE3sqP_qLsKMPbZn5rLK1bp_.JBn_xNvOMV_DvQ5gLXnmZxT3h1rYCe3WvFBNZsrw1OBTF_kwTDU sUTAlTdn11nHQrLquLWd7qnTju11JhRnekKFxSjWO5JPdVwf96klQ5c7d85Hg7poKZrjW.owZKhy DujWZVZFZ_.kqVFwZshMYGmeiN2rqkLRHjhYGojCH43U8gWqH7UTNtrulqdjP7lSaRZv68dCGhWl vCwmRtLdFOhl9LL0KeK_JkfYGjDjtij8xEWqhsy1LEKg8tcWg__gcFxtM.0pyt.UKyum5Kay1JMp cSgKXcmJ69E92covAfQNBt_r2zt3yT3cFNPd6EZN6l0_Y9E8kHwk6ihPQl653FXhzfxpX0lNNjMs oVjApjatAIWFFIAgfro5AuSxmiquS2wdc2vxd9SQSYtGIzWIiyR6II_wjmN50ffjxl2k_RFLEsC6 17AF4PgOyDNEtW58HWxuC97fC_B9pIHIpUyd88PA3VUpaUB38TQ11EWkfe_Ou49VcReppaDcXUbK xhwejIP2MQvAy4XDY6_nJyQsT2HQcXC.o_tvzhYaQcOAV8azriiM8lGhzktTtCEyB9hbyrOojPhT xnON_jbtM27JeUtsexdlLoJ117dZXPTtHgu6e_Qok7fIhi.tG3BwKOh_EhYOo8pqi.qVghMabCU4 eMrmKxGdZH7wMiUafHNa5Mp6FLLHFxRAjokHRHRYha X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Fri, 10 Feb 2023 15:16:20 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-r2vxw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 13628e0f3b3a1f87377f71a513aab95b; Fri, 10 Feb 2023 15:14:16 +0000 (UTC) X-Mailer: WebService/1.1.21161 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.173; envelope-from=luangruo@yahoo.com; helo=sonic309-47.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255290 Archived-At: Go to sfnt.c in the feature/android branch, and turn on c-ts-mode. Then, go to line 10754, around which should be the function definition: /* Load the simple glyph GLYPH into the specified INTERPRETER, scaling it up by INTERPRETER's scale, and run its glyph program if present. Use the unscaled metrics specified in METRICS. Upon success, return NULL and the resulting points and contours in *VALUE. Else, value is the reason interpretation failed. */ TEST_STATIC const char * sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph, struct sfnt_interpreter *interpreter, struct sfnt_glyph_metrics *metrics, struct sfnt_instructed_outline **value) { size_t zone_size, temp, outline_size, i; struct sfnt_interpreter_zone *zone; struct sfnt_interpreter_zone *volatile preserved_zone; sfnt_f26dot6 phantom_point_1_x; `TEST_STATIC' is fontified as a type. Perhaps tree-sitter needs something along the lines of `c-noise-macros'? Likewise for _Noreturn: _Noreturn static void sfnt_interpret_trap (struct sfnt_interpreter *interpreter, const char *reason) { _Noreturn is a keyword in 2011 Standard C. I think the tree-sitter parser definition files should be updated to understand it. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu) of 2023-02-10 built on RepoWS1 Repository revision: 680bc20553ebf01375ab7957b6f0be066335fd6e Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101099 System Description: Fedora Linux 37 (Workstation Edition) Configured using: 'configure --with-x --with-x-toolkit=no --without-cairo --with-dumping=unexec --cache-file=/tmp/ccache' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY OLDXMENU PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER UNEXEC WEBP X11 XDBE XFT XIM XINPUT2 XPM ZLIB Important settings: value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: C Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils mule-util display-line-numbers c-ts-mode cl-extra help-mode warnings icons c-ts-common treesit cl-seq vc bug-reference byte-opt gv bytecomp byte-compile cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher dired-aux cl-loaddefs cl-lib dired dired-loaddefs shell subr-x pcomplete comint ansi-osc ansi-color ring rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 222669 14119) (symbols 48 25643 0) (strings 32 45435 2367) (string-bytes 1 1362327) (vectors 16 26563) (vector-slots 8 868096 36136) (floats 8 84 104) (intervals 56 21736 0) (buffers 984 23))