Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (12 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/caca-font.c

    r2820 r2821  
    11/*
    2  *  libcucul Ruby bindings
     2 *  libcaca Ruby bindings
    33 *  Copyright (c) 2007 Pascal Terjan <pterjan@linuxfr.org>
    44 *
     
    1111
    1212#include <ruby.h>
    13 #include <cucul.h>
     13#include <caca.h>
    1414#include <errno.h>
    1515#include "common.h"
     
    1919void font_free(void *font)
    2020{
    21     cucul_free_font((cucul_font_t *)font);
     21    caca_free_font((caca_font_t *)font);
    2222}
    2323
     
    3131static VALUE font_initialize(VALUE self, VALUE name)
    3232{
    33     cucul_font_t *font;
     33    caca_font_t *font;
    3434
    35     font = cucul_load_font(StringValuePtr(name), 0);
     35    font = caca_load_font(StringValuePtr(name), 0);
    3636    if(font == NULL)
    3737    {
     
    4747    char const* const* list;
    4848   
    49     list = cucul_get_font_list();
     49    list = caca_get_font_list();
    5050   
    5151    ary = rb_ary_new();   
     
    6161static VALUE get_font_width(VALUE self)
    6262{
    63     return UINT2NUM(cucul_get_font_width(_SELF));
     63    return UINT2NUM(caca_get_font_width(_SELF));
    6464}
    6565
    6666static VALUE get_font_height(VALUE self)
    6767{
    68     return UINT2NUM(cucul_get_font_height(_SELF));
     68    return UINT2NUM(caca_get_font_height(_SELF));
    6969}
    7070
     
    7474    uint32_t const *list;
    7575   
    76     list = cucul_get_font_blocks(_SELF);
     76    list = caca_get_font_blocks(_SELF);
    7777   
    7878    ary = rb_ary_new();   
     
    8686}
    8787
    88 void Init_cucul_font(VALUE mCucul)
     88void Init_caca_font(VALUE mCucul)
    8989{
    9090    cFont = rb_define_class_under(mCucul, "Font", rb_cObject);
Note: See TracChangeset for help on using the changeset viewer.