diff subreader.c @ 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 b80b0c115a24
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;