Reverted recent change: "Implemented ctk_arch_isprint as macro like the gtk target does." as it obviously causes trouble with the cc65 isprint inline stuff.
diff --git a/contiki-apple2/ctk/ctk-arch.h b/contiki-apple2/ctk/ctk-arch.h
index a7a721f..02d08e7 100644
--- a/contiki-apple2/ctk/ctk-arch.h
+++ b/contiki-apple2/ctk/ctk-arch.h
@@ -32,7 +32,7 @@
*
* This file is part of the "ctk" console GUI toolkit for cc65
*
- * $Id: ctk-arch.h,v 1.8 2005/04/17 12:37:24 oliverschmidt Exp $
+ * $Id: ctk-arch.h,v 1.9 2005/04/17 22:40:11 oliverschmidt Exp $
*
*/
#ifndef __CTK_ARCH_H__
@@ -54,8 +54,6 @@
#ifdef __APPLE2ENH__
-#define ctk_arch_isprint(x) isprint(x)
-
extern unsigned char ctk_draw_background;
#define ctk_draw_getbackground() ctk_draw_background
diff --git a/contiki-apple2/ctk/ctk-mousetext.c b/contiki-apple2/ctk/ctk-mousetext.c
index d06f77f..88ed4db 100644
--- a/contiki-apple2/ctk/ctk-mousetext.c
+++ b/contiki-apple2/ctk/ctk-mousetext.c
@@ -29,7 +29,7 @@
*
* This file is part of the "ctk" console GUI toolkit for cc65
*
- * $Id: ctk-mousetext.c,v 1.15 2005/04/17 12:37:24 oliverschmidt Exp $
+ * $Id: ctk-mousetext.c,v 1.16 2005/04/17 22:40:11 oliverschmidt Exp $
*
*/
@@ -427,3 +427,8 @@
return 80;
}
/*-----------------------------------------------------------------------------------*/
+int
+ctk_arch_isprint(char c)
+{
+ return isprint(c);
+}