Hi all This is again a small patch to stick closer to vim's code style.
A question though: Does it make sense to ``produce'' such patches? I think it is very cumbersome to have a look at such patches. Many many lines of code. As far as I'm concerned, I don't bother producing them. I just like to have clean code ;-) Greetings Elias -- 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
*** ../vim/src/gui_photon.c 2011-07-24 16:17:22.000000000 +0200 --- src/gui_photon.c 2011-07-24 17:03:19.000000000 +0200 *************** *** 35 **** ! #define RGB(r,g,b) PgRGB(r,g,b) --- 35 ---- ! #define RGB(r, g, b) PgRGB(r, g, b) *************** *** 37 **** ! #define EVENT_BUFFER_SIZE sizeof( PhEvent_t ) + 1000 --- 37 ---- ! #define EVENT_BUFFER_SIZE sizeof(PhEvent_t) + 1000 *************** *** 209 **** ! static void gui_ph_get_panelgroup_margins( short*, short*, short*, short* ); --- 209 ---- ! static void gui_ph_get_panelgroup_margins(short*, short*, short*, short*); *************** *** 213 **** ! static PhImage_t *gui_ph_toolbar_find_icon( vimmenu_T *menu ); --- 213 ---- ! static PhImage_t *gui_ph_toolbar_find_icon(vimmenu_T *menu); *************** *** 216,217 **** ! static void gui_ph_draw_start( void ); ! static void gui_ph_draw_end( void ); --- 216,217 ---- ! static void gui_ph_draw_start(void); ! static void gui_ph_draw_end(void); *************** *** 220 **** ! static PtWidget_t * gui_ph_show_tooltip( PtWidget_t *window, --- 220 ---- ! static PtWidget_t * gui_ph_show_tooltip(PtWidget_t *window, *************** *** 226 **** ! PgColor_t text_color ); --- 226 ---- ! PgColor_t text_color); *************** *** 230 **** ! static PtWidget_t * gui_ph_show_tooltip( PtWidget_t *window, --- 230 ---- ! static PtWidget_t * gui_ph_show_tooltip(PtWidget_t *window, *************** *** 236 **** ! PgColor_t text_color ) --- 236 ---- ! PgColor_t text_color) *************** *** 242,243 **** ! PtSetArg( &arg, Pt_ARG_POINTER, &menu, 0 ); ! PtGetResources( widget, 1, &arg ); --- 242,243 ---- ! PtSetArg(&arg, Pt_ARG_POINTER, &menu, 0); ! PtGetResources(widget, 1, &arg); *************** *** 248 **** ! if( menu != NULL ) --- 248 ---- ! if (menu != NULL) *************** *** 251 **** ! if( menu->strings[ index ] != NULL ) --- 251 ---- ! if (menu->strings[ index ] != NULL) *************** *** 255 **** ! return( PtInflateBalloon( --- 255 ---- ! return (PtInflateBalloon( *************** *** 264 **** ! text_color ) ); --- 264 ---- ! text_color)); *************** *** 268 **** ! gui_ph_resize_container( void ) --- 268 ---- ! gui_ph_resize_container(void) *************** *** 272,273 **** ! PtWidgetArea( gui.vimWindow, &area ); ! PtWidgetPos ( gui.vimContainer, &area.pos ); --- 272,273 ---- ! PtWidgetArea(gui.vimWindow, &area); ! PtWidgetPos (gui.vimContainer, &area.pos); *************** *** 275 **** ! PtSetResource( gui.vimContainer, Pt_ARG_AREA, &area, 0 ); --- 275 ---- ! PtSetResource(gui.vimContainer, Pt_ARG_AREA, &area, 0); *************** *** 282 **** ! PtCallbackInfo_t *info ) --- 282 ---- ! PtCallbackInfo_t *info) *************** *** 294 **** ! if( gui.menu_is_active ) --- 294 ---- ! if (gui.menu_is_active) *************** *** 313 **** ! PtSetResource( container, Pt_ARG_POS, &below_menu, 0 ); --- 313 ---- ! PtSetResource(container, Pt_ARG_POS, &below_menu, 0); *************** *** 320 **** ! &pg_margin_left, &pg_margin_right ); --- 320 ---- ! &pg_margin_left, &pg_margin_right); *************** *** 322 **** ! return( Pt_CONTINUE ); --- 322 ---- ! return (Pt_CONTINUE); *************** *** 333 **** ! PtCallbackInfo_t *info ) --- 333 ---- ! PtCallbackInfo_t *info) *************** *** 335 **** ! if( blink_state == BLINK_ON ) --- 335 ---- ! if (blink_state == BLINK_ON) *************** *** 339,340 **** ! PtSetResource( gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL, ! blink_offtime, 0 ); --- 339,340 ---- ! PtSetResource(gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL, ! blink_offtime, 0); *************** *** 346,347 **** ! PtSetResource( gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL, ! blink_ontime, 0 ); --- 346,347 ---- ! PtSetResource(gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL, ! blink_ontime, 0); *************** *** 349 **** ! return( Pt_CONTINUE ); --- 349 ---- ! return (Pt_CONTINUE); *************** *** 357 **** ! return( Pt_CONTINUE ); --- 357 ---- ! return (Pt_CONTINUE);
