X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ffontfile%2Fgunzip.c;h=84a4eaf450cd7432ebdf99d1cd2eef78bd1905c1;hb=3e1969f2133dfd2fac68f01b2b2aa460d86174d7;hp=9fa3eed0055eb2acaf723e8064b41ce09d0c8472;hpb=45d55832022c5ce693e99f8de99480ab968e5ff0;p=framework%2Fuifw%2Fxorg%2Flib%2Flibxfont.git diff --git a/src/fontfile/gunzip.c b/src/fontfile/gunzip.c old mode 100755 new mode 100644 index 9fa3eed..84a4eaf --- a/src/fontfile/gunzip.c +++ b/src/fontfile/gunzip.c @@ -66,7 +66,7 @@ BufFilePushZIP (BufFilePtr f) BufZipFileClose); } -static int +static int BufZipFileClose(BufFilePtr f, int flag) { xzip_buf *x = (xzip_buf *)f->private; @@ -76,16 +76,16 @@ BufZipFileClose(BufFilePtr f, int flag) return 1; } -/* here's the real work. +/* here's the real work. -- we need to put stuff in f.buffer, update f.left and f.bufp, then return the first byte (or BUFFILEEOF). - -- to do this, we need to get stuff into avail_in, and next_in, + -- to do this, we need to get stuff into avail_in, and next_in, and call inflate appropriately. -- we may also need to add CRC maintenance - if inflate tells us Z_STREAM_END, we then have 4bytes CRC and 4bytes length... gzio.c:gzread shows most of the mechanism. */ -static int +static int BufZipFileFill (BufFilePtr f) { xzip_buf *x = (xzip_buf *)f->private; @@ -139,7 +139,7 @@ BufZipFileFill (BufFilePtr f) } } f->bufp = x->b; - f->left = BUFFILESIZE - x->z.avail_out; + f->left = BUFFILESIZE - x->z.avail_out; if (f->left >= 0) { f->left--; @@ -150,7 +150,7 @@ BufZipFileFill (BufFilePtr f) } /* there should be a BufCommonSkip... */ -static int +static int BufZipFileSkip (BufFilePtr f, int c) { /* BufFileRawSkip returns the count unchanged. @@ -192,7 +192,7 @@ BufZipFileSkip (BufFilePtr f, int c) #define RESERVED 0xE0 /* bits 5..7: reserved */ #define GET(f) do {c = BufFileGet(f); if (c == BUFFILEEOF) return c;} while(0) -static int +static int BufCheckZipHeader(BufFilePtr f) { int c, flags;