New upstream version 1.16.4

parent 29c0be0c
Release 1.16.4 (2019-03-09) Kouhei Sutou <kou@cozmixng.org>
============================================================
Fixes
-----
* Removed Skia related code entirely.
Release 1.16.3 (2019-03-09) Kouhei Sutou <kou@cozmixng.org>
============================================================
......
# -*- coding: utf-8; mode: ruby -*-
require "English"
require "find"
require "fileutils"
require "open-uri"
require "rubygems"
require "rubygems/package_task"
require "yard"
require "bundler/gem_helper"
require "packnga"
......
......@@ -50,7 +50,6 @@ EXPORTS
rb_cCairo_DRMSurface DATA
rb_cCairo_TeeSurface DATA
rb_cCairo_XMLSurface DATA
rb_cCairo_SkiaSurface DATA
rb_cCairo_SubSurface DATA
rb_cCairo_CoglSurface DATA
......
......@@ -5,7 +5,7 @@
* $Author: kou $
* $Date: 2008-09-19 12:56:27 $
*
* Copyright 2006-2018 Kouhei Sutou <kou@cozmixng.org>
* Copyright 2006-2019 Kouhei Sutou <kou@cozmixng.org>
* Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
* Copyright 2004-2005 MenTaLguY <mental@rydia.com>
*
......@@ -53,15 +53,7 @@
RB_CAIRO_BEGIN_DECLS
#if defined(RUBY_CAIRO_PLATFORM_WIN32) && !defined(RB_CAIRO_PLATFORM_WIN32)
# define RB_CAIRO_PLATFORM_WIN32 RUBY_CAIRO_PLATFORM_WIN32
#endif
#if defined(RUBY_CAIRO_STATIC_COMPILATION) && !defined(RB_CAIRO_STATIC_COMPILATION)
# define RB_CAIRO_STATIC_COMPILATION RUBY_CAIRO_STATIC_COMPILATION
#endif
#if defined(RB_CAIRO_PLATFORM_WIN32) && !defined(RB_CAIRO_STATIC_COMPILATION)
#ifdef __WIN32__
# ifdef RB_CAIRO_COMPILATION
# define RB_CAIRO_VAR __declspec(dllexport)
# else
......@@ -73,7 +65,7 @@ RB_CAIRO_BEGIN_DECLS
#define RB_CAIRO_VERSION_MAJOR 1
#define RB_CAIRO_VERSION_MINOR 16
#define RB_CAIRO_VERSION_MICRO 3
#define RB_CAIRO_VERSION_MICRO 4
RB_CAIRO_VAR VALUE rb_mCairo;
RB_CAIRO_VAR VALUE rb_cCairo_Context;
......@@ -125,7 +117,6 @@ RB_CAIRO_VAR VALUE rb_cCairo_GLTextureSurface;
RB_CAIRO_VAR VALUE rb_cCairo_DRMSurface;
RB_CAIRO_VAR VALUE rb_cCairo_TeeSurface;
RB_CAIRO_VAR VALUE rb_cCairo_XMLSurface;
RB_CAIRO_VAR VALUE rb_cCairo_SkiaSurface;
RB_CAIRO_VAR VALUE rb_cCairo_SubSurface;
RB_CAIRO_VAR VALUE rb_cCairo_Device;
RB_CAIRO_VAR VALUE rb_cCairo_DRMDevice;
......
......@@ -64,9 +64,8 @@ rb_cairo__const_get (VALUE name, const char *prefix)
normalized_name_len = strlen (normalized_name);
const_name = ALLOCA_N (char, prefix_len + normalized_name_len + 1);
strncpy (const_name, prefix, prefix_len);
strncpy (const_name + prefix_len, normalized_name, normalized_name_len);
const_name[prefix_len + normalized_name_len] = '\0';
strcpy (const_name, prefix);
strcpy (const_name + prefix_len, normalized_name);
return rb_const_get (rb_mCairo, rb_intern (const_name));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment