Po Lu writes: > Daniel Martín writes: > >> +#define CG_SET_FILL_COLOR_WITH_FRAME_CURSOR(context, frame) \ >> + do { \ >> + CGColorRef refcol_ = \ >> + get_cgcolor_from_nscolor (FRAME_CURSOR_COLOR (frame), frame); \ >> + CGContextSetFillColorWithColor (context, refcol_); \ >> + CGColorRelease (refcol_); \ >> + } while (0) >> +#define CG_SET_FILL_COLOR_WITH_FRAME_BACKGROUND(context, frame) \ >> + do { \ >> + CGColorRef refcol_ = \ >> + get_cgcolor_from_nscolor (FRAME_BACKGROUND_COLOR (frame), frame); \ >> + CGContextSetFillColorWithColor (context, refcol_); \ >> + CGColorRelease (refcol_); \ >> + } while (0) > > Thanks. The GNU Coding Standards split expressions, before operators. > So this should read: > > do { > CGColorRef refcol > = ... > > also, since you put this in a separate block, you don't have to worry > about shadowing, so there's no need to use names with a trailing > underscore. > OK, I've removed the trailing underscore in the other macros as well. Here's a new patch with the requested changes. If everything looks good, could someone install the patch for me? (I don't have push access to the repository.) Thanks.