@@ -7,6 +7,7 @@ endif | |||||
EXTRA_DIST = cucul/extconf.rb \ | EXTRA_DIST = cucul/extconf.rb \ | ||||
cucul/cucul.c \ | cucul/cucul.c \ | ||||
cucul/cucul-canvas.c \ | cucul/cucul-canvas.c \ | ||||
cucul/cucul-canvas.h \ | |||||
cucul/test.rb \ | cucul/test.rb \ | ||||
cucul/t/tc_frame.rb \ | cucul/t/tc_frame.rb \ | ||||
caca/extconf.rb | caca/extconf.rb | ||||
@@ -12,6 +12,7 @@ | |||||
#include <ruby.h> | #include <ruby.h> | ||||
#include <cucul.h> | #include <cucul.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include "cucul-canvas.h" | |||||
#define _SELF (DATA_PTR(self)) | #define _SELF (DATA_PTR(self)) | ||||
@@ -514,7 +515,7 @@ static VALUE export_memory(VALUE self, VALUE format) | |||||
return ret; | return ret; | ||||
} | } | ||||
static VALUE export_list() | |||||
static VALUE export_list(void) | |||||
{ | { | ||||
VALUE ary, ary2; | VALUE ary, ary2; | ||||
@@ -537,7 +538,7 @@ static VALUE export_list() | |||||
return ary; | return ary; | ||||
} | } | ||||
static VALUE import_list() | |||||
static VALUE import_list(void) | |||||
{ | { | ||||
VALUE ary, ary2; | VALUE ary, ary2; | ||||
@@ -0,0 +1,6 @@ | |||||
#ifndef __CUCUL_CANVAS_H__ | |||||
#define __CUCUL_CANVAS_H__ | |||||
extern void Init_cucul_canvas(VALUE); | |||||
#endif |
@@ -12,9 +12,9 @@ | |||||
#include <ruby.h> | #include <ruby.h> | ||||
#include <cucul.h> | #include <cucul.h> | ||||
static VALUE mCucul; | |||||
#include "cucul-canvas.h" | |||||
extern void Init_cucul_canvas(VALUE); | |||||
static VALUE mCucul; | |||||
void Init_cucul() | void Init_cucul() | ||||
{ | { | ||||