changeset 18870:391faf2c1474

this unrelated and erroneus change was applied on my previous commit, reverted
author reynaldo
date Sat, 01 Jul 2006 04:55:54 +0000
parents 682a16136d6c
children 32743cc5f380
files subreader.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Sat Jul 01 03:56:13 2006 +0000
+++ b/subreader.c	Sat Jul 01 04:55:54 2006 +0000
@@ -25,7 +25,6 @@
 #endif
 
 #define ERR ((void *) -1)
-#define eol(x) ((x)=='\r' || (x)=='\n' || (x)=='\0')
 
 #ifdef USE_ICONV
 #include <iconv.h>
@@ -68,6 +67,10 @@
 unsigned long previous_sub_end;
 #endif
 
+static int eol(char p) {
+	return (p=='\r' || p=='\n' || p=='\0');
+}
+
 /* Remove leading and trailing space */
 static void trail_space(char *s) {
 	int i = 0;