Or the CR's could be filtered out while loading script/lng files? SD card space is not an issue after all.
For ubasic, you could actually load it to a much smaller representation if you really wanted.
I'm still trying to work out a workflow for chdk on linux, I used svn copy, but svn diff didn't do what I expected after patching my work copy
I don't care too much what code style is used. I don't really like 8 space indent, but I can live with it. I'd prefer something like the apache standard http://httpd.apache.org/dev/styleguide.html The main difference being that indent is 4, using spaces, tabs forbidden. This is a bit closer to how things are now.
I don't even really care if there is a consistent style through all the code.
What I absolutely hate is formatting that obfuscates the function of the code. I also hate gigantic if statements all on one line.
Running the entire* codebase though a pretty printer would be OK by me, but if the people with commit access CBA to format their code, then it's not worth it the added noise in the history.
QuoteI'm still trying to work out a workflow for chdk on linux, I used svn copy, but svn diff didn't do what I expected after patching my work copyErr what ? You can't even do an svn copy without commit access (unless maybe you made your own repository ?). You should be using checkout.
Have put a query up on mantis as there's something odd happening with the gui.c compiler conditionals.
btw, you can use svn blame to see what the commits involved in creating this mess were, which may give you some idea what the code was trying to do. I've added a note to the bug.
I had to go lie down and shut my eyes for an hour after looking at, and reporting that mess, glad it's not me seeing things
Nowadays with big monitors a line length up or above 130 chars imo is also not a big problem...
if ((gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT) && (((kbd_is_key_pressed(KEY_SHOOT_HALF) || (state_kbd_script_run) || (shooting_get_common_focus_mode())) && (mode_photo || (m&MODE_SHOOTING_MASK)==MODE_STITCH )) || ((mode_video || movie_status > 1) && conf.show_values_in_video) )) {
if ( gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT ) { if( ( ( kbd_is_key_pressed(KEY_SHOOT_HALF) || state_kbd_script_run || shooting_get_common_focus_mode() ) && (mode_photo || (m&MODE_SHOOTING_MASK)==MODE_STITCH ) ) || ((mode_video || movie_status > 1) && conf.show_values_in_video) ) {
Sometimes the code itself should be more clear and logical, (e.g. the USB remote code in the kbc.c files), also everybody should use more comments (like reaylP does) to make the code clearer...how the CHDK sources looks like without comments and styling elements we can see when we look to into the sdm code.