Rename C's foo_constructor to foo_initializer.

This commit is contained in:
Nigel Tao committed 2017-09-30 13:01:26 +10:00
1 parent 552fcde35a
commit a28dba7fd9
10 files changed
+115 -115

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ func (g *gen) writeFuncImplHeader(b *buffer) error {
b.writes("}")
b.printf("if (self->private_impl.magic != PUFFS_MAGIC) {"+
"self->private_impl.status = %sERROR_CONSTRUCTOR_NOT_CALLED; }", g.PKGPREFIX)
"self->private_impl.status = %sERROR_INITIALIZER_NOT_CALLED; }", g.PKGPREFIX)
b.writes("if (self->private_impl.status < 0) {")
if g.currFunk.suspendible {