changeset 20697:520a41b09719

Do not use abort()
author rtogni
date Sun, 05 Nov 2006 17:08:36 +0000
parents 16fdf17a03d4
children 7088929a2cb8
files stream/realrtsp/asmrp.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/stream/realrtsp/asmrp.c	Sun Nov 05 16:49:09 2006 +0000
+++ b/stream/realrtsp/asmrp.c	Sun Nov 05 17:08:36 2006 +0000
@@ -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);