projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fixes.
[yaz-moved-to-github.git]
/
odr
/
odr_bit.c
diff --git
a/odr/odr_bit.c
b/odr/odr_bit.c
index
80434b7
..
aba4f3b
100644
(file)
--- a/
odr/odr_bit.c
+++ b/
odr/odr_bit.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bit.c,v $
* 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.
*
*
* Updates.
*
*
@@
-17,7
+23,7
@@
* Top level bitstring string en/decoder.
* Returns 1 on success, 0 on error.
*/
* 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;
{
int res, cons = 0;
@@
-38,9
+44,9
@@
int odr_bitstring(ODR o, ODR_BITMASK **p, int opt)
fprintf(o->print, "BITSTRING(len=%d)\n", (*p)->top + 1);
return 1;
}
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;
}
memset((*p)->bits, 0, ODR_BITMASK_SIZE);
(*p)->top = -1;
}