00001 /* 00002 || This file is part of Pike. For copyright information see COPYRIGHT. 00003 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING 00004 || for more information. 00005 || $Id: module_magic.h,v 1.9 2003/01/07 16:37:31 marcus Exp $ 00006 */ 00007 00008 #ifndef MODULE_MAGIC_H 00009 #define MODULE_MAGIC_H 00010 00011 #include "module.h" 00012 00013 /* NB: use of module_magic is deprecated. 00014 Please use the PIKE_MODULE_INIT/PIKE_MODULE_EXIT macros 00015 directly in new code. */ 00016 00017 00018 #ifndef ALLOW_DEPRECATED_MODULE_MAGIC 00019 00020 /* To get rid of the following message, define ALLOW_DEPRECATED_MODULE_MAGIC. 00021 This option is a transitional measure and may be removed at some 00022 future time. Please update your code to use PIKE_MODULE_INIT/ 00023 PIKE_MODULE_EXIT instead. */ 00024 00025 #error module_magic.h is deprecated. Please read the header file for details. 00026 00027 #endif /* ALLOW_DEPRECATED_MODULE_MAGIC */ 00028 00029 00030 #ifdef DYNAMIC_MODULE 00031 #define pike_module_init(X) mYDummyFunctioN1(void); PIKE_MODULE_INIT 00032 #define pike_module_exit(X) mYDummyFunctioN2(void); PIKE_MODULE_EXIT 00033 #endif /* DYNAMIC_MODULE */ 00034 00035 #endif /* MODULE_MAGIC_H */
1.3.9.1