General robustification.
[u/mdw/catacomb] / field-parse.c
index e815a9f..7e83fc0 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: field-parse.c,v 1.2 2004/04/01 21:28:41 mdw Exp $
+ * $Id: field-parse.c,v 1.3 2004/04/03 03:32:05 mdw Exp $
  *
  * Parse field descriptions
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: field-parse.c,v $
+ * Revision 1.3  2004/04/03 03:32:05  mdw
+ * General robustification.
+ *
  * Revision 1.2  2004/04/01 21:28:41  mdw
  * Normal basis support (translates to poly basis internally).  Rewrite
  * EC and prime group table generators in awk, so that they can reuse data
@@ -88,9 +91,9 @@ field *field_parse(qd_parse *qd)
       f = field_binnorm(m, b);      
       break;
     default:
-      f = 0;
-      break;
+      goto done;
   }
+  if (!f) qd->e = "bad field parameters";
 done:
   mp_drop(m);
   mp_drop(b);