Re: [fpc-pascal] Help converting C code

2010-02-03 Thread leledumbo
> 1. no record packing for pascal specified > 2. no record packing for C specified > 3. does not show how the file on the pascal side is opened, mostly >to check if the ,1 in reset(f,1) is not missing 3 OK 1 and 2, since the original C code doesn't specify it either, should I use {$packrecord

Re: [fpc-pascal] Help converting C code

2010-02-03 Thread Marco van de Voort
In our previous episode, leledumbo said: > > corresponds to this C code: 1. no record packing for pascal specified 2. no record packing for C specified 3. does not show how the file on the pascal side is opened, mostly to check if the ,1 in reset(f,1) is not missing ___

Re: [fpc-pascal] Help converting C code

2010-02-02 Thread Michael Van Canneyt
On Tue, 2 Feb 2010, leledumbo wrote: Does the BlockRead below: type TRGBQuad = record rgbBlue: GLubyte; rgbGreen: GLubyte; rgbRed: GLubyte; rgbReserved: GLubyte; end; ... var FileHandle: File; BytesRead: GLuint; FColorPalette: PRGBQuad; NumberOfColours: GLuint; ... Bloc

[fpc-pascal] Help converting C code

2010-02-02 Thread leledumbo
Does the BlockRead below: type TRGBQuad = record rgbBlue: GLubyte; rgbGreen: GLubyte; rgbRed: GLubyte; rgbReserved: GLubyte; end; ... var FileHandle: File; BytesRead: GLuint; FColorPalette: PRGBQuad; NumberOfColours: GLuint; ... BlockRead(FileHandle,FColorPalette^,