I vaguely recall we already discussed this topic but I couldn't find it in the forum archives.
This workaround seems to work fine:
Code: Select all
/* You shouldn't use gets. z88 gets() is limited to 255 characters */
#ifdef __STDIO_CRLF
#define gets(x) fgets_cons(x,255)
#else
extern char __LIB__ *gets(char *s);
#endif
In all the other cases the asm implementation of gets() works well.
The new versions of stdio won't be impacted because they're based on different "stdio.h" variants.
Opinions ?
I noticed also another problem with CP/M: the old file and directory related example programs are all failing.. I'm investigating. I suspect drive number definition connected to the filename specification is connected to the problem.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi