struct vfbe_canvas {
int ref;
int contours;
vfbe_canvas_t start;
struct {
vfbe_canvas_element_t* data;
int size;
int capacity;
} elements;
struct {
vfbe_canvas_t* data;
int size;
int capacity;
} points;
};
type vfbe_canvas
as long ref
as long contours
as vfbe_canvas_t start
type elements_t
as vfbe_canvas_element_t ptr data
as long size
as long capacity
end type
as elements_t elements
type points_t
as vfbe_canvas_t ptr data
as long size
as long capacity
end type
as points_t points
end type
EDIT: I see paul doe has given a better answer. Also, I missed the fact that nested types can now be done in FB, starting at 1.10.0. Learn something new everyday.
...QuickTEMP.bas(4) error 14: Expected identifier, found 'vfbe_canvas_t' in 'as vfbe_canvas_t start'
...QuickTEMP.bas(7) error 14: Expected identifier, found 'vfbe_canvas_element_t' in 'as vfbe_canvas_element_t ptr data'
...QuickTEMP.bas(15) error 14: Expected identifier, found 'vfbe_canvas_t' in 'as vfbe_canvas_t ptr data'
Fail!
OP only provided a struct snippet he needed help converting to FB, not a full compileable source.
Of course there will be missing pieces as OP didn't paste the entire source, nor was that ever implied.