khiops icon indicating copy to clipboard operation
khiops copied to clipboard

An API closer to ANSI C for the drivers

Open bruno-at-orange opened this issue 1 year ago • 1 comments

Description

The fread method behaves differently from C ANSI, which does not return -1 and requires to use ferror:

  • fread: https://en.cppreference.com/w/c/io/fread
  • fwrite: https://en.cppreference.com/w/c/io/fwrite

It would be better to have the same behavior as C ANSI. To implement this, the driver API needs to be modified. We can start with the null driver in order to detect potential problems and after this step, we can specify the new driver API.

bruno-at-orange avatar Oct 18 '24 09:10 bruno-at-orange

We should push this up, assuming latest khiops v10 is able to reject drivers whose major version is >0 (meaning implementing the new API)

sgouache avatar Aug 04 '25 14:08 sgouache