Changeset: 675095ddbd82 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=675095ddbd82
Modified Files:
clients/Tests/MAL-signatures.stable.out
clients/Tests/MAL-signatures.stable.out.int128
monetdb5/modules/atoms/blob.c
monetdb5/modules/atoms/blob.mal
Branch: Dec2016
Log Message:
revert binary api change
diffs (69 lines):
diff --git a/clients/Tests/MAL-signatures.stable.out
b/clients/Tests/MAL-signatures.stable.out
--- a/clients/Tests/MAL-signatures.stable.out
+++ b/clients/Tests/MAL-signatures.stable.out
@@ -6183,7 +6183,7 @@ Ready.
[ "bbp", "getRefCount", "command bbp.getRefCount(b:bat[:any_1]):int ",
"CMDgetBATrefcnt;", "Utility for debugging MAL interpreter" ]
[ "bbp", "getStatus", "command bbp.getStatus():bat[:str] ",
"CMDbbpStatus;", "Create a BAT with the disk/load status" ]
[ "bbp", "setName", "command bbp.setName(b:bat[:any_1],n:str):str
", "CMDsetName;", "Rename a BAT" ]
-[ "blob", "#cmp", "command blob.#cmp():void ", "BLOBcmp;", ""
]
+[ "blob", "#cmp", "command blob.#cmp():void ", "BLOBnequal;", ""
]
[ "blob", "#del", "command blob.#del():void ", "BLOBdel;", ""
]
[ "blob", "#fromstr", "command blob.#fromstr():void ",
"BLOBfromstr;", "" ]
[ "blob", "#hash", "command blob.#hash():void ", "BLOBhash;",
"" ]
diff --git a/clients/Tests/MAL-signatures.stable.out.int128
b/clients/Tests/MAL-signatures.stable.out.int128
--- a/clients/Tests/MAL-signatures.stable.out.int128
+++ b/clients/Tests/MAL-signatures.stable.out.int128
@@ -8152,7 +8152,7 @@ Ready.
[ "bbp", "getRefCount", "command bbp.getRefCount(b:bat[:any_1]):int ",
"CMDgetBATrefcnt;", "Utility for debugging MAL interpreter" ]
[ "bbp", "getStatus", "command bbp.getStatus():bat[:str] ",
"CMDbbpStatus;", "Create a BAT with the disk/load status" ]
[ "bbp", "setName", "command bbp.setName(b:bat[:any_1],n:str):str
", "CMDsetName;", "Rename a BAT" ]
-[ "blob", "#cmp", "command blob.#cmp():void ", "BLOBcmp;", ""
]
+[ "blob", "#cmp", "command blob.#cmp():void ", "BLOBnequal;", ""
]
[ "blob", "#del", "command blob.#del():void ", "BLOBdel;", ""
]
[ "blob", "#fromstr", "command blob.#fromstr():void ",
"BLOBfromstr;", "" ]
[ "blob", "#hash", "command blob.#hash():void ", "BLOBhash;",
"" ]
diff --git a/monetdb5/modules/atoms/blob.c b/monetdb5/modules/atoms/blob.c
--- a/monetdb5/modules/atoms/blob.c
+++ b/monetdb5/modules/atoms/blob.c
@@ -39,7 +39,7 @@ mal_export str BLOBprelude(void *ret);
mal_export int BLOBtostr(str *tostr, int *l, blob *pin);
mal_export int BLOBfromstr(char *instr, int *l, blob **val);
-mal_export int BLOBcmp(blob *l, blob *r);
+mal_export int BLOBnequal(blob *l, blob *r);
mal_export BUN BLOBhash(blob *b);
mal_export blob * BLOBnull(void);
mal_export var_t BLOBput(Heap *h, var_t *bun, blob *val);
@@ -94,7 +94,7 @@ blob_put(Heap *h, var_t *bun, blob *val)
}
static int
-blob_cmp(blob *l, blob *r)
+blob_nequal(blob *l, blob *r)
{
size_t len = l->nitems;
@@ -447,9 +447,9 @@ fromblob_idx(str *retval, blob *b, int *
* @-
*/
int
-BLOBcmp(blob *l, blob *r)
+BLOBnequal(blob *l, blob *r)
{
- return blob_cmp(l, r);
+ return blob_nequal(l, r);
}
void
diff --git a/monetdb5/modules/atoms/blob.mal b/monetdb5/modules/atoms/blob.mal
--- a/monetdb5/modules/atoms/blob.mal
+++ b/monetdb5/modules/atoms/blob.mal
@@ -10,7 +10,7 @@ atom blob;
command tostr() address BLOBtostr;
command fromstr() address BLOBfromstr;
-command cmp() address BLOBcmp;
+command cmp() address BLOBnequal;
command hash() address BLOBhash;
command null() address BLOBnull;
command read() address BLOBread;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list