diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 12:23:39 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 12:23:39 +0100 |
commit | a56dedbe9807286928fc56fbb489fa637b4b7e80 (patch) | |
tree | 02fcc6104cea8e71114eb00d5c36ada77d281194 /strbuf.c | |
parent | Something. (diff) | |
download | calp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.gz calp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.xz |
Even more work.
Diffstat (limited to 'strbuf.c')
-rw-r--r-- | strbuf.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -94,6 +94,14 @@ strbuf& strbuf::operator=(strbuf& other) { return *this; } +bool strbuf::operator==(strbuf& other) { + return strbuf_cmp(this, &other); +} + +bool strbuf::operator==(const char* other) { + return strbuf_c(this, other); +} + int strbuf_cmp(strbuf* a, strbuf* b) { if (a == NULL || a->alloc == 0 || b == NULL || b->alloc == 0) |