From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Pagenkopf Newsgroups: gmane.emacs.bugs Subject: bug#27130: c-mode indentation mistreats structs in function arguments Date: Mon, 29 May 2017 08:33:35 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113c2366eede520550a9bbc5" X-Trace: blaine.gmane.org 1496073945 31790 195.159.176.226 (29 May 2017 16:05:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 16:05:45 +0000 (UTC) To: 27130@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 29 18:05:39 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFNAo-00082g-8U for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 18:05:38 +0200 Original-Received: from localhost ([::1]:49504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFNAt-0006EF-Li for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 12:05:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFN6O-0002VB-PE for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 12:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFN6M-0005LA-St for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 12:01:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFN6M-0005Ks-Ff for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 12:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFN6M-0003b0-8Y for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Pagenkopf Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2017 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149607361013756 (code B ref -1); Mon, 29 May 2017 16:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 May 2017 16:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:43530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFN5W-0003Zn-E0 for submit@debbugs.gnu.org; Mon, 29 May 2017 12:00:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFKnp-0008Te-38 for submit@debbugs.gnu.org; Mon, 29 May 2017 09:33:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFKnj-00082w-4v for submit@debbugs.gnu.org; Mon, 29 May 2017 09:33:39 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFKnj-00082s-1W for submit@debbugs.gnu.org; Mon, 29 May 2017 09:33:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFKni-0001Ez-3j for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 09:33:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFKnh-00082H-AJ for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 09:33:38 -0400 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:32918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFKnh-00081p-6X for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 09:33:37 -0400 Original-Received: by mail-qt0-x231.google.com with SMTP id t26so49945614qtg.0 for ; Mon, 29 May 2017 06:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BpZuKGUbvHkFno06/fX2U7Yb5FvVyefMZXPo0af6ce0=; b=A2KrnvokFOu31/eCMcGS02YgwS4kQS+Wpy+hycGwnOj/KPNbI1vsr8FlucunFESqt2 nysOKZYjGxRSKT78d995WSdu/LdW+lxHUU4WyeC2t+fMGblExda1kt98p44rPn0F21y4 hKKMFFO0x94oqN07SDNYrPh0rfWjne74JYPeFle6/UOvVpJjJCQUkEWqjESbEh/pDvt/ bD4YfIWQ+CRvIsi9yHv4tXImsHU3Vp2lZIYHbTMZmFx6L80sI0wdtIafOlWJN/X67w53 fGzCL7zcWiV5zF8uXThyjwk8FjOpGomeweu/a19gtCjCnNVJOkpTi91Mf2WBwPhYqnk9 vqNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BpZuKGUbvHkFno06/fX2U7Yb5FvVyefMZXPo0af6ce0=; b=eLM1gnC6QL2PtwzDdd1hiyXd8HB7h3HGFPL+G8r4MztFNun3JgAeTCpyVmW2SbH+nd CquXYmamXNCY2wwCENafPRRX0UncclrhZyQPPTWejYk1f9LZyjgLYznz8/GNuHxM0eUe uiaDF1EUOQr30kOObjx+/O+bqw5AAzQs1ZJ67oNRYG5TCR759So3/RqQixPGx0g/czu3 f8/eCPmIExlUYHkyjXjEyKWaKEMHR9AButrNPhWPMPjZ0lt2kurTyaFbRrmjj9mfTnsz Ai0qqLQQGhjyv1uY81k/qUfkbFOoweeQvwlKYIsYTNrIwSL3sTMq1dMMel85lTRNzqSm bMaw== X-Gm-Message-State: AODbwcDHNmDSuRCtKxkBoCNb02mt/nUWNaLsQI6exNIy3xJKsPT+agky 06P2VxdnUcqpiatVMUfhJCcUrKxegLB3 X-Received: by 10.237.35.34 with SMTP id h31mr17283502qtc.148.1496064816240; Mon, 29 May 2017 06:33:36 -0700 (PDT) Original-Received: by 10.237.61.113 with HTTP; Mon, 29 May 2017 06:33:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 29 May 2017 12:00:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132990 Archived-At: --001a113c2366eede520550a9bbc5 Content-Type: text/plain; charset="UTF-8" In emacs 25.2.1. Relevant code: draw_add(&battle.draw, (Drawn){ .kind = DRAW_RECT, .size = {40,24}, .pos.border = { .align = {ALIGN_LEFT, ALIGN_TOP}, .dist = 3 } } ); My guess is that it's reading (Drawn){...} as a statement, and the , as the (,) C operator. --001a113c2366eede520550a9bbc5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+SW4gZW1hY3MgMjUuMi4xLjxicj48ZGl2Pjxicj5SZWxldmFudCBjb2Rl Ojxicj48ZGl2Pjxicj7CoMKgwqAgZHJhd19hZGQoJmFtcDtiYXR0bGUuZHJhdywgKERyYXduKXs8 YnI+wqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAua2luZCA9IERSQVdfUkVDVCw8YnI+wqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgIC5zaXplID0gezQwLDI0fSw8YnI+wqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgIC5wb3MuYm9yZGVyID0gezxicj7CoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqAgLmFsaWduID0ge0FMSUdOX0xFRlQsIEFMSUdOX1RPUH0sPGJyPsKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoCAuZGlzdCA9IDM8YnI+wqDCoMKgwqDCoMKgwqDCoMKgwqDCoCB9 PGJyPsKgwqDCoMKgwqDCoMKgIH08YnI+wqDCoMKgwqDCoMKgwqAgKTs8YnI+PGJyPk15IGd1ZXNz IGlzIHRoYXQgaXQmIzM5O3MgcmVhZGluZyAoRHJhd24pey4uLn0gYXMgYSBzdGF0ZW1lbnQsIGFu ZCB0aGUgLCBhczxicj50aGUgKCwpIEMgb3BlcmF0b3IuPC9kaXY+PC9kaXY+PC9kaXY+DQo= --001a113c2366eede520550a9bbc5--