[MPlayer-cvslog] r20713 - trunk/stream/realrtsp/asmrp.c

rtogni subversion at mplayerhq.hu
Sun Nov 5 18:08:38 CET 2006


Author: rtogni
Date: Sun Nov  5 18:08:36 2006
New Revision: 20713

Modified:
   trunk/stream/realrtsp/asmrp.c

Log:
Do not use abort()


Modified: trunk/stream/realrtsp/asmrp.c
==============================================================================
--- trunk/stream/realrtsp/asmrp.c	(original)
+++ trunk/stream/realrtsp/asmrp.c	Sun Nov  5 18:08:36 2006
@@ -418,7 +418,7 @@
     
     if (p->sym != ASMRP_SYM_ID) {
       printf ("error: identifier expected.\n");
-      abort();
+      break;
     }
 
     i = asmrp_find_id (p, p->str);
@@ -443,7 +443,7 @@
 
     if (p->sym != ASMRP_SYM_RPAREN) {
       printf ("error: ) expected.\n");
-      abort();
+      break;
     }
 
     asmrp_get_sym (p);
@@ -451,7 +451,6 @@
 
   default:
     printf ("syntax error, $ number or ( expected\n");
-    abort();
   }
 
 #ifdef LOG
@@ -461,6 +460,7 @@
   return ret;
 }
 
+
 static int asmrp_comp_expression (asmrp_t *p) {
 
   int a;
@@ -559,20 +559,20 @@
 
   if (p->sym != ASMRP_SYM_ID) {
     printf ("error: identifier expected\n");
-    abort ();
+    return;
   }
   asmrp_get_sym (p);
 
   if (p->sym != ASMRP_SYM_EQUALS) {
     printf ("error: = expected\n");
-    abort ();
+    return;
   }
   asmrp_get_sym (p);
 
   if ( (p->sym != ASMRP_SYM_NUM) && (p->sym != ASMRP_SYM_STRING) 
        && (p->sym != ASMRP_SYM_ID)) {
     printf ("error: number or string expected\n");
-    abort ();
+    return;
   }
   asmrp_get_sym (p);
 
@@ -620,7 +620,7 @@
 
   if (p->sym != ASMRP_SYM_SEMICOLON) {
     printf ("semicolon expected.\n");
-    abort ();
+    return ret;
   }
 
   asmrp_get_sym (p);



More information about the MPlayer-cvslog mailing list