compile errors fixed
This commit is contained in:
parent
2576f6ae2e
commit
ebc5ae5afc
|
@ -1,5 +1,6 @@
|
||||||
#define PY_SSIZE_T_CLEAN
|
#define PY_SSIZE_T_CLEAN
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
#include "scode.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
#include "ep_upiwin.h"
|
#include "ep_upiwin.h"
|
||||||
#include "ep_init.h"
|
#include "ep_init.h"
|
||||||
|
|
|
@ -19,15 +19,15 @@ static PyMethodDef UPIWINMethods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyModuleDef DefUPIWIN = {
|
static PyModuleDef DefUPIWIN = {
|
||||||
PyModuleDef_HEAD_INIT, /* standard garbage */
|
PyModuleDef_HEAD_INIT, /* standard garbage */
|
||||||
Mod_UPIWIN, /* module name */
|
"upiwin", /* module name */
|
||||||
NULL, /* no doc string */
|
NULL, /* no doc string */
|
||||||
sizeof(UPIWIN_STATE), /* per-module memory */
|
sizeof(UPIWIN_STATE), /* per-module memory */
|
||||||
UPIWINMethods, /* method defs */
|
UPIWINMethods, /* method defs */
|
||||||
NULL, /* no slots for multi-phase init */
|
NULL, /* no slots for multi-phase init */
|
||||||
NULL, /* no traversal proc */
|
NULL, /* no traversal proc */
|
||||||
NULL, /* no clear function */
|
NULL, /* no clear function */
|
||||||
NULL /* no free function */
|
NULL /* no free function */
|
||||||
};
|
};
|
||||||
|
|
||||||
PyObject *Epython_init_upiwin_module(void)
|
PyObject *Epython_init_upiwin_module(void)
|
||||||
|
|
|
@ -34,7 +34,6 @@ int main(int argc, char *argv[])
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
int running = 1;
|
int running = 1;
|
||||||
MSG msg;
|
MSG msg;
|
||||||
char *tmp;
|
|
||||||
|
|
||||||
/* initialization sequence */
|
/* initialization sequence */
|
||||||
Time_init();
|
Time_init();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user