]> granicus.if.org Git - php/commit
More symbol work.
authorAndrey Hristov <andrey@php.net>
Mon, 26 Jul 1999 20:09:08 +0000 (20:09 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 26 Jul 1999 20:09:08 +0000 (20:09 +0000)
commit1b2c932cc2848da25b38a4e73aa74541a9761beb
tree19c46f9a829a34237c2411cdce3a3c4ca2f4fde1
parent7af5579e3f40ccda2e5b5bf47ff3b2a71327317f
More symbol work.

I've defined a few macros to help with module/request init/startup function definitions.
Basically:

PHP_MINIT_FUNCTION(module)
PHP_MSHUTDOWN_FUNCTION(module)
PHP_RINIT_FUNCTION(module)
PHP_RSHUTDOWN_FUNCTION(module)
PHP_MINFO_FUNCTION(module)

These will expand to proper function prototypes.

Now to specify these in the module entry, use:

PHP_MINIT(module)
PHP_MSHUTDOWN(module)
PHP_RINIT(module)
PHP_RSHUTDOWN(module)
PHP_MINFO(module)

I've updated all modules in ext/standard and everything from ext/apache to ext/db.
If you can, please update your module to use these macros.
38 files changed:
ext/apache/apache.c
ext/aspell/aspell.c
ext/aspell/php3_aspell.h
ext/bcmath/bcmath.c
ext/bcmath/php3_bcmath.h
ext/com/php3_COM.h
ext/db/db.c
ext/db/php3_db.h
ext/ereg/ereg.c
ext/rpc/com/COM.c
ext/rpc/com/php3_COM.h
ext/standard/basic_functions.c
ext/standard/basic_functions.h
ext/standard/browscap.c
ext/standard/crypt.c
ext/standard/dir.c
ext/standard/dl.c
ext/standard/dl.h
ext/standard/file.c
ext/standard/file.h
ext/standard/filestat.c
ext/standard/fsock.c
ext/standard/fsock.h
ext/standard/head.c
ext/standard/head.h
ext/standard/mail.c
ext/standard/pack.c
ext/standard/pack.h
ext/standard/php3_browscap.h
ext/standard/php3_crypt.h
ext/standard/php3_dir.h
ext/standard/php3_filestat.h
ext/standard/php3_mail.h
ext/standard/php3_syslog.h
ext/standard/reg.c
ext/standard/syslog.c
main/configuration-parser.y
main/php.h