Anonymous avatar Anonymous committed 1761980

- sync to 2.0.24

Comments (0)

Files changed (3)

 
 typedef struct ssIOCtx *ssIOCtxPtr;
 
-gdIOCtx *gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk);
-
 static int sourceGetbuf (gdIOCtx *, void *, int);
 static int sourceGetchar (gdIOCtx * ctx);
 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
 static void gdFreeSsCtx (gdIOCtx * ctx);
 
 /* return data as a dynamic pointer */
-gdIOCtx *
-gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk)
+BGD_DECLARE(gdIOCtx *) gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk)
 {
   ssIOCtxPtr ctx;
 
  * should be near optimal for many applications).  See the IJG JPEG
  * library documentation for more details.  */
 
-void
-gdImageJpeg (gdImagePtr im, FILE * outFile, int quality)
+BGD_DECLARE(void) gdImageJpeg (gdImagePtr im, FILE * outFile, int quality)
 {
   gdIOCtx *out = gdNewFileCtx (outFile);
   gdImageJpegCtx (im, out, quality);
   out->gd_free (out);
 }
 
-void *
-gdImageJpegPtr (gdImagePtr im, int *size, int quality)
+BGD_DECLARE(void *) gdImageJpegPtr (gdImagePtr im, int *size, int quality)
 {
   void *rv;
   gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
 
 void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile);
 
-void
-gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality)
+BGD_DECLARE(void) gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality)
 {
   struct jpeg_compress_struct cinfo;
   struct jpeg_error_mgr jerr;
   gdFree (row);
 }
 
-gdImagePtr
-gdImageCreateFromJpeg (FILE * inFile)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromJpeg (FILE * inFile)
 {
   gdImagePtr im;
   gdIOCtx *in = gdNewFileCtx (inFile);
   return im;
 }
 
-gdImagePtr
-gdImageCreateFromJpegPtr (int size, void *data)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromJpegPtr (int size, void *data)
 {
   gdImagePtr im;
   gdIOCtx *in = gdNewDynamicCtxEx (size, data, 0);
  * Create a gd-format image from the JPEG-format INFILE.  Returns the
  * image, or NULL upon error.
  */
-gdImagePtr
-gdImageCreateFromJpegCtx (gdIOCtx * infile)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromJpegCtx (gdIOCtx * infile)
 {
   struct jpeg_decompress_struct cinfo;
   struct jpeg_error_mgr jerr;
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 {
 }
 
-gdImagePtr
-gdImageCreateFromPng (FILE * inFile)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromPng (FILE * inFile)
 {
   gdImagePtr im;
   gdIOCtx *in = gdNewFileCtx (inFile);
   return im;
 }
 
-gdImagePtr
-gdImageCreateFromPngPtr (int size, void *data)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromPngPtr (int size, void *data)
 {
   gdImagePtr im;
   gdIOCtx *in = gdNewDynamicCtxEx (size, data, 0);
 /* This routine is based in part on the Chapter 13 demo code in "PNG: The
  *  Definitive Guide" (http://www.cdrom.com/pub/png/pngbook.html).
  */
-gdImagePtr
-gdImageCreateFromPngCtx (gdIOCtx * infile)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromPngCtx (gdIOCtx * infile)
 {
   png_byte sig[8];
   png_structp png_ptr;
 }
 
 
-void
-gdImagePngEx (gdImagePtr im, FILE * outFile, int level)
+BGD_DECLARE(void) gdImagePngEx (gdImagePtr im, FILE * outFile, int level)
 {
   gdIOCtx *out = gdNewFileCtx (outFile);
   gdImagePngCtxEx (im, out, level);
   out->gd_free (out);
 }
 
-void
-gdImagePng (gdImagePtr im, FILE * outFile)
+BGD_DECLARE(void) gdImagePng (gdImagePtr im, FILE * outFile)
 {
   gdIOCtx *out = gdNewFileCtx (outFile);
   gdImagePngCtxEx (im, out, -1);
   out->gd_free (out);
 }
 
-void *
-gdImagePngPtr (gdImagePtr im, int *size)
+BGD_DECLARE(void *) gdImagePngPtr (gdImagePtr im, int *size)
 {
   void *rv;
   gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
   return rv;
 }
 
-void *
-gdImagePngPtrEx (gdImagePtr im, int *size, int level)
+BGD_DECLARE(void *) gdImagePngPtrEx (gdImagePtr im, int *size, int level)
 {
   void *rv;
   gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
   return rv;
 }
 
-void
-gdImagePngCtx (gdImagePtr im, gdIOCtx * outfile)
+BGD_DECLARE(void) gdImagePngCtx (gdImagePtr im, gdIOCtx * outfile)
 {
   /* 2.0.13: 'return' here was an error, thanks to Kevin Smith */
   gdImagePngCtxEx (im, outfile, -1);
  *  and in part on demo code from Chapter 15 of "PNG: The Definitive Guide"
  *  (http://www.cdrom.com/pub/png/pngbook.html).
  */
-void
-gdImagePngCtxEx (gdImagePtr im, gdIOCtx * outfile, int level)
+BGD_DECLARE(void) gdImagePngCtxEx (gdImagePtr im, gdIOCtx * outfile, int level)
 {
   int i, j, bit_depth = 0, interlace_type;
   int width = im->sx;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.