summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-12-01 13:20:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-12-01 13:20:47 (GMT)
commita8e3472731bd9d5045558167567afacadceb718d (patch)
tree817a59d083b9b491c50a61833f89dcc0113245aa /generic/tclInt.h
parent95d020a657adeaec2fb3c6f5a0bf802cc22e766d (diff)
downloadtcl-a8e3472731bd9d5045558167567afacadceb718d.zip
tcl-a8e3472731bd9d5045558167567afacadceb718d.tar.gz
tcl-a8e3472731bd9d5045558167567afacadceb718d.tar.bz2
Created a new "proper bytearray" Tcl_ObjType so we can use bytearrays
as bytearrays without all this fussing about over purity.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 8f85f19..ca8ad70 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -4427,8 +4427,7 @@ MODULE_SCOPE void TclDbInitNewObj(Tcl_Obj *objPtr, const char *file,
*----------------------------------------------------------------
*/
-#define TclIsPureByteArray(objPtr) \
- (((objPtr)->typePtr==&tclByteArrayType) && ((objPtr)->bytes==NULL))
+MODULE_SCOPE int TclIsPureByteArray(Tcl_Obj *objPtr);
/*
*----------------------------------------------------------------