Nicola Girardi wrote:
i'm translating svgalib header file (vga.h) under pascal to make it simply available by using vga.gpi.
i have some troubles in translating some things, and i ask you for help...
these are things i can't translate (they are part of a struct/record)
{FIXME void *extensions;}
Extensions : Pointer;
{FIXME char *linear_aperture;}
type TBytes = array [0 .. MaxInt] of Byte; PBytes = ^TBytes;
LinearAperture : PBytes;
(Most of the time, char * is CString, but here, this is clearly not a C string, but rather a pointer to a 0-based array of Byte (Byte in Pascal is unsigned char in C), so the above is probably the best approximation...)
{FIXME void (*set_aperture_page) (int page);}
SetAperturePage : ^procedure (Page : Integer);
{FIXME unsigned char *colors)}
Colors : PBytes;
Frank