hi,
i tried to search for this translation problem, but couldn’t find anything.
maybe some one can tell me how the following code is translated to powerbasic.
i would need to know, how the function pointers are handled in powerbasic
in a translated structure and in a translated function call.
btw, is there a tool that will translate C headers to powerbasic include files?
thank you for any help
hans
typedef signed short ISC_SHORT;
typedef unsigned short ISC_USHORT;
typedef unsigned char ISC_UCHAR;
typedef char ISC_SCHAR;
typedef signed long ISC_LONG;
typedef unsigned long ISC_ULONG;
typedef void (* isc_callback) ();
typedef ISC_LONG isc_resv_handle;
typedef void (*ISC_PRINT_CALLBACK) (void*, ISC_SHORT, const char*);
typedef void (*ISC_VERSION_CALLBACK)(void*, const char*);
typedef void (*ISC_EVENT_CALLBACK) (void*, ISC_USHORT, const ISC_UCHAR*);
ISC_STATUS ISC_EXPORT isc_print_blr(const ISC_SCHAR*,typedef struct blobcallback {
i tried to search for this translation problem, but couldn’t find anything.
maybe some one can tell me how the following code is translated to powerbasic.
i would need to know, how the function pointers are handled in powerbasic
in a translated structure and in a translated function call.
btw, is there a tool that will translate C headers to powerbasic include files?
thank you for any help
hans
typedef signed short ISC_SHORT;
typedef unsigned short ISC_USHORT;
typedef unsigned char ISC_UCHAR;
typedef char ISC_SCHAR;
typedef signed long ISC_LONG;
typedef unsigned long ISC_ULONG;
typedef void (* isc_callback) ();
typedef ISC_LONG isc_resv_handle;
typedef void (*ISC_PRINT_CALLBACK) (void*, ISC_SHORT, const char*);
typedef void (*ISC_VERSION_CALLBACK)(void*, const char*);
typedef void (*ISC_EVENT_CALLBACK) (void*, ISC_USHORT, const ISC_UCHAR*);
ISC_STATUS ISC_EXPORT isc_print_blr(const ISC_SCHAR*,
ISC_PRINT_CALLBACK,
void*,
short);
void*,
short);
short (*blob_get_segment) (void* hnd, ISC_UCHAR* buffer, ISC_USHORT buf_size, ISC_USHORT* result_len);
void* blob_handle;
ISC_LONG blob_number_segments;
ISC_LONG blob_max_segment;
ISC_LONG blob_total_length;
void (*blob_put_segment)(void* hnd, const ISC_UCHAR* buffer, ISC_USHORT buf_size);
ISC_LONG (*blob_lseek)(void* hnd, ISC_USHORT mode, ISC_LONG offset);
} *BLOBCALLBACK;
void* blob_handle;
ISC_LONG blob_number_segments;
ISC_LONG blob_max_segment;
ISC_LONG blob_total_length;
void (*blob_put_segment)(void* hnd, const ISC_UCHAR* buffer, ISC_USHORT buf_size);
ISC_LONG (*blob_lseek)(void* hnd, ISC_USHORT mode, ISC_LONG offset);
Comment