Revision: 5173 http://geany.svn.sourceforge.net/geany/?rev=5173&view=rev Author: ntrel Date: 2010-08-17 13:51:59 +0000 (Tue, 17 Aug 2010)
Log Message: ----------- Fix formatting in read_regex().
Modified Paths: -------------- trunk/src/build.c
Modified: trunk/src/build.c =================================================================== --- trunk/src/build.c 2010-08-16 19:16:08 UTC (rev 5172) +++ trunk/src/build.c 2010-08-17 13:51:59 UTC (rev 5173) @@ -2132,17 +2132,11 @@ gboolean changed = FALSE; const gchar *reg = gtk_entry_get_text(GTK_ENTRY(regexentry));
- if ( - ( - (src == NULL /* originally there was no regex */ - || *src == NULL /* or it was NULL*/ - ) - && NZV(reg) > 0 /* and something was typed */ - ) - ||(src != NULL /* originally there was a regex*/ - && strcmp(*src, reg) != 0 /* and it has been changed */ - ) - ) + if (((src == NULL /* originally there was no regex */ + || *src == NULL) /* or it was NULL*/ + && NZV(reg)) /* and something was typed */ + || (src != NULL /* originally there was a regex*/ + && strcmp(*src, reg) != 0)) /* and it has been changed */ { if (dst != NULL) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.