瀏覽代碼

* Fix some prototypes and use a header file for Init_cucul_canvas

tags/v0.99.beta14
Pascal Terjan pterjan 17 年之前
父節點
當前提交
53aa9c6e75
共有 4 個檔案被更改,包括 12 行新增4 行删除
  1. +1
    -0
      ruby/Makefile.am
  2. +3
    -2
      ruby/cucul/cucul-canvas.c
  3. +6
    -0
      ruby/cucul/cucul-canvas.h
  4. +2
    -2
      ruby/cucul/cucul.c

+ 1
- 0
ruby/Makefile.am 查看文件

@@ -7,6 +7,7 @@ endif
EXTRA_DIST = cucul/extconf.rb \
cucul/cucul.c \
cucul/cucul-canvas.c \
cucul/cucul-canvas.h \
cucul/test.rb \
cucul/t/tc_frame.rb \
caca/extconf.rb


+ 3
- 2
ruby/cucul/cucul-canvas.c 查看文件

@@ -12,6 +12,7 @@
#include <ruby.h>
#include <cucul.h>
#include <errno.h>
#include "cucul-canvas.h"

#define _SELF (DATA_PTR(self))

@@ -514,7 +515,7 @@ static VALUE export_memory(VALUE self, VALUE format)
return ret;
}

static VALUE export_list()
static VALUE export_list(void)
{
VALUE ary, ary2;
@@ -537,7 +538,7 @@ static VALUE export_list()
return ary;
}

static VALUE import_list()
static VALUE import_list(void)
{
VALUE ary, ary2;


+ 6
- 0
ruby/cucul/cucul-canvas.h 查看文件

@@ -0,0 +1,6 @@
#ifndef __CUCUL_CANVAS_H__
#define __CUCUL_CANVAS_H__

extern void Init_cucul_canvas(VALUE);

#endif

+ 2
- 2
ruby/cucul/cucul.c 查看文件

@@ -12,9 +12,9 @@
#include <ruby.h>
#include <cucul.h>

static VALUE mCucul;
#include "cucul-canvas.h"

extern void Init_cucul_canvas(VALUE);
static VALUE mCucul;

void Init_cucul()
{


Loading…
取消
儲存