From 040f7e6ba2e2282b80f332a031b77d7d34b4fc85 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 24 Aug 2009 21:44:22 -0700 Subject: Significant memory-management refactoring any Python extension. --- lang_ext/python/cext.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lang_ext/python/cext.c (limited to 'lang_ext/python/cext.c') diff --git a/lang_ext/python/cext.c b/lang_ext/python/cext.c new file mode 100644 index 0000000..5336f2d --- /dev/null +++ b/lang_ext/python/cext.c @@ -0,0 +1,16 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * Copyright (c) 2009 Joshua Haberman. See LICENSE for details. + * + */ + +#include "cext.h" + +PyMODINIT_FUNC +initcext(void) +{ + PyObject *mod = Py_InitModule("upb.cext", NULL); + initdefinition(); + initpb(); +} -- cgit v1.2.3