From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Generic stack I can use in C core? Date: Sat, 24 Sep 2022 09:52:48 -0700 Message-ID: References: <3C69BDE1-2B31-4FD5-BB8C-81F83116D239@gmail.com> <52CE9A48-5F88-4228-9F12-7C6287FE96D3@gmail.com> <838rm9q28s.fsf@gnu.org> <56706B8D-170F-420D-91C8-6BF888314B21@gmail.com> <83wn9tnvxv.fsf@gnu.org> <87wn9tb8ib.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 24 18:54:39 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oc8QI-0007zs-UN for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Sep 2022 18:54:38 +0200 Original-Received: from localhost ([::1]:33092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oc8QH-0006xu-Jl for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Sep 2022 12:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc8Od-0006DL-2a for emacs-devel@gnu.org; Sat, 24 Sep 2022 12:53:01 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:38539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oc8OZ-0006LD-K0; Sat, 24 Sep 2022 12:52:52 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so8707199pjq.3; Sat, 24 Sep 2022 09:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=RWqNlgAGQ/V7TJUdakAbFrqO1Q4/nabr6ft0hmeXCW4=; b=M5zliOuwmo8uVCeLqzH7EHOdb7nRkzucfeTQLQjvnNXvhvvI22okceJKSCHfS8DLNP fKhcrZHnBAgN4wRqFX2bczCQyrm08MPJA7y7jyOOblY3sLOOXiWyYOR3MW0cUuTrvUvn 1jVY4cwn8B+6+cQrhbPDenvk0SODPsmw4Ir+/tHaaRmLtlrfMGbCuKSKNNWuFQqzC4qL M430EpwxGWADdsgdt3YYVF4msT4nU9jNpqPb3okAc8obE+h+uywOD7WtFbj3gl71uPGG WMJRFaQePKTObWdBSbqnIHImzHWb3J0MG+XEM8ks1YP6ecK/ASb6CUrWapRVM753PofX R90g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=RWqNlgAGQ/V7TJUdakAbFrqO1Q4/nabr6ft0hmeXCW4=; b=W2rmuVNN9qGWyJjPVxS3CS5CEPoP6JAXbYEAdpDXwiO5KKolmJxValV219qH9Sb/xP jH5HKA2CAdBmPF822VgfkGf5rbmox4FRzHsP1PAJIQwpnhfFsgNF9hEtFjJp0uILwR8K gu4FHeWN538KAWJobIOZUL5v7RYdcx824qseaKl01E8j1L0MDC8xDxFB5u3pbzZRS9X7 KijBvfl3D+VCFJmMvyLfzLI60mHdInMhHRcsAf+ig9ScbfHcmqKevRvKvOhtCoPys9Sh B21PIUlaGqmz933o+H4At2hSxN9+13sCHAqfaUJp3vGr5XJ0q5iXODll84WJOwdtxQUZ /6Iw== X-Gm-Message-State: ACrzQf3czexMD3+wDOFwJ06ZxB/lLT3uOSoWliTpJn1FQyLEdQoJdlK3 TlZJ67jE/UW/z+sN3huwr5TF9DKZjXY= X-Google-Smtp-Source: AMsMyM7NDKao1z84T3cBuobsawAVvA+IDaK0xLoLxrH6M2kqzha6FEwxnuPXAMNXqvkUGFOt20TUFg== X-Received: by 2002:a17:902:e945:b0:179:ce23:dd4d with SMTP id b5-20020a170902e94500b00179ce23dd4dmr2728771pll.68.1664038369766; Sat, 24 Sep 2022 09:52:49 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id jc6-20020a17090325c600b00176b63535adsm7964590plb.260.2022.09.24.09.52.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Sep 2022 09:52:49 -0700 (PDT) In-Reply-To: <87wn9tb8ib.fsf@yahoo.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=casouri@gmail.com; helo=mail-pj1-x1034.google.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296170 Archived-At: > On Sep 23, 2022, at 11:18 PM, Po Lu wrote: >=20 >=20 >>> struct stack_node { >>> TSNode node; >>> TSNode *next; >>> }; >=20 > BTW, Yuan Fu, in Emacs source code the opening brace of a struct is > typically put on a new line. >=20 > That should be fixed here and elsewhere in the tree sitter branch code > before it is merged, I think. I=E2=80=99ve always used bracket on-the-newline, but I could have = fumbled here and there. Do you see any place where I used = bracket-at-eol? Yuan=