mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 10:10:06 +02:00
* fribidi, bump version, add libVersion(Compat) and debugInfoPackage * fribidi, fix patchset for gcc2
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
From 1292c4a49b40e9c9399d0f8309edec89030ff8c9 Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Tue, 11 Sep 2018 14:07:50 +0200
|
|
Subject: gcc2 fixes for the tests
|
|
|
|
|
|
diff --git a/test/unicode-conformance/BidiCharacterTest.c b/test/unicode-conformance/BidiCharacterTest.c
|
|
index cf3f676..462e63b 100644
|
|
--- a/test/unicode-conformance/BidiCharacterTest.c
|
|
+++ b/test/unicode-conformance/BidiCharacterTest.c
|
|
@@ -263,6 +263,7 @@ main (int argc, char **argv)
|
|
FriBidiStrIndex *ltor = NULL;
|
|
int ltor_len;
|
|
int debug = FALSE;
|
|
+ int len;
|
|
|
|
if (argc < 2)
|
|
{
|
|
@@ -290,7 +291,7 @@ main (int argc, char **argv)
|
|
|
|
while (!feof(channel)) {
|
|
fgets(line, LINE_SIZE, channel);
|
|
- int len = strlen(line);
|
|
+ len = strlen(line);
|
|
if (len == LINE_SIZE-1)
|
|
die("LINE_SIZE=%d too small at line %d!\n", LINE_SIZE, line_no);
|
|
|
|
diff --git a/test/unicode-conformance/BidiTest.c b/test/unicode-conformance/BidiTest.c
|
|
index 5f931f1..26c895a 100644
|
|
--- a/test/unicode-conformance/BidiTest.c
|
|
+++ b/test/unicode-conformance/BidiTest.c
|
|
@@ -271,6 +271,7 @@ main (int argc, char **argv)
|
|
int debug = FALSE;
|
|
const char *filename;
|
|
int next_arg;
|
|
+ int len;
|
|
|
|
if (argc < 2)
|
|
die ("usage: %s [--debug] test-file-name\n", argv[0]);
|
|
@@ -289,7 +290,7 @@ main (int argc, char **argv)
|
|
|
|
while (!feof(channel)) {
|
|
fgets(line, LINE_SIZE, channel);
|
|
- int len = strlen(line);
|
|
+ len = strlen(line);
|
|
if (len == LINE_SIZE-1)
|
|
die("LINE_SIZE too small at line %d!\n", line_no);
|
|
|
|
--
|
|
2.16.4
|
|
|