Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.3 2014/02/16 21:33:00 rodent Exp $
# $NetBSD: Makefile,v 1.6 2015/03/04 09:01:34 wiz Exp $
#
DISTNAME= 1.0.5
DISTNAME= 1.0.8
PKGNAME= glyr-${DISTNAME}
CATEGORIES= audio
MASTER_SITES= https://github.com/sahib/glyr/archive/

View File

@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.2 2014/02/16 21:33:00 rodent Exp $
$NetBSD: distinfo,v 1.5 2015/03/11 08:40:31 wiz Exp $
SHA1 (glyr/1.0.5.tar.gz) = 52ba9b05b9962a22af2f371d0484429db44f2f00
RMD160 (glyr/1.0.5.tar.gz) = d61d5d8ed5c10d9c711ef3136948d2705e9b3399
Size (glyr/1.0.5.tar.gz) = 426382 bytes
SHA1 (glyr/1.0.8.tar.gz) = e39ff25bea823f8a65df6b6e6b10347b0886b71b
RMD160 (glyr/1.0.8.tar.gz) = 63aceb30e021a39fb7778a7b2a68a92d1b642d26
Size (glyr/1.0.8.tar.gz) = 425073 bytes
SHA1 (patch-lib_stringlib.c) = 98cdef23e473915a1710391a75dbc2573ed07d52

View File

@@ -0,0 +1,53 @@
$NetBSD: patch-lib_stringlib.c,v 1.2 2015/03/11 08:40:31 wiz Exp $
Use <ctype.h> correctly.
https://github.com/sahib/glyr/issues/61
--- lib/stringlib.c~ 2014-02-08 11:06:45.000000000 +0000
+++ lib/stringlib.c
@@ -927,8 +927,8 @@ static gchar * trim_in_text (gchar * str
for (gsize it = 0; it < str_len; it++)
{
- gboolean is_space = isspace (string[it]);
- gboolean is_lfeed = !isblank (string[it]) && is_space;
+ gboolean is_space = isspace ((unsigned char)string[it]);
+ gboolean is_lfeed = !isblank ((unsigned char)string[it]) && is_space;
lfeed_ctr = (is_lfeed) ? lfeed_ctr + 1 : 0;
space_ctr = (is_space) ? space_ctr + 1 : 0;
@@ -1011,7 +1011,7 @@ void trim_copy (gchar *input, gchar *out
gchar c;
/* skip spaces at start */
- while (input[0] && isspace (*input) )
+ while (input[0] && isspace ((unsigned char)*input) )
{
++input;
}
@@ -1023,7 +1023,7 @@ void trim_copy (gchar *input, gchar *out
c = * (output++) = * (input++);
/* if its not a whitespace, this *could* be the last character */
- if ( !isspace (c) )
+ if ( !isspace ((unsigned char)c) )
{
end = output;
}
@@ -1050,14 +1050,14 @@ gchar * trim_nocopy (gchar * s)
gchar * end = NULL;
/* skip spaces at start */
- while (*start && isspace (*start) )
+ while (*start && isspace ((unsigned char)*start) )
++start;
/* iterate over the rest remebering last non-whitespace */
char *i = start;
while (*i)
{
- if ( !isspace (* (i++) ) )
+ if ( !isspace ((unsigned char) * (i++) ) )
end = i;
}