Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fixing a typo in zlib.h

Fixing a typo in zlib.h

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cafun
    wrote on last edited by
    #1

    Hello I have found a typo in the zlib.h header when it is patched for Qt. Version 4.7.1.

    File src/3rdparty/zlib/zlib.h. Note the missing Q_ for the gzungetc function declaration.

    see below

    Where/how should I report this so that it can be changed in the main code base?

    Thanks,

    Jeff

    ZEXTERN int Q_ZEXPORT gzgetc OF((gzFile file));
    /*
    Reads one byte from the compressed file. gzgetc returns this byte
    or -1 in case of end of file or error.
    */

    ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
    /*
    Push one character back onto the stream to be read again later.
    Only one character of push-back is allowed. gzungetc() returns the
    character pushed, or -1 on failure. gzungetc() will fail if a
    character has been pushed but not read yet, or if c is -1. The pushed
    character will be discarded if the stream is repositioned with gzseek()
    or gzrewind().
    */

    ZEXTERN int Q_ZEXPORT gzflush OF((gzFile file, int flush));

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      "http://bugreports.qt.nokia.com/":http://bugreports.qt.nokia.com/ is the right place to report bugs and feature requests.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved