| Revision 3,
379 bytes
checked in by xi, 8 years ago
(diff) |
|
Create directory structure and setup.py.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | #include <Python.h> |
|---|
| 3 | #include <syck.h> |
|---|
| 4 | |
|---|
| 5 | static PyMethodDef _syck_methods[] = { |
|---|
| 6 | {NULL} /* Sentinel */ |
|---|
| 7 | }; |
|---|
| 8 | |
|---|
| 9 | static char _syck_doc[] = |
|---|
| 10 | "This module provides low-level access to the Syck parser and emitter.\n" |
|---|
| 11 | "Do not use this module directly, use the module 'syck' instead.\n"; |
|---|
| 12 | |
|---|
| 13 | PyMODINIT_FUNC |
|---|
| 14 | init_syck(void) |
|---|
| 15 | { |
|---|
| 16 | Py_InitModule3("_syck", _syck_methods, _syck_doc); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.