Commit e1b4c506 authored by Lysander Trischler's avatar Lysander Trischler
Browse files

Reverse order of length and array fields

I reckon it makes a bit more sense to have the length first and then the
pointer to the very first element of the array than the other way
parent af0008ab
......@@ -273,8 +273,8 @@ class TwtFile:
class _TwtFile(ctypes.Structure):
_fields_ = [("twter", ctypes.POINTER(_Twter)),
("twts", ctypes.POINTER(ctypes.POINTER(_Twt))),
("twts_len", ctypes.c_int)]
("twts_len", ctypes.c_int),
("twts", ctypes.POINTER(ctypes.POINTER(_Twt)))]
def to_python(self):
twtfile = TwtFile()
......@@ -49,8 +49,8 @@ struct twt {
struct twt_file {
struct twter *twter;
//*info *info;
struct twt *twts;
int twts_len;
struct twt *twts;
import "C"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment