diff options
| author | foobar <sniper@php.net> | 2001-01-03 16:05:45 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2001-01-03 16:05:45 +0000 |
| commit | 31a1c0aca6564f2256f57003567e11ed5b13a27a (patch) | |
| tree | 740dac12e4fd721f75c70cbd482bcad004a60349 /ext/pdf/php_pdf.h | |
| parent | 2f6a05ecb88ff2e974ca856780b59fcfea4fd304 (diff) | |
| download | php-git-31a1c0aca6564f2256f57003567e11ed5b13a27a.tar.gz | |
Trying to bring pdf extension a bit more up to date.
Diffstat (limited to 'ext/pdf/php_pdf.h')
| -rw-r--r-- | ext/pdf/php_pdf.h | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/ext/pdf/php_pdf.h b/ext/pdf/php_pdf.h index f664cada96..927c322d20 100644 --- a/ext/pdf/php_pdf.h +++ b/ext/pdf/php_pdf.h @@ -1,31 +1,21 @@ /* +----------------------------------------------------------------------+ - | PHP HTML Embedded Scripting Language Version 3.0 | + | PHP version 4.0 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-1999 PHP Development Team (See Credits file) | + | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | +----------------------------------------------------------------------+ - | This program is free software; you can redistribute it and/or modify | - | it under the terms of one of the following licenses: | - | | - | A) the GNU General Public License as published by the Free Software | - | Foundation; either version 2 of the License, or (at your option) | - | any later version. | - | | - | B) the PHP License as published by the PHP Development Team and | - | included in the distribution in the file: LICENSE | - | | - | This program is distributed in the hope that it will be useful, | - | but WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | - | GNU General Public License for more details. | - | | - | You should have received a copy of both licenses referred to here. | - | If you did not, or have any questions about PHP licensing, please | - | contact core@php.net. | + | This source file is subject to version 2.02 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.php.net/license/2_02.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Uwe Steinmann | + | Authors: Uwe Steinmann <Uwe.Steinmann@fernuni-hagen.de> | +----------------------------------------------------------------------+ - */ +*/ + /* $Id$ */ #ifndef PHP_PDF_H @@ -39,8 +29,6 @@ #define PDF_OPEN_MEM_SUPPORTED #include <pdflib.h> -extern int le_fp; - extern zend_module_entry pdf_module_entry; #define pdf_module_ptr &pdf_module_entry @@ -120,11 +108,11 @@ PHP_FUNCTION(pdf_set_duration); PHP_FUNCTION(pdf_open_jpeg); PHP_FUNCTION(pdf_open_tiff); PHP_FUNCTION(pdf_open_png); +PHP_FUNCTION(pdf_open_gif); +PHP_FUNCTION(pdf_open_image_file); #if HAVE_LIBGD13 PHP_FUNCTION(pdf_open_memory_image); #endif -PHP_FUNCTION(pdf_open_gif); -PHP_FUNCTION(pdf_open_image_file); PHP_FUNCTION(pdf_close_image); PHP_FUNCTION(pdf_place_image); PHP_FUNCTION(pdf_put_image); @@ -137,6 +125,17 @@ PHP_FUNCTION(pdf_set_border_color); PHP_FUNCTION(pdf_set_border_dash); PHP_FUNCTION(pdf_get_image_width); PHP_FUNCTION(pdf_get_image_height); + + +#ifdef ZTS +#define PDFG(v) (pdf_globals->v) +#define PDFLS_FETCH() php_pdf_globals *pdf_globals = ts_resource(pdf_globals_id) +#else +#define PDFG(v) (pdf_globals.v) +#define PDFLS_FETCH() +#endif + + #else #define pdf_module_ptr NULL #endif |
