From f86db2816c2a270a54da972002b55bdbdc747b70 Mon Sep 17 00:00:00 2001 From: reynaldo Date: Sat, 1 Jul 2006 04:55:54 +0000 Subject: [PATCH] this unrelated and erroneus change was applied on my previous commit, reverted git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18875 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subreader.c b/subreader.c index 66b52a0f7b..6ecf2f4c8b 100644 --- a/subreader.c +++ b/subreader.c @@ -25,7 +25,6 @@ #endif #define ERR ((void *) -1) -#define eol(x) ((x)=='\r' || (x)=='\n' || (x)=='\0') #ifdef USE_ICONV #include @@ -68,6 +67,10 @@ int sub_format=SUB_INVALID; 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;