Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/plugins
Modified Files:
ewl_io_manager_image_plugin.c ewl_io_manager_text_c_plugin.c
ewl_io_manager_text_plugin.c
Log Message:
Remove trailing whitespace.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/plugins/ewl_io_manager_image_plugin.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_io_manager_image_plugin.c 25 Jul 2007 19:18:09 -0000 1.5
+++ ewl_io_manager_image_plugin.c 23 Aug 2007 05:26:52 -0000 1.6
@@ -52,7 +52,7 @@
}
int
-ewl_io_manager_plugin_string_write(Ewl_Widget *data,
+ewl_io_manager_plugin_string_write(Ewl_Widget *data,
const char **string __UNUSED__)
{
DENTER_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/plugins/ewl_io_manager_text_c_plugin.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_io_manager_text_c_plugin.c 6 Feb 2007 23:14:02 -0000 1.7
+++ ewl_io_manager_text_c_plugin.c 23 Aug 2007 05:26:52 -0000 1.8
@@ -9,7 +9,7 @@
static int string_is_keyword(Ecore_Hash *keys, const char * string);
static void text_set(Ewl_Text *t, char *text);
-enum text_mode
+enum text_mode
{
COMMAND,
C_COMMENT,
@@ -68,7 +68,7 @@
{
int i;
-
+
key1 = ecore_hash_new(ecore_str_hash, ecore_str_compare);
key2 = ecore_hash_new(ecore_str_hash, ecore_str_compare);
@@ -93,7 +93,7 @@
file = fopen(uri, "r");
- if (file)
+ if (file)
{
struct stat buf;
char *str;
@@ -106,7 +106,7 @@
fread(str, buf.st_size, 1, file);
str[buf.st_size] = '\0';
fclose(file);
-
+
text_set(EWL_TEXT(ret), str);
FREE(str);
}
@@ -179,8 +179,8 @@
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("string", string, FALSE);
-
- DRETURN_INT(((ecore_hash_get(keys, string) != NULL) ? TRUE : FALSE),
+
+ DRETURN_INT(((ecore_hash_get(keys, string) != NULL) ? TRUE : FALSE),
DLEVEL_STABLE);
}
@@ -210,28 +210,28 @@
else if (isdigit(*tx1))
mode = NUMBER;
-
+
else if (*tx1 == '\"' && !( tx1 != text && *(tx1 - 1) == '\\'))
mode = STRING;
else
mode = REST;
-
+
/*
* finde the end of the mode
*/
tx2++;
- switch (mode)
+ switch (mode)
{
case NUMBER:
case COMMAND:
while(isalnum(*tx2) || (*tx2 == '_'))
tx2++;
break;
-
+
case C_COMMENT:
- while((*tx2 != '\0') &&
- (!((*tx2 == '*')
+ while((*tx2 != '\0') &&
+ (!((*tx2 == '*')
&& (*(tx2 + 1) ==
'/'))))
tx2++;
@@ -246,8 +246,8 @@
break;
case STRING:
- while((*tx2 != '\0')
- && !((*tx2 == '\"')
+ while((*tx2 != '\0')
+ && !((*tx2 == '\"')
&& (*(tx2 - 1) !=
'\\')))
tx2++;
@@ -265,16 +265,16 @@
default:
break;
}
-
+
/* append the text */
remc = *tx2;
*tx2 = '\0';
-
- if (mode == COMMAND && ((tx2 - tx1) < 8) &&
+
+ if (mode == COMMAND && ((tx2 - tx1) < 8) &&
string_is_keyword(key1, tx1))
ewl_text_color_set(t, 68, 144, 169, 255);
- else if ((mode == COMMAND) && ((tx2 - tx1) < 8) &&
+ else if ((mode == COMMAND) && ((tx2 - tx1) < 8) &&
string_is_keyword(key2, tx1))
ewl_text_color_set(t, 26, 117, 3, 255);
@@ -292,7 +292,7 @@
else
ewl_text_color_set(t, 0, 0, 0, 255);
-
+
ewl_text_text_append(t, tx1);
*tx2 = remc;
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/plugins/ewl_io_manager_text_plugin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_io_manager_text_plugin.c 6 Feb 2007 21:13:08 -0000 1.4
+++ ewl_io_manager_text_plugin.c 23 Aug 2007 05:26:52 -0000 1.5
@@ -15,7 +15,7 @@
DCHECK_PARAM_PTR_RET("uri", uri, NULL);
file = fopen(uri, "r");
- if (file)
+ if (file)
{
struct stat buf;
char *str;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs