compile errors fixed

This commit is contained in:
Amy G. Bowersox 2019-12-07 20:59:18 -07:00
parent 2576f6ae2e
commit ebc5ae5afc
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "scode.h"
#include "gpio.h"
#include "ep_upiwin.h"
#include "ep_init.h"

View File

@ -19,15 +19,15 @@ static PyMethodDef UPIWINMethods[] = {
};
static PyModuleDef DefUPIWIN = {
PyModuleDef_HEAD_INIT, /* standard garbage */
Mod_UPIWIN, /* module name */
NULL, /* no doc string */
sizeof(UPIWIN_STATE), /* per-module memory */
UPIWINMethods, /* method defs */
NULL, /* no slots for multi-phase init */
NULL, /* no traversal proc */
NULL, /* no clear function */
NULL /* no free function */
PyModuleDef_HEAD_INIT, /* standard garbage */
"upiwin", /* module name */
NULL, /* no doc string */
sizeof(UPIWIN_STATE), /* per-module memory */
UPIWINMethods, /* method defs */
NULL, /* no slots for multi-phase init */
NULL, /* no traversal proc */
NULL, /* no clear function */
NULL /* no free function */
};
PyObject *Epython_init_upiwin_module(void)

View File

@ -34,7 +34,6 @@ int main(int argc, char *argv[])
HRESULT hr;
int running = 1;
MSG msg;
char *tmp;
/* initialization sequence */
Time_init();