Changeset 432 for cafu/trunk

Show
Ignore:
Timestamp:
11/26/11 01:01:20 (6 months ago)
Author:
Carsten
Message:

Continuing r430 and in another attempt to fix http://www.cafu.de/forum/viewtopic.php?f=6&t=942, removed all use of ancient and redundant OF macro from minizip code.
Also see  https://bugs.gentoo.org/show_bug.cgi?id=383179 for details.

Location:
cafu/trunk/ExtLibs/minizip
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/ExtLibs/minizip/ioapi.c

    r2 r432  
    3030#endif 
    3131 
    32 voidpf ZCALLBACK fopen_file_func OF(( 
     32voidpf ZCALLBACK fopen_file_func ( 
    3333   voidpf opaque, 
    3434   const char* filename, 
    35    int mode)); 
     35   int mode); 
    3636 
    37 uLong ZCALLBACK fread_file_func OF(( 
     37uLong ZCALLBACK fread_file_func ( 
    3838   voidpf opaque, 
    3939   voidpf stream, 
    4040   void* buf, 
    41    uLong size)); 
     41   uLong size); 
    4242 
    43 uLong ZCALLBACK fwrite_file_func OF(( 
     43uLong ZCALLBACK fwrite_file_func ( 
    4444   voidpf opaque, 
    4545   voidpf stream, 
    4646   const void* buf, 
    47    uLong size)); 
     47   uLong size); 
    4848 
    49 long ZCALLBACK ftell_file_func OF(( 
     49long ZCALLBACK ftell_file_func ( 
    5050   voidpf opaque, 
    51    voidpf stream)); 
     51   voidpf stream); 
    5252 
    53 long ZCALLBACK fseek_file_func OF(( 
     53long ZCALLBACK fseek_file_func ( 
    5454   voidpf opaque, 
    5555   voidpf stream, 
    5656   uLong offset, 
    57    int origin)); 
     57   int origin); 
    5858 
    59 int ZCALLBACK fclose_file_func OF(( 
     59int ZCALLBACK fclose_file_func ( 
    6060   voidpf opaque, 
    61    voidpf stream)); 
     61   voidpf stream); 
    6262 
    63 int ZCALLBACK ferror_file_func OF(( 
     63int ZCALLBACK ferror_file_func ( 
    6464   voidpf opaque, 
    65    voidpf stream)); 
     65   voidpf stream); 
    6666 
    6767 
  • cafu/trunk/ExtLibs/minizip/iowin32.c

    r2 r432  
    2222#endif 
    2323 
    24 voidpf ZCALLBACK win32_open_file_func OF(( 
     24voidpf ZCALLBACK win32_open_file_func ( 
    2525   voidpf opaque, 
    2626   const char* filename, 
    27    int mode)); 
    28  
    29 uLong ZCALLBACK win32_read_file_func OF(( 
     27   int mode); 
     28 
     29uLong ZCALLBACK win32_read_file_func ( 
    3030   voidpf opaque, 
    3131   voidpf stream, 
    3232   void* buf, 
    33    uLong size)); 
    34  
    35 uLong ZCALLBACK win32_write_file_func OF(( 
     33   uLong size); 
     34 
     35uLong ZCALLBACK win32_write_file_func ( 
    3636   voidpf opaque, 
    3737   voidpf stream, 
    3838   const void* buf, 
    39    uLong size)); 
    40  
    41 long ZCALLBACK win32_tell_file_func OF(( 
    42    voidpf opaque, 
    43    voidpf stream)); 
    44  
    45 long ZCALLBACK win32_seek_file_func OF(( 
     39   uLong size); 
     40 
     41long ZCALLBACK win32_tell_file_func ( 
     42   voidpf opaque, 
     43   voidpf stream); 
     44 
     45long ZCALLBACK win32_seek_file_func ( 
    4646   voidpf opaque, 
    4747   voidpf stream, 
    4848   uLong offset, 
    49    int origin)); 
    50  
    51 int ZCALLBACK win32_close_file_func OF(( 
    52    voidpf opaque, 
    53    voidpf stream)); 
    54  
    55 int ZCALLBACK win32_error_file_func OF(( 
    56    voidpf opaque, 
    57    voidpf stream)); 
     49   int origin); 
     50 
     51int ZCALLBACK win32_close_file_func ( 
     52   voidpf opaque, 
     53   voidpf stream); 
     54 
     55int ZCALLBACK win32_error_file_func ( 
     56   voidpf opaque, 
     57   voidpf stream); 
    5858 
    5959typedef struct 
  • cafu/trunk/ExtLibs/minizip/iowin32.h

    r2 r432  
    1515#endif 
    1616 
    17 void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 
     17void fill_win32_filefunc (zlib_filefunc_def* pzlib_filefunc_def); 
    1818 
    1919#ifdef __cplusplus 
  • cafu/trunk/ExtLibs/minizip/unzip.c

    r2 r432  
    164164 
    165165 
    166 local int unzlocal_getByte OF(( 
     166local int unzlocal_getByte ( 
    167167    const zlib_filefunc_def* pzlib_filefunc_def, 
    168168    voidpf filestream, 
    169     int *pi)); 
     169    int *pi); 
    170170 
    171171local int unzlocal_getByte(pzlib_filefunc_def,filestream,pi) 
     
    194194   Reads a long in LSB order from the given gz_stream. Sets 
    195195*/ 
    196 local int unzlocal_getShort OF(( 
     196local int unzlocal_getShort ( 
    197197    const zlib_filefunc_def* pzlib_filefunc_def, 
    198198    voidpf filestream, 
    199     uLong *pX)); 
     199    uLong *pX); 
    200200 
    201201local int unzlocal_getShort (pzlib_filefunc_def,filestream,pX) 
     
    222222} 
    223223 
    224 local int unzlocal_getLong OF(( 
     224local int unzlocal_getLong ( 
    225225    const zlib_filefunc_def* pzlib_filefunc_def, 
    226226    voidpf filestream, 
    227     uLong *pX)); 
     227    uLong *pX); 
    228228 
    229229local int unzlocal_getLong (pzlib_filefunc_def,filestream,pX) 
     
    325325    the global comment) 
    326326*/ 
    327 local uLong unzlocal_SearchCentralDir OF(( 
     327local uLong unzlocal_SearchCentralDir ( 
    328328    const zlib_filefunc_def* pzlib_filefunc_def, 
    329     voidpf filestream)); 
     329    voidpf filestream); 
    330330 
    331331local uLong unzlocal_SearchCentralDir(pzlib_filefunc_def,filestream) 
     
    564564  Get Info about the current file in the zipfile, with internal only info 
    565565*/ 
    566 local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file, 
    567                                                   unz_file_info *pfile_info, 
    568                                                   unz_file_info_internal 
    569                                                   *pfile_info_internal, 
    570                                                   char *szFileName, 
    571                                                   uLong fileNameBufferSize, 
    572                                                   void *extraField, 
    573                                                   uLong extraFieldBufferSize, 
    574                                                   char *szComment, 
    575                                                   uLong commentBufferSize)); 
     566local int unzlocal_GetCurrentFileInfoInternal (unzFile file, 
     567                                               unz_file_info *pfile_info, 
     568                                               unz_file_info_internal 
     569                                               *pfile_info_internal, 
     570                                               char *szFileName, 
     571                                               uLong fileNameBufferSize, 
     572                                               void *extraField, 
     573                                               uLong extraFieldBufferSize, 
     574                                               char *szComment, 
     575                                               uLong commentBufferSize); 
    576576 
    577577local int unzlocal_GetCurrentFileInfoInternal (file, 
  • cafu/trunk/ExtLibs/minizip/unzip.h

    r2 r432  
    133133 
    134134 
    135 extern unzFile ZEXPORT unzOpen OF((const char *path)); 
     135extern unzFile ZEXPORT unzOpen (const char *path); 
    136136/* 
    137137  Open a Zip file. path contain the full pathname (by example, 
     
    144144*/ 
    145145 
    146 extern unzFile ZEXPORT unzOpen2 OF((const char *path, 
    147                                     zlib_filefunc_def* pzlib_filefunc_def)); 
     146extern unzFile ZEXPORT unzOpen2 (const char *path, 
     147                                 zlib_filefunc_def* pzlib_filefunc_def); 
    148148/* 
    149149   Open a Zip file, like unzOpen, but provide a set of file low level API 
     
    151151*/ 
    152152 
    153 extern int ZEXPORT unzClose OF((unzFile file)); 
     153extern int ZEXPORT unzClose (unzFile file); 
    154154/* 
    155155  Close a ZipFile opened with unzipOpen. 
     
    158158  return UNZ_OK if there is no problem. */ 
    159159 
    160 extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, 
    161                                         unz_global_info *pglobal_info)); 
     160extern int ZEXPORT unzGetGlobalInfo (unzFile file, 
     161                                     unz_global_info *pglobal_info); 
    162162/* 
    163163  Write info about the ZipFile in the *pglobal_info structure. 
     
    166166 
    167167 
    168 extern int ZEXPORT unzGetGlobalComment OF((unzFile file, 
    169                                            char *szComment, 
    170                                            uLong uSizeBuf)); 
     168extern int ZEXPORT unzGetGlobalComment (unzFile file, 
     169                                        char *szComment, 
     170                                        uLong uSizeBuf); 
    171171/* 
    172172  Get the global comment string of the ZipFile, in the szComment buffer. 
     
    179179/* Unzip package allow you browse the directory of the zipfile */ 
    180180 
    181 extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); 
     181extern int ZEXPORT unzGoToFirstFile (unzFile file); 
    182182/* 
    183183  Set the current file of the zipfile to the first file. 
     
    185185*/ 
    186186 
    187 extern int ZEXPORT unzGoToNextFile OF((unzFile file)); 
     187extern int ZEXPORT unzGoToNextFile (unzFile file); 
    188188/* 
    189189  Set the current file of the zipfile to the next file. 
     
    192192*/ 
    193193 
    194 extern int ZEXPORT unzLocateFile OF((unzFile file, 
     194extern int ZEXPORT unzLocateFile (unzFile file, 
    195195                     const char *szFileName, 
    196                      int iCaseSensitivity)); 
     196                     int iCaseSensitivity); 
    197197/* 
    198198  Try locate the file szFileName in the zipfile. 
     
    224224/* ****************************************** */ 
    225225 
    226 extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, 
     226extern int ZEXPORT unzGetCurrentFileInfo (unzFile file, 
    227227                         unz_file_info *pfile_info, 
    228228                         char *szFileName, 
     
    231231                         uLong extraFieldBufferSize, 
    232232                         char *szComment, 
    233                          uLong commentBufferSize)); 
     233                         uLong commentBufferSize); 
    234234/* 
    235235  Get Info about the current file 
     
    250250   */ 
    251251 
    252 extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); 
     252extern int ZEXPORT unzOpenCurrentFile (unzFile file); 
    253253/* 
    254254  Open for reading data the current file in the zipfile. 
     
    256256*/ 
    257257 
    258 extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file, 
    259                                                   const char* password)); 
     258extern int ZEXPORT unzOpenCurrentFilePassword (unzFile file, 
     259                                               const char* password); 
    260260/* 
    261261  Open for reading data the current file in the zipfile. 
     
    264264*/ 
    265265 
    266 extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file, 
    267                                            int* method, 
    268                                            int* level, 
    269                                            int raw)); 
     266extern int ZEXPORT unzOpenCurrentFile2 (unzFile file, 
     267                                        int* method, 
     268                                        int* level, 
     269                                        int raw); 
    270270/* 
    271271  Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) 
     
    277277*/ 
    278278 
    279 extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file, 
    280                                            int* method, 
    281                                            int* level, 
    282                                            int raw, 
    283                                            const char* password)); 
     279extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, 
     280                                        int* method, 
     281                                        int* level, 
     282                                        int raw, 
     283                                        const char* password); 
    284284/* 
    285285  Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) 
     
    292292 
    293293 
    294 extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); 
     294extern int ZEXPORT unzCloseCurrentFile (unzFile file); 
    295295/* 
    296296  Close the file in zip opened with unzOpenCurrentFile 
     
    298298*/ 
    299299 
    300 extern int ZEXPORT unzReadCurrentFile OF((unzFile file, 
     300extern int ZEXPORT unzReadCurrentFile (unzFile file, 
    301301                      voidp buf, 
    302                       unsigned len)); 
     302                      unsigned len); 
    303303/* 
    304304  Read bytes from the current file (opened by unzOpenCurrentFile) 
     
    312312*/ 
    313313 
    314 extern z_off_t ZEXPORT unztell OF((unzFile file)); 
     314extern z_off_t ZEXPORT unztell (unzFile file); 
    315315/* 
    316316  Give the current position in uncompressed data 
    317317*/ 
    318318 
    319 extern int ZEXPORT unzeof OF((unzFile file)); 
     319extern int ZEXPORT unzeof (unzFile file); 
    320320/* 
    321321  return 1 if the end of file was reached, 0 elsewhere 
    322322*/ 
    323323 
    324 extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, 
    325                                              voidp buf, 
    326                                              unsigned len)); 
     324extern int ZEXPORT unzGetLocalExtrafield (unzFile file, 
     325                                          voidp buf, 
     326                                          unsigned len); 
    327327/* 
    328328  Read extra field from the current file (opened by unzOpenCurrentFile) 
  • cafu/trunk/ExtLibs/minizip/zip.c

    r2 r432  
    262262*/ 
    263263 
    264 local int ziplocal_putValue OF((const zlib_filefunc_def* pzlib_filefunc_def, 
    265                                 voidpf filestream, uLong x, int nbByte)); 
     264local int ziplocal_putValue (const zlib_filefunc_def* pzlib_filefunc_def, 
     265                             voidpf filestream, uLong x, int nbByte)); 
    266266local int ziplocal_putValue (pzlib_filefunc_def, filestream, x, nbByte) 
    267267    const zlib_filefunc_def* pzlib_filefunc_def; 
     
    291291} 
    292292 
    293 local void ziplocal_putValue_inmemory OF((void* dest, uLong x, int nbByte)); 
     293local void ziplocal_putValue_inmemory (void* dest, uLong x, int nbByte); 
    294294local void ziplocal_putValue_inmemory (dest, x, nbByte) 
    295295    void* dest; 
     
    333333/****************************************************************************/ 
    334334 
    335 local int ziplocal_getByte OF(( 
     335local int ziplocal_getByte ( 
    336336    const zlib_filefunc_def* pzlib_filefunc_def, 
    337337    voidpf filestream, 
    338     int *pi)); 
     338    int *pi); 
    339339 
    340340local int ziplocal_getByte(pzlib_filefunc_def,filestream,pi) 
     
    363363   Reads a long in LSB order from the given gz_stream. Sets 
    364364*/ 
    365 local int ziplocal_getShort OF(( 
     365local int ziplocal_getShort ( 
    366366    const zlib_filefunc_def* pzlib_filefunc_def, 
    367367    voidpf filestream, 
    368     uLong *pX)); 
     368    uLong *pX); 
    369369 
    370370local int ziplocal_getShort (pzlib_filefunc_def,filestream,pX) 
     
    391391} 
    392392 
    393 local int ziplocal_getLong OF(( 
     393local int ziplocal_getLong ( 
    394394    const zlib_filefunc_def* pzlib_filefunc_def, 
    395395    voidpf filestream, 
    396     uLong *pX)); 
     396    uLong *pX); 
    397397 
    398398local int ziplocal_getLong (pzlib_filefunc_def,filestream,pX) 
     
    434434    the global comment) 
    435435*/ 
    436 local uLong ziplocal_SearchCentralDir OF(( 
     436local uLong ziplocal_SearchCentralDir ( 
    437437    const zlib_filefunc_def* pzlib_filefunc_def, 
    438     voidpf filestream)); 
     438    voidpf filestream); 
    439439 
    440440local uLong ziplocal_SearchCentralDir(pzlib_filefunc_def,filestream) 
  • cafu/trunk/ExtLibs/minizip/zip.h

    r2 r432  
    112112#define APPEND_STATUS_ADDINZIP      (2) 
    113113 
    114 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); 
     114extern zipFile ZEXPORT zipOpen (const char *pathname, int append); 
    115115/* 
    116116  Create a zipfile. 
     
    132132*/ 
    133133 
    134 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, 
    135                                    int append, 
    136                                    zipcharpc* globalcomment, 
    137                                    zlib_filefunc_def* pzlib_filefunc_def)); 
    138  
    139 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, 
     134extern zipFile ZEXPORT zipOpen2 (const char *pathname, 
     135                                 int append, 
     136                                 zipcharpc* globalcomment, 
     137                                 zlib_filefunc_def* pzlib_filefunc_def); 
     138 
     139extern int ZEXPORT zipOpenNewFileInZip (zipFile file, 
    140140                       const char* filename, 
    141141                       const zip_fileinfo* zipfi, 
     
    146146                       const char* comment, 
    147147                       int method, 
    148                        int level)); 
     148                       int level); 
    149149/* 
    150150  Open a file in the ZIP for writing. 
     
    161161 
    162162 
    163 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file, 
    164                                             const char* filename, 
    165                                             const zip_fileinfo* zipfi, 
    166                                             const void* extrafield_local, 
    167                                             uInt size_extrafield_local, 
    168                                             const void* extrafield_global, 
    169                                             uInt size_extrafield_global, 
    170                                             const char* comment, 
    171                                             int method, 
    172                                             int level, 
    173                                             int raw)); 
     163extern int ZEXPORT zipOpenNewFileInZip2 (zipFile file, 
     164                                         const char* filename, 
     165                                         const zip_fileinfo* zipfi, 
     166                                         const void* extrafield_local, 
     167                                         uInt size_extrafield_local, 
     168                                         const void* extrafield_global, 
     169                                         uInt size_extrafield_global, 
     170                                         const char* comment, 
     171                                         int method, 
     172                                         int level, 
     173                                         int raw); 
    174174 
    175175/* 
     
    177177 */ 
    178178 
    179 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file, 
    180                                             const char* filename, 
    181                                             const zip_fileinfo* zipfi, 
    182                                             const void* extrafield_local, 
    183                                             uInt size_extrafield_local, 
    184                                             const void* extrafield_global, 
    185                                             uInt size_extrafield_global, 
    186                                             const char* comment, 
    187                                             int method, 
    188                                             int level, 
    189                                             int raw, 
    190                                             int windowBits, 
    191                                             int memLevel, 
    192                                             int strategy, 
    193                                             const char* password, 
    194                                             uLong crcForCtypting)); 
     179extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file, 
     180                                         const char* filename, 
     181                                         const zip_fileinfo* zipfi, 
     182                                         const void* extrafield_local, 
     183                                         uInt size_extrafield_local, 
     184                                         const void* extrafield_global, 
     185                                         uInt size_extrafield_global, 
     186                                         const char* comment, 
     187                                         int method, 
     188                                         int level, 
     189                                         int raw, 
     190                                         int windowBits, 
     191                                         int memLevel, 
     192                                         int strategy, 
     193                                         const char* password, 
     194                                         uLong crcForCtypting); 
    195195 
    196196/* 
     
    202202 
    203203 
    204 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file, 
     204extern int ZEXPORT zipWriteInFileInZip (zipFile file, 
    205205                       const void* buf, 
    206                        unsigned len)); 
     206                       unsigned len); 
    207207/* 
    208208  Write data in the zipfile 
    209209*/ 
    210210 
    211 extern int ZEXPORT zipCloseFileInZip OF((zipFile file)); 
     211extern int ZEXPORT zipCloseFileInZip (zipFile file); 
    212212/* 
    213213  Close the current file in the zipfile 
    214214*/ 
    215215 
    216 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file, 
    217                                             uLong uncompressed_size, 
    218                                             uLong crc32)); 
     216extern int ZEXPORT zipCloseFileInZipRaw (zipFile file, 
     217                                         uLong uncompressed_size, 
     218                                         uLong crc32); 
    219219/* 
    220220  Close the current file in the zipfile, for fiel opened with 
     
    223223*/ 
    224224 
    225 extern int ZEXPORT zipClose OF((zipFile file, 
    226                 const char* global_comment)); 
     225extern int ZEXPORT zipClose (zipFile file, 
     226                const char* global_comment); 
    227227/* 
    228228  Close the zipfile