diff --git a/package/ctypes/ctypes.c b/package/ctypes/ctypes.c index f455c998e..340abf8ec 100644 --- a/package/ctypes/ctypes.c +++ b/package/ctypes/ctypes.c @@ -1,11 +1,12 @@ #include "ctypes_Test.h" -#include "ctypes_cUint.h" -#include "ctypes_cWcharP.h" -void ctypes_cUint___init__(PikaObj* self, int value) { +#include "ctypes_c_uint.h" +#include "ctypes_c_wchar_p.h" + +void ctypes_c_uint___init__(PikaObj *self, int value){ obj_setInt(self, "value", value); } -void ctypes_cWcharP___init__(PikaObj* self, char* value) { +void ctypes_c_wchar_p___init__(PikaObj* self, char* value) { obj_setStr(self, "value", value); } diff --git a/package/ctypes/ctypes.py b/package/ctypes/ctypes.py index 4eafe3dc2..73403cd7e 100644 --- a/package/ctypes/ctypes.py +++ b/package/ctypes/ctypes.py @@ -1,10 +1,10 @@ from PikaObj import * -class cUint(TinyObj): +class c_uint(TinyObj): def __init__(self, value:int): pass -class cWcharP(TinyObj): +class c_wchar_p(TinyObj): def __init__(self, value:str): pass