Christ van Willegen wrote:
> On Sun, Sep 20, 2020 at 9:14 PM Bram Moolenaar <[email protected]> wrote: > > } > > else > > { > > // Test_colorscheme() > > if (menu->xpm_fname != NULL) > > + { > > XtSetArg(args[n], XmNpixmapFile, menu->xpm_fname); n++; > > ! } > > XtSetArg(args[n], XmNpixmapData, menu->xpm); n++; > > XtSetArg(args[n], XmNlabelLocation, XmBOTTOM); n++; > > } > > Writing this as > > if (menu->xpm_fname != NULL) > XtSetArg(args[n++], XmNpixmapFile, menu->xpm_fname); > XtSetArg(args[n++], XmNpixmapData, menu->xpm); > XtSetArg(args[n++], XmNlabelLocation, XmBOTTOM); > } > > would have been nicer in the first place, I think... No {} needed! > > I assume that those are function calls! The habit to put "n++;" at the end is they style commonly used for Motif. -- OLD WOMAN: King of the WHO? ARTHUR: The Britons. OLD WOMAN: Who are the Britons? "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202009211235.08LCZN6L3391539%40masaka.moolenaar.net.
