The api/random.h header file defines a REFERENCE_PARAM macro to define some function parameters as either C pointers or XC references. In this way, the repository sets itself up to support a C API.
However, the only implementation of that API resides in the src/random.xc file. This file explicitly uses XC references in its function signatures. In addition, due to the .xc extension on the source file, the xcc compiler assumes that it contains XC unless overridden by the -x option.
To provide a proper C API, this repository needs an random.c file containing a pure C implementation.
The api/random.h header file defines a REFERENCE_PARAM macro to define some function parameters as either C pointers or XC references. In this way, the repository sets itself up to support a C API.
However, the only implementation of that API resides in the src/random.xc file. This file explicitly uses XC references in its function signatures. In addition, due to the .xc extension on the source file, the xcc compiler assumes that it contains XC unless overridden by the -x option.
To provide a proper C API, this repository needs an random.c file containing a pure C implementation.