|
|||||||||||
|
Re: Reworking the GTK+ cdebconf frontend
From: Colin Watson <cjwatson(at)debian.org>
Date: Wed Jun 27 2007 - 06:12:48 EDT
Attilio, the includes go with the function calls. Either you have both private dfb_* function calls and private directfb includes, or you have neither. You can't have it both ways! If you want it to build against GTK/X11, use ifdefs around both the includes and the function calls. Current cdebconf warns: /home/cjwatson/d-i/packages/cdebconf/src/modules/frontend/gtk/gtk.c: In function ‘gtk_go’: /home/cjwatson/d-i/packages/cdebconf/src/modules/frontend/gtk/gtk.c:1475: warning: implicit declaration of function ‘dfb_input_device_reload_keymap’ /home/cjwatson/d-i/packages/cdebconf/src/modules/frontend/gtk/gtk.c:1475: warning: implicit declaration of function ‘dfb_input_device_at’ ... and this is unambiguously a bug, no matter how it gets fixed. > - Text reformatting you performed to gtk.c makes it longer, althought gtk.c has never really conformed to the cdebconf coding guidelines (doc/coding.txt; admittedly cdebconf in general is wildly inconsistent, but I'm trying to improve it gradually), and has got a lot worse recently. There is no reason to be obsessed with length; as a general rule programs are not easier to read just because they're shorter, and following a consistent style across the whole codebase generally makes programs more readable regardless of length. I support cleaning it up. A number of Jérémy's changes weren't consistent with the rest of cdebconf, though. -- Colin Watson [cjwatson@debian.org] -- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Wed Jun 27 06:13:13 2007 This archive was generated by hypermail 2.1.8 : Wed Jun 27 2007 - 06:20:04 EDT |
||||||||||
|
|||||||||||