all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Pagenkopf <ssaammp@gmail.com>
To: 27130@debbugs.gnu.org
Subject: bug#27130: c-mode indentation mistreats structs in function arguments
Date: Mon, 29 May 2017 08:33:35 -0500	[thread overview]
Message-ID: <CAKiGDcO6hedSbWEP=VLq5U-7PunPewX_2JD_qm_Hs6W4NJH6+A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 566 bytes --]

             reply	other threads:[~2017-05-29 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 13:33 Sam Pagenkopf [this message]
2020-11-30 11:11 ` bug#27130: c-mode indentation mistreats structs in function arguments Lars Ingebrigtsen
2020-11-30 17:04   ` Alan Mackenzie
2020-12-02  9:55     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKiGDcO6hedSbWEP=VLq5U-7PunPewX_2JD_qm_Hs6W4NJH6+A@mail.gmail.com' \
    --to=ssaammp@gmail.com \
    --cc=27130@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.