{"text_format":"3","workbook":"xls","n_sheets":3,"sheets":["Sheet1","Sheet2","Sheet3"],"read":"whole","date_system":"1900","formulas":"cached_only"}

{"sheet":"Sheet1","index":0,"n_rows":34,"n_cols":5,"rows_kept":34,"flags":["formulas_cached_only"]}
["file","line","original from zlib.net website (v1.2.3)","changes done for ezlib2","rational"]
["adler32.cpp",11,"#include \"zlib.h\"","#include \"libzcore.h\"","using function names with '_r' appended"]
["compress.cpp",11,"#include \"zlib.h\"","#include \"libzcore.h\"","using function names with '_r' appended"]
["crc32.cpp","31-36",null,"/* These defines are usually taken from limits.h, however this file is not supported in Symbian. */\n#if (defined(__SYMBIAN32__) && !defined(__TOOLS2__) && !defined(__TOOLS__))  \n  #define UINT_MAX  0xffffffffU  /* Values taken from _limits.h:from PIPS  */\n  #define ULONG_MAX 0xffffffffUL /* Removing may slow down the crc operation */\n  typedef int ptrdiff_t;\n#endif /* __SYMBIAN32__ && !__TOOLS2__) && !__TOOLS__ */","symbian doesn't support limits.h file.  having  these values defined increases performance of crc32() function"]
["crc32.cpp","44-46","#    include <limits.h>","#    if (!defined(__SYMBIAN32__) || defined(__TOOLS2__) || defined(__TOOLS__)) /* only include for Tools builds */\n#      include <limits.h>\n#    endif /* !__SYMBIAN32__ || __TOOLS2__) || __TOOLS__ */","PC Tools build does have limits.h file however, so make use of it"]
["crc32.cpp","264-278","#endif /* BYFOUR */\n    crc = crc ^ 0xffffffffUL;\n    while (len >= 8) {\n        DO8;\n        len -= 8;\n    }\n    if (len) do {\n        DO1;\n    } while (--len);\n    return crc ^ 0xffffffffUL;\n","    else \n    {     \n#endif /* BYFOUR */\n    crc = crc ^ 0xffffffffUL;\n    while (len >= 8) {\n        DO8;\n        len -= 8;\n    }\n    if (len) do {\n        DO1;\n    } while (--len);\n    return crc ^ 0xffffffffUL;\n #ifdef BYFOUR\n    }\n #endif    ","To move the hardware compilation warning \" Not reachable\""]
["deflate.cpp","342-343",null," // Line to stop compiler warning about unused mandatory global variable 'deflate_copyright'\n char dontCare = deflate_copyright[0]; dontCare = dontCare;","stop compiler warning about unused mandatory global\nvariable"]
["deflate.h","86-90","    static_tree_desc *stat_desc; /* the corresponding static tree */","#ifdef SYMBIAN_EZLIB_DEVICE\n     const static_tree_desc *stat_desc; /* the corresponding static tree */\n#else \n    static_tree_desc *stat_desc; /* the corresponding static tree */\n#endif //SYMBIAN_EZLIB_DEVICE","remove WSD"]
["deflate.h","323-324","  { uch len = (length); \\\n    ush dist = (distance); \\","  { uch len = (uch)(length); /* suspect downcast from uInt to uch */\\\n    ush dist = (ush)(distance); /* suspect downcast from uInt to ush */\\","cast suspicious variable conversion"]
["gzio.cpp",13,null,"#include \"libzgzio.h\" /* libzgzio.h must be included BEFORE zutil.h, as its header guard is used in zutil.h */","include header for '_r' function declarations"]
["gzio.cpp","77-91",null,"#ifdef SYMBIAN_EZLIB_DEVICE\n/* This array is a copy of the one originally defined in zutil.cpp.  It is\n   required here as zutil.cpp is now compiled seperately in libzcore.dll */\nconst char * const z_errmsg[10] = {\n  \"need dictionary\",     /* Z_NEED_DICT       2  */\n  \"stream end\",          /* Z_STREAM_END      1  */\n  \"\",                    /* Z_OK              0  */\n  \"file error\",          /* Z_ERRNO         (-1) */\n  \"stream error\",        /* Z_STREAM_ERROR  (-2) */\n  \"data error\",          /* Z_DATA_ERROR    (-3) */\n  \"insufficient memory\", /* Z_MEM_ERROR     (-4) */\n  \"buffer error\",        /* Z_BUF_ERROR     (-5) */\n  \"incompatible version\",/* Z_VERSION_ERROR (-6) */\n\"\"};\n#endif /* SYMBIAN_EZLIB_DEVICE */","copy of array, needed as gzio.cpp is now compiled seperately"]
["gzio.cpp","672-741","int ZEXPORTVA gzprintf (gzFile file, const char *format, /* args */ ...)\n{\n    char buf[Z_PRINTF_BUFSIZE];\n    va_list va;\n    int len;\n\n    buf[sizeof(buf) - 1] = 0;\n    va_start(va, format);\n#ifdef NO_vsnprintf\n#  ifdef HAS_vsprintf_void\n    (void)vsprintf(buf, format, va);\n    va_end(va);\n    for (len = 0; len < sizeof(buf); len++)\n        if (buf[len] == 0) break;\n#  else\n    len = vsprintf(buf, format, va);\n    va_end(va);\n#  endif\n#else\n#  ifdef HAS_vsnprintf_void\n    (void)vsnprintf(buf, sizeof(buf), format, va);\n    va_end(va);\n    len = strlen(buf);\n#  else\n    len = vsnprintf(buf, sizeof(buf), format, va);\n    va_end(va);\n#  endif\n#endif\n    if (len <= 0 || len >= (int)sizeof(buf) || buf[sizeof(buf) - 1] != 0)\n        return 0;\n    return gzwrite(file, buf, (unsigned)len);\n}","#ifdef __SYMBIAN32__\nint gzprintf_r (gzFile file, const char *format, va_list va)\n#else\nint ZEXPORTVA gzprintf (gzFile file, const char *format, /* args */ ...)\n#endif /* __SYMBIAN32__ */\n{\n    int len;\n int ret;\n    \n#ifndef SYMBIAN_EZLIB_DEVICE\n char buf[Z_PRINTF_BUFSIZE];\n    buf[sizeof(buf) - 1] = 0;\n#else\n char *buf = (char*)0;\n    buf = (char*) ALLOC(Z_PRINTF_BUFSIZE * sizeof(char));\n    if(!buf)\n     return 0;\n    buf[Z_PRINTF_BUFSIZE - 1] = 0;\n#endif /* SYMBIAN_EZLIB_DEVICE */\n    \n#ifdef NO_vsnprintf\n#  ifdef HAS_vsprintf_void\n    (void)vsprintf(buf, format, va);\n    va_end(va);\n#    ifndef SYMBIAN_EZLIB_DEVICE\n       for (len = 0; len < sizeof(buf); len++)\n#  else\n    for (len = 0; len < Z_PRINTF_BUFSIZE; len++)\n#  endif /* SYMBIAN_EZLIB_DEVICE */\n        if (buf[len] == 0) break;\n#  else\n    len = vsprintf(buf, format, va);\n    va_end(va);\n#  endif\n#else\n#  ifdef HAS_vsnprintf_void\n#    ifndef SYMBIAN_EZLIB_DEVICE\n       (void)vsnprintf(buf, sizeof(buf), format, va);\n#    else \n    (void)vsnprintf(buf, Z_PRINTF_BUFSIZE, format, va);\n#    endif /* SYMBIAN_EZLIB_DEVICE */\n    va_end(va);\n    len = strlen(buf);\n#  else\n#    ifndef SYMBIAN_EZLIB_DEVICE \n       len = vsnprintf(buf, sizeof(buf), format, va);\n#    else\n    len = vsnprintf(buf, Z_PRINTF_BUFSIZE, format, va);\n#    endif /* SYMBIAN_EZLIB_DEVICE */\n    va_end(va);\n#  endif\n#endif\n\n#ifndef SYMBIAN_EZLIB_DEVICE\n    if (len <= 0 || len >= (int)sizeof(buf) || buf[sizeof(buf) - 1] != 0)\n    {\n#else\n if (len <= 0 || len >= Z_PRINTF_BUFSIZE || buf[Z_PRINTF_BUFSIZE - 1] != 0)\n {\n  free(buf);\n#endif /* SYMBIAN_EZLIB_DEVICE */\n     return 0;\n    }\n    ret = gzwrite_r(file, buf, (unsigned)len);\n    \n#ifdef SYMBIAN_EZLIB_DEVICE\n    free(buf);    \n#endif /* SYMBIAN_EZLIB_DEVICE */\n    return ret; \n}","Changes done to use heap memory as opposed to the stack memory used in the original open source code. Libc memory allocation malloc is used for the heap memory allocation"]
["infback.cpp","276-280",null,"/*  Need to replace \"this\" variable with \"current\" as \"this\" is a reserved \n *  keyword in C++ which is prefectly fine for a c code. As this file\n *  has been changed to C++ \"this\" needs to be changed.\n */ \n#   define this current      ","Replace 'this' keyword with 'current' to get to compile with C++ compilers"]
["inffast.cpp","97-101",null,"/*  Need to replace \"this\" variable with \"current\" as \"this\" is a reserved \n *  keyword in C++ which is prefectly fine for a c code. As this file\n *  has been changed to C++ \"this\" needs to be changed.\n */ \n#   define this current ","Replace 'this' keyword with 'current' to get to compile with C++ compilers"]
["inflate.cpp","273-336","#ifdef MAKEFIXED\n#include <stdio.h>\n\n/*\n   Write out the inffixed.h that is #include'd above.  Defining MAKEFIXED also\n..............\n        putchar(',');\n    }\n    puts(\"\\n    };\");\n}\n#endif /* MAKEFIXED */\n","#ifndef SYMBIAN_EZLIB_DEVICE\n\n#ifdef MAKEFIXED\n#include <stdio.h>\n\n/*\n   Write out the inffixed.h that is #include'd above.  Defining MAKEFIXED also\n.........\n        putchar(',');\n    }\n    puts(\"\\n    };\");\n}\n#endif /* MAKEFIXED */\n\n#endif //SYMBIAN_EZLIB_DEVICE","Utility function which uses STDIO so is not compiled for Symbian platforms"]
["inflate.cpp","608-612",null,"/*  Need to replace \"this\" variable with \"current\" as \"this\" is a reserved \n *  keyword in C++ which is prefectly fine for a c code. As this file\n *  has been changed to C++ \"this\" needs to be changed.\n */ \n#   define this current   ","Replace 'this' keyword with 'current' to get to compile with C++ compilers"]
["inftrees.cpp","47-48",null,"// Line to stop compiler warning about unused mandatory global variable\n char dontCare = inflate_copyright[0]; dontCare = dontCare;","stop compiler warning about unused mandatory global\nvariable"]
["inftrees.cpp","63-67",null,"/*  Need to replace \"this\" variable with \"current\" as \"this\" is a reserved \n *  keyword in C++ which is prefectly fine for a c code. As this file\n *  has been changed to C++ \"this\" needs to be changed.\n */ \n#   define this current   ","Replace 'this' keyword with 'current' to get to compile with C++ compilers"]
["tree.cpp","130-151","local static_tree_desc  static_l_desc =\n{static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS};\n\nlocal static_tree_desc  static_d_desc =\n{static_dtree, extra_dbits, 0,          D_CODES, MAX_BITS};\n\nlocal static_tree_desc  static_bl_desc =\n{(const ct_data *)0, extra_blbits, 0,   BL_CODES, MAX_BL_BITS};","#ifndef SYMBIAN_EZLIB_DEVICE\nlocal static_tree_desc  static_l_desc =\n{static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS};\n\nlocal static_tree_desc  static_d_desc =\n{static_dtree, extra_dbits, 0,          D_CODES, MAX_BITS};\n\nlocal static_tree_desc  static_bl_desc =\n{(const ct_data *)0, extra_blbits, 0,   BL_CODES, MAX_BL_BITS};\n\n#else\n\nlocal const static_tree_desc  static_l_desc =\n{static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS};\n\nlocal const static_tree_desc  static_d_desc =\n{static_dtree, extra_dbits, 0,          D_CODES, MAX_BITS};\n\nlocal const static_tree_desc  static_bl_desc =\n{(const ct_data *)0, extra_blbits, 0,   BL_CODES, MAX_BL_BITS};\n\n#endif //SYMBIAN_EZLIB_DEVICE","remove WSD"]
["trees.cpp","1093-1045","int _tr_tally (s, dist, lc)\n    deflate_state *s;\n    unsigned dist;  /* distance of matched string */\n    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n    s->d_buf[s->last_lit] = (ush)dist;\n    s->l_buf[s->last_lit++] = (uch)lc;\n    if (dist == 0) {\n        /* lc is the unmatched char */\n..................\n    /* We avoid equality with lit_bufsize because of wraparound at 64K\n     * on 16 bit machines and because stored blocks are restricted to\n     * 64K-1 bytes.\n     */\n}\n\n","#ifndef SYMBIAN_EZLIB_DEVICE\n\n#ifdef __SYMBIAN32__\nint _tr_tally (   deflate_state * s,unsigned  dist,unsigned  lc)\n#else\nint _tr_tally (s, dist, lc)\n    deflate_state *s;\n    unsigned dist;  /* distance of matched string */\n    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */\n#endif //__SYMBIAN32__\n{\n    s->d_buf[s->last_lit] = (ush)dist;\n    s->l_buf[s->last_lit++] = (uch)lc;\n    if (dist == 0) {\n        /* lc is the unmatched char */\n.................\n    /* We avoid equality with lit_bufsize because of wraparound at 64K\n     * on 16 bit machines and because stored blocks are restricted to\n     * 64K-1 bytes.\n     */\n}\n#endif //SYMBIAN_EZLIB_DEVICE\n\n","Not sure why this is here…could be removed?"]
["uncompr.cpp",11,"#include \"zlib.h\"","#include \"libzcore.h\"","using function names with '_r' appended"]
["zconf.h","13-24",null,"#if (defined(__TOOLS2__) || defined(__TOOLS__))\n #define EXPORT_C /* Defined as nothing for tools builds, as EXPORT_C keyword not supported on these platforms  */\n#else\n#ifdef __SYMBIAN32__\n #include <e32def.h>   /* Include for definition of IMPORT_C below */\n #define ZEXTERN IMPORT_C /* This macro is used in function prototypes in zlib.h and libzcore.h.  Use Symbian definition IMPORT_C instead of ZEXTERN */ \n #define SYMBIAN_EZLIB_DEVICE\n#endif /* __SYMBIAN32__ */\n#endif /* __TOOLS2__ || __TOOLS__ */","check what platform compiling for, and define macros for exporting relevant to that platform.  Also define SYMBIAN_EZLIB_DEVICE macro if Symbian EPOC is target platform"]
["zlib.h","45-51","#include \"zconf.h\"","#if (defined(__TOOLS2__) || defined(__TOOLS__))\n // A tools build picks up the zconf.h file from the user include path\n #include \"zconf.h\"\n#else\n // Any other build picks up zconf.h from stdapis system include directory\n #include <stdapis/zconf.h> \n#endif","include zconf.h header from user directory if building for PC, or from stdapis system include directory if building for Symbian platform"]
["zlib.h","1263-1525","\ntypedef voidp gzFile;\n\nZEXTERN gzFile ZEXPORT gzopen  OF((const char *path, const char *mode));\n/*\n.......................\n/*\n     Clears the error and end-of-file flags for file. This is analogous to the\n   clearerr() function in stdio. This is useful for continuing to read a gzip\n   file that is being written concurrently.\n*/","#ifndef SYMBIAN_EZLIB_EXCLUDE_GZ_FUNCTIONS\n\ntypedef voidp gzFile;\n\nZEXTERN gzFile ZEXPORT gzopen  OF((const char *path, const char *mode));\n/*\n................\n/*\n     Clears the error and end-of-file flags for file. This is analogous to the\n   clearerr() function in stdio. This is useful for continuing to read a gzip\n   file that is being written concurrently.\n*/\n#endif //SYMBIAN_EZLIB_EXCLUDE_GZ_FUNCTIONS","don’t include declarations for GZIO functions if this macro is defined"]
["zlib.h","617, 1696","the operating system will be set to 255 (unknown)","the operating system will be set to 3 (unix)","Comment was inconsistant with code. Comment said default os value for a Gzip header was 255 and in the code it is 3."]
["zlib.h",817,"and os set to 255","and os set to 3","Comment was inconsistant with code. Comment said default os value for a Gzip header was 255 and in the code it is 3."]
["zutil.cpp","10-12",null,"#ifdef SYMBIAN_EZLIB_DEVICE\n  #include <e32base.h>\n#endif","include e32base.h header for Symbian memory functions"]
["zutil.cpp","346-352","    return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : (voidpf)calloc(items, size);\n","#ifndef SYMBIAN_EZLIB_DEVICE\n  return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : (voidpf)calloc(items, size);\n#else\n TInt bytes = items*size;\n TAny *ptr = User::AllocZ(bytes); // Symbian Native memory allocation API\n return (voidpf) ptr;\n#endif //SYMBIAN_EZLIB_DEVICE","Add Symbian native memory allocation function"]
["zutil.cpp","363-367","    free(ptr);","#ifndef SYMBIAN_EZLIB_DEVICE\n  free(ptr);\n#else\n User::Free(ptr); // Symbian Native memory deallocation API\n#endif //SYMBIAN_EZLIB_DEVICE\n","Add Symbian native memory free function"]
["zutil.h",null,"#include \"zlib.h\"","#include \"libzcore.h\"","using function names with '_r' appended"]
["zutil.h","19-23",null,"#if defined(SYMBIAN_EZLIB_DEVICE) && !defined(LIBZGZIO_H)\n  #include <e32std.h>\n#endif ","include for Symbian native memory functions"]
["zutil.h","23-48","#ifdef STDC\n#  ifndef _WIN32_WCE\n#    include <stddef.h>\n#  endif\n………………..\n#  ifndef _WIN32_WCE\n#    include <errno.h>\n#  endif\n#endif\n","#if !defined(SYMBIAN_EZLIB_DEVICE) || defined(LIBZGZIO_H)\n\n#ifdef STDC\n#  ifndef _WIN32_WCE\n#    include <stddef.h>\n#  endif\n………………..\n#  ifndef _WIN32_WCE\n#    include <errno.h>\n#  endif\n#endif\n\n#endif //SYMBIAN_EZLIB_DEVICE","Removed for Symbian platforms when building libzcore.dll, so STDIO libraries are not included"]
["zutil.h","184-224","#ifndef F_OPEN\n#  define F_OPEN(name, mode) fopen((name), (mode))\n#endif\n\n         /* functions */\n#    define NO_vsnprintf\n#  endif\n#  ifdef WIN32\n     /* In Win32, vsnprintf is available as the \"non-ANSI\" _vsnprintf. */\n#    if !defined(vsnprintf) && !defined(NO_vsnprintf)\n#      define vsnprintf _vsnprintf\n#    endif\n#  endif\n#  ifdef __SASC\n#    define NO_vsnprintf\n#  endif\n#endif\n#ifdef VMS\n#  define NO_vsnprintf\n#endif","#if !defined(SYMBIAN_EZLIB_DEVICE) || defined(LIBZGZIO_H)\n#ifndef F_OPEN\n#  define F_OPEN(name, mode) fopen((name), (mode))\n#endif\n\n         /* functions */\n#    define NO_vsnprintf\n#  endif\n#  ifdef WIN32\n     /* In Win32, vsnprintf is available as the \"non-ANSI\" _vsnprintf. */\n#    if !defined(vsnprintf) && !defined(NO_vsnprintf)\n#ifndef SYMBIAN_EZLIB_DEVICE\n#      define vsnprintf _vsnprintf\n#    endif //SYMBIAN_EZLIB_DEVICE\n#    endif\n#  endif\n#  ifdef __SASC\n#    define NO_vsnprintf\n#  endif\n#endif\n#ifdef VMS\n#  define NO_vsnprintf\n#endif\n\n#endif // !SYMBIAN_EZLIB_DEVICE || LIBZGZIO_H","remove defines related to GZIO when building libzcore.dll on Symbian platform"]
["zutil.h","257-266",null,"// Native Symbian Memory Functions Symbian\n#if defined(SYMBIAN_EZLIB_DEVICE) && !defined(LIBZGZIO_H)\n  #define HAVE_MEMCPY\n  #undef zmemcpy\n  #undef zmemcmp\n  #undef zmemzero\n  #define zmemcpy Mem::Copy\n  #define zmemcmp(s1,s2,len)  Mem::Compare(s1,len,s2,len)\n  #define zmemzero(dest, len) Mem::FillZ(dest, len)\n#endif //SYMBIAN_EZLIB_DEVICE && !LIBZGZIO_H","Define Symbian memory utility functions for libzcore.dll only"]

{"sheet":"Sheet2","index":1,"n_rows":0,"n_cols":0,"rows_kept":0,"flags":["formulas_cached_only"]}

{"sheet":"Sheet3","index":2,"n_rows":0,"n_cols":0,"rows_kept":0,"flags":["formulas_cached_only"]}