View | Details | Raw Unified
Collapse All | Expand All

(-) ruby-gdchart-0.0.9-beta.orig/gdchart0.11.2dev/gdc.c (+1 lines)
 Lines 5-10    Link Here 
#define GDC_LIB
#define GDC_LIB
#include <math.h>
#include <math.h>
#include "gdc.h"
#include "gdc.h"
#include <string.h>
struct	GDC_FONT_T	GDC_fontc[GDC_numfonts] = { (gdFontPtr)NULL, 8,  5,
struct	GDC_FONT_T	GDC_fontc[GDC_numfonts] = { (gdFontPtr)NULL, 8,  5,
											    (gdFontPtr)NULL, 8,  5,
											    (gdFontPtr)NULL, 8,  5,
(-) ruby-gdchart-0.0.9-beta.orig/gdchart.c (-5 / +5 lines)
 Lines 235-241    Link Here 
      rb_raise(rb_eTypeError, "%s expect %s", name, "Bool Array");
      rb_raise(rb_eTypeError, "%s expect %s", name, "Bool Array");
    length = RARRAY(value)->len;
    length = RARRAY(value)->len;
    (char*)result = ALLOC_N(char, length);
    result = (char*)ALLOC_N(char, length);
    for (i = 0; i < length; i++) {
    for (i = 0; i < length; i++) {
      entry = rb_ary_entry(value, i);
      entry = rb_ary_entry(value, i);
 Lines 272-278    Link Here 
      rb_raise(rb_eTypeError, "%s expect %s", name, "Fixnum Array");
      rb_raise(rb_eTypeError, "%s expect %s", name, "Fixnum Array");
    
    
    length = RARRAY(value)->len;
    length = RARRAY(value)->len;
    (int*)result = ALLOC_N(int, length);
    result = (int*)ALLOC_N(int, length);
    for (i = 0; i < length; i++) {
    for (i = 0; i < length; i++) {
      entry = rb_ary_entry(value, i);
      entry = rb_ary_entry(value, i);
 Lines 309-315    Link Here 
      rb_raise(rb_eTypeError, "%s expect %s", name, "Fixnum Array");
      rb_raise(rb_eTypeError, "%s expect %s", name, "Fixnum Array");
    length = RARRAY(value)->len;
    length = RARRAY(value)->len;
    (unsigned long*)result = ALLOC_N(unsigned long, length);
    result = (unsigned long*)ALLOC_N(unsigned long, length);
    for (i = 0; i < length; i++) {
    for (i = 0; i < length; i++) {
      entry = rb_ary_entry(value, i);
      entry = rb_ary_entry(value, i);
 Lines 369-375    Link Here 
  case ANNOTATION_T:
  case ANNOTATION_T:
    /* Because only 1 annotatin is allowd. */
    /* Because only 1 annotatin is allowd. */
    (GDC_ANNOTATION_T*)result = ALLOC(GDC_ANNOTATION_T);
    result = (GDC_ANNOTATION_T*)ALLOC(GDC_ANNOTATION_T);
    
    
    if (value_to_annotation_t(value, (GDC_ANNOTATION_T*)result) == FALSE) {
    if (value_to_annotation_t(value, (GDC_ANNOTATION_T*)result) == FALSE) {
      free(result);
      free(result);
 Lines 384-390    Link Here 
      rb_raise(rb_eTypeError, "%s expect %s Array", name, rb_class2name(cGDChartScatter));
      rb_raise(rb_eTypeError, "%s expect %s Array", name, rb_class2name(cGDChartScatter));
    length = RARRAY(value)->len;
    length = RARRAY(value)->len;
    (GDC_SCATTER_T*)result = ALLOC_N(GDC_SCATTER_T, length);
    result = (GDC_SCATTER_T*)ALLOC_N(GDC_SCATTER_T, length);
    for (i = 0; i < length; i++) {
    for (i = 0; i < length; i++) {
      entry = rb_ary_entry(value, i);
      entry = rb_ary_entry(value, i);