Ignore:
Timestamp:
Jun 30, 2008, 10:13:07 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: poppler library updated to version 0.8.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/goo/gmem.h

    r2 r250  
    1111
    1212#include <stdio.h>
     13#include <poppler/poppler-config.h>
     14
     15#if USE_EXCEPTIONS
     16
     17class GMemException {
     18public:
     19  GMemException() {}
     20  ~GMemException() {}
     21};
     22
     23#define GMEM_EXCEP throw(GMemException)
     24
     25#else // USE_EXCEPTIONS
     26
     27#define GMEM_EXCEP
     28
     29#endif // USE_EXCEPTIONS
    1330
    1431#ifdef __cplusplus
     
    2037 * returns NULL.
    2138 */
    22 extern void *gmalloc(size_t size);
     39extern void *gmalloc(size_t size) GMEM_EXCEP;
    2340
    2441/*
     
    2643 * returns NULL.  If <p> is NULL, calls malloc instead of realloc().
    2744 */
    28 extern void *grealloc(void *p, size_t size);
     45extern void *grealloc(void *p, size_t size) GMEM_EXCEP;
    2946
    3047/*
     
    3350 * bytes, but there is an additional error check that the total size
    3451 * doesn't overflow an int.
     52 * The gmallocn_checkoverflow variant returns NULL instead of exiting
     53 * the application if a overflow is detected
    3554 */
    36 extern void *gmallocn(int nObjs, int objSize);
    37 extern void *greallocn(void *p, int nObjs, int objSize);
     55extern void *gmallocn(int nObjs, int objSize) GMEM_EXCEP;
     56extern void *gmallocn_checkoverflow(int nObjs, int objSize) GMEM_EXCEP;
     57extern void *greallocn(void *p, int nObjs, int objSize) GMEM_EXCEP;
    3858
    3959/*
     
    5676extern char *copyString(char *s);
    5777
     78/*
     79 * Allocate memory and copy a limited-length string to it.
     80 */
     81extern char *gstrndup(const char *s, size_t n);
     82
    5883#ifdef __cplusplus
    5984}
Note: See TracChangeset for help on using the changeset viewer.