compile errors fixed
This commit is contained in:
parent
2576f6ae2e
commit
ebc5ae5afc
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -34,7 +34,6 @@ int main(int argc, char *argv[])
|
|||
HRESULT hr;
|
||||
int running = 1;
|
||||
MSG msg;
|
||||
char *tmp;
|
||||
|
||||
/* initialization sequence */
|
||||
Time_init();
|
||||
|
|
Loading…
Reference in New Issue
Block a user