X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=hbytes%2Fhbytes.c;h=b941937044c6d559c11b3a46d42e971f6975d516;hp=5f06d7195088cdcd6464500cb169e7ed2fe83fd2;hb=9b2c18cc9d122b45f9e737864921d32baa599f0c;hpb=9b7d11070d3e9dc1eb61cbccd5155f47a27047c3 diff --git a/hbytes/hbytes.c b/hbytes/hbytes.c index 5f06d71..b941937 100644 --- a/hbytes/hbytes.c +++ b/hbytes/hbytes.c @@ -25,7 +25,7 @@ Byte *hbytes_data(const HBytes_Value *hb) { } int hbytes_issentinel(const HBytes_Value *hb) { - return HBYTES_ISCOMPLEX(hb); + return HBYTES_ISSENTINEL(hb); } /* constructors */ @@ -52,7 +52,7 @@ void hbytes_array(HBytes_Value *returns, const Byte *array, int l) { /* destructor */ -void hbytes_free(HBytes_Value *frees) { +void hbytes_free(const HBytes_Value *frees) { if (HBYTES_ISCOMPLEX(frees)) { HBytes_ComplexValue *cx= COMPLEX(frees); TFREE(cx->dstart - cx->prespace); @@ -121,7 +121,8 @@ Byte *hbytes_append(HBytes_Value *hb, int el) { return newpart; } -HBytes_ComplexValue *prechop(HBytes_Value *hb, int cl, const Byte **rv) { +static HBytes_ComplexValue* +prechop(HBytes_Value *hb, int cl, const Byte **rv) { HBytes_ComplexValue *cx; if (cl<0) { *rv=0; return 0; }