Ver código fonte

* Fix some prototypes and use a header file for Init_cucul_canvas

tags/v0.99.beta14
Pascal Terjan pterjan 17 anos atrás
pai
commit
53aa9c6e75
4 arquivos alterados com 12 adições e 4 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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()
{


Carregando…
Cancelar
Salvar