On 03 Jan 2006, at 23:58, Alain Michaud wrote:

plPlotterParams * pl_newplparams (void)

The function "pl_newplparams" is supposed create a structure (record)
and then return some "pointer" to it. The user is not supposed to access this data directly, so there is NO reference to "plPlotterParams" al all
in the header files (plot.h)! How does the C compiler knows what
plPlotterParams is then?

It is in a header file, otherwise the C compiler will not compile it either. According to https://bugzilla.redhat.com/bugzilla/ attachment.cgi?id=3380, it may be defined like this in plotter.h:

typedef struct plPlotterParamsStruct
{
int (*setplparam) (struct plPlotterParamsStruct *_plotter_params, const char *parameter, void * value);
  void * plparams[33];
}
PlotterParams;


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to