commit 02c415597da2c7019ed35d27faacf47921e02283
parent b4f256a6d030d8d07cc61561ed1c8ba27287c250
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Tue, 9 Nov 2010 13:50:58 -0800
define STR2CSTR for 1.9.2
Diffstat:
5 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/compat.h b/compat.h
@@ -0,0 +1,8 @@
+#ifndef _COMPAT_H
+#define _COMPAT_H
+
+#ifndef STR2CSTR
+#define STR2CSTR(x) ({ VALUE *y = (x); StringValuePtr(y); })
+#endif
+
+#endif
diff --git a/form_wrap.c b/form_wrap.c
@@ -29,6 +29,7 @@
#include "form_wrap.h"
#include "ncurses_wrap.h"
+#include "compat.h"
VALUE mForm;
VALUE cFIELD;
diff --git a/ncurses_wrap.c b/ncurses_wrap.c
@@ -65,6 +65,7 @@
*/
#include "ncurses_wrap.h"
+#include "compat.h"
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
diff --git a/ncursesw.gemspec b/ncursesw.gemspec
@@ -1,17 +1,17 @@
--- !ruby/object:Gem::Specification
name: ncursesw
version: !ruby/object:Gem::Version
- version: 1.2.4.1
+ version: 1.2.4.2
platform: ruby
authors: []
bindir:
cert_chain:
-date: 2009-12-31 21:27:27 -05:00
+date: 2010-11-9 13:45:50 -08:00
default_executable:
dependencies: []
-description: Hacked up version of ncurses gem that supports wide characters and ruby1.9.1. Original ncurses gem by t-peters@users.berlios.de.
+description: Hacked up version of ncurses gem that supports wide characters and ruby1.9.2. Original ncurses gem by t-peters@users.berlios.de.
email: lanerl@gmail.com
executables: []
@@ -47,6 +47,7 @@ files:
- panel_wrap.h
- menu_wrap.c
- menu_wrap.h
+- compat.h
has_rdoc: true
homepage: http://ncurses-ruby.berlios.de/
licenses: []
diff --git a/panel_wrap.c b/panel_wrap.c
@@ -23,6 +23,7 @@
#include "panel_wrap.h"
#include "ncurses_wrap.h"
+#include "compat.h"
VALUE mPanel;
VALUE cPANEL;