* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bit.c,v $
- * Revision 1.1 1995-02-02 20:38:50 quinn
+ * Revision 1.3 1995-02-07 14:13:45 quinn
+ * Bug fixes.
+ *
+ * Revision 1.2 1995/02/03 17:04:37 quinn
+ * *** empty log message ***
+ *
+ * Revision 1.1 1995/02/02 20:38:50 quinn
* Updates.
*
*
* Top level bitstring string en/decoder.
* Returns 1 on success, 0 on error.
*/
-int odr_bitstring(ODR o, ODR_BITMASK **p, int opt)
+int odr_bitstring(ODR o, Odr_bitmask **p, int opt)
{
int res, cons = 0;
fprintf(o->print, "BITSTRING(len=%d)\n", (*p)->top + 1);
return 1;
}
- if (o->direction == ODR_DECODE && !*p)
+ if (o->direction == ODR_DECODE)
{
- *p = nalloc(o, sizeof(ODR_BITMASK));
+ *p = nalloc(o, sizeof(Odr_bitmask));
memset((*p)->bits, 0, ODR_BITMASK_SIZE);
(*p)->top = -1;
}