Enlightenment CVS committal Author : onefang Project : e_modules Module : emu
Dir : e_modules/emu/src/modules/emu Modified Files: border_props.c e_mod_main.c Log Message: Formatting. Yes, this uses a different .inndent.pro from the one I just committed to e17. That one doesn't apply in here. B-) =================================================================== RCS file: /cvsroot/enlightenment/e_modules/emu/src/modules/emu/border_props.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- border_props.c 5 Feb 2006 06:33:20 -0000 1.2 +++ border_props.c 1 Mar 2006 04:59:23 -0000 1.3 @@ -120,9 +120,9 @@ case 'z': result = bd->zone->name; break; - default : + default: found = 0; - break; + break; } if (!result) result = buf; =================================================================== RCS file: /cvsroot/enlightenment/e_modules/emu/src/modules/emu/e_mod_main.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- e_mod_main.c 5 Feb 2006 06:33:20 -0000 1.8 +++ e_mod_main.c 1 Mar 2006 04:59:24 -0000 1.9 @@ -1011,50 +1011,49 @@ } else { - char *buffer = NULL, *c; - int length, i = 0; + char *buffer = NULL, *c; + int length, i = 0; /* Do some % subs on action. */ - length = (strlen(action) * 2) + 1; - buffer = realloc(buffer, length); - for (c = action; (*c) != '\0'; c++) - { - if ((*c) == '%') - { - char *sub; - - c++; - sub = border_props_substitute(bd, - (*c)); // Fucked if I know why the compiler bitchs about this. - if (sub) - { - int len; - - len = strlen(sub); - if ((i + len + 1) > length) - { - length *= 2; - length += len + 1; - buffer = realloc(buffer, length); - } - memcpy(&buffer[i], sub, len + 1); - i += len; - continue; - } - if ((*c) == '\0') - break; - } - if (i > length) - { - length *= 2; - buffer = realloc(buffer, length); - } - buffer[i++] = (*c); - } - buffer[i++] = '\0'; + length = (strlen(action) * 2) + 1; + buffer = realloc(buffer, length); + for (c = action; (*c) != '\0'; c++) + { + if ((*c) == '%') + { + char *sub; + + c++; + sub = border_props_substitute(bd, (*c)); // Fucked if I know why the compiler bitchs about this. + if (sub) + { + int len; + + len = strlen(sub); + if ((i + len + 1) > length) + { + length *= 2; + length += len + 1; + buffer = realloc(buffer, length); + } + memcpy(&buffer[i], sub, len + 1); + i += len; + continue; + } + if ((*c) == '\0') + break; + } + if (i > length) + { + length *= 2; + buffer = realloc(buffer, length); + } + buffer[i++] = (*c); + } + buffer[i++] = '\0'; printf("\n_emu_menu_cb_action() -> \n%s\nbecame\n%s\n\n", action, buffer); E_FREE(action); - action = buffer; + action = buffer; } } else if ((item->easy_menu->category) && (strncmp(item->easy_menu->category, "fileman/action", 14) == 0)) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs