summaryrefslogtreecommitdiff
path: root/graphics/libfreehand/files/patch-src_lib_libfreehand__utils.cpp
blob: 5cac8509992970b0dc0c9405171ba4613f4598d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Regressed by https://github.com/unicode-org/icu/commit/480bec3ea652

libfreehand_utils.cpp:165:30: error: expected ';' after do/while statement
    U16_NEXT(s, j, length, c)
                             ^
                             ;
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
    U8_APPEND_UNSAFE(&outbuf[0], i, c);
                      ^
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:168:23: error: use of undeclared identifier 'outbuf'
libfreehand_utils.cpp:169:5: error: use of undeclared identifier 'outbuf'; did you mean 'setbuf'?
    outbuf[i] = 0;
    ^~~~~~
    setbuf
/usr/include/stdio.h:283:7: note: 'setbuf' declared here
void     setbuf(FILE * __restrict, char * __restrict);
         ^
libfreehand_utils.cpp:169:5: error: subscript of pointer to function type 'void (FILE *, char *)' (aka 'void (__sFILE *, char *)')
    outbuf[i] = 0;
    ^~~~~~
libfreehand_utils.cpp:171:25: error: use of undeclared identifier 'outbuf'
    text.append((char *)outbuf);
                        ^

--- src/lib/libfreehand_utils.cpp.orig	2017-09-16 10:28:50 UTC
+++ src/lib/libfreehand_utils.cpp
@@ -162,7 +162,7 @@ void libfreehand::_appendUTF16(librevenge::RVNGString 
   while (j < length)
   {
     UChar32 c;
-    U16_NEXT(s, j, length, c)
+    U16_NEXT(s, j, length, c);
     unsigned char outbuf[U8_MAX_LENGTH+1];
     int i = 0;
     U8_APPEND_UNSAFE(&outbuf[0], i, c);