utf8proc

diff ruby/utf8proc_native.c @ 10:00d2bcbdc945

Version 1.1.4

- replaced C++ style comments for compatibility reasons
- added typecasts to suppress compiler warnings
- removed redundant source files for ruby-gemfile generation
- Changed copyright notice for Public Software Group e. V.
- Minor changes in the README file
author jbe
date Wed Aug 19 12:00:00 2009 +0200 (2009-08-19)
parents fcfd8c836c64
children d79da2302625
line diff
     1.1 --- a/ruby/utf8proc_native.c	Fri May 01 12:00:00 2009 +0200
     1.2 +++ b/ruby/utf8proc_native.c	Wed Aug 19 12:00:00 2009 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - *  Copyright (c) 2006-2007 Jan Behrens, FlexiGuided GmbH, Berlin
     1.6 + *  Copyright (c) 2009 Public Software Group e. V., Berlin, Germany
     1.7   *
     1.8   *  Permission is hereby granted, free of charge, to any person obtaining a
     1.9   *  copy of this software and associated documentation files (the "Software"),
    1.10 @@ -23,8 +23,6 @@
    1.11  
    1.12  /*
    1.13   *  File name:    ruby/utf8proc_native.c
    1.14 - *  Version:      1.1.1
    1.15 - *  Last changed: 2007-07-22
    1.16   *
    1.17   *  Description:
    1.18   *  Native part of the ruby wrapper for libutf8proc.
    1.19 @@ -83,7 +81,7 @@
    1.20      NULL, 0, options);
    1.21    if (result < 0) {
    1.22      utf8proc_ruby_map_error(result);
    1.23 -    return Qnil;  // needed to prevent problems with optimization
    1.24 +    return Qnil;  /* needed to prevent problems with optimization */
    1.25    }
    1.26    env->buffer = ALLOC_N(int32_t, result+1);
    1.27    result = utf8proc_decompose(RSTRING(str)->ptr, RSTRING(str)->len,
    1.28 @@ -92,14 +90,14 @@
    1.29      free(env->buffer);
    1.30      env->buffer = 0;
    1.31      utf8proc_ruby_map_error(result);
    1.32 -    return Qnil;  // needed to prevent problems with optimization
    1.33 +    return Qnil;  /* needed to prevent problems with optimization */
    1.34    }
    1.35    result = utf8proc_reencode(env->buffer, result, options);
    1.36    if (result < 0) {
    1.37      free(env->buffer);
    1.38      env->buffer = 0;
    1.39      utf8proc_ruby_map_error(result);
    1.40 -    return Qnil;  // needed to prevent problems with optimization
    1.41 +    return Qnil;  /* needed to prevent problems with optimization */
    1.42    }
    1.43    retval = rb_str_new((char *)env->buffer, result);
    1.44    free(env->buffer);

Impressum / About Us