Reuse ctype functions

15 views
Skip to first unread message

Aleksej Saushev

unread,
Dec 22, 2010, 11:23:45 AM12/22/10
to pfor...@googlegroups.com
Hello!

Why don't we reuse ANSI C89 functions rather than inlining comparisons?
Memory-constrained systems can redefine all relevant functions with macros.

ctype.diff

Phil Burk

unread,
Dec 22, 2010, 3:18:42 PM12/22/10
to pfor...@googlegroups.com
The most important feature of pForth is portability. Does EVERY C
compiler support these functions? If not then the fix would be worse
than the problem.

Phil

Aleksej Saushev

unread,
Dec 22, 2010, 7:50:41 PM12/22/10
to pfor...@googlegroups.com
Hello Phil,

Phil Burk <ph...@softsynth.com> writes:

> The most important feature of pForth is portability. Does EVERY
> C compiler support these functions? If not then the fix would be
> worse than the problem.

They are in C89 standard (ANSI X3.159-1989), see this page which
refers to ISO C and first SVID (1985):

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/ctype.h.html


--
HE CE3OH...

Reply all
Reply to author
Forward
0 new messages