Branch: Tag:

2006-01-27

2006-01-27 20:29:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some documentation about compilation handlers.

Rev: src/builtin_functions.c:1.605
Rev: src/cpp.c:1.159

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.604 2006/01/26 21:12:43 grubba Exp $ + || $Id: builtin_functions.c,v 1.605 2006/01/27 20:29:28 grubba Exp $   */      #include "global.h"
2231:    ref_push_mapping(get_builtin_constants());   }    - /*! @decl object get_active_compilation_handler() + /*! @decl CompilationHandler get_active_compilation_handler()    *!    *! Returns the currently active compilation compatibility handler, or    *! @tt{0@} (zero) if none is active.
2241:    *!    *! @seealso    *! @[get_active_error_handler()], @[compile()], -  *! @[master()->get_compilation_handler()] +  *! @[master()->get_compilation_handler()], @[CompilationHandler]    */   PMOD_EXPORT void f_get_active_compilation_handler(INT32 args)   {
2253:    }   }    - /*! @decl object get_active_error_handler() + /*! @decl CompilationHandler get_active_error_handler()    *!    *! Returns the currently active compilation error handler -  *! (argument 4 to @[compile()]), or @tt{0@} (zero) if none +  *! (second argument to @[compile()]), or @tt{0@} (zero) if none    *! is active.    *!    *! @note    *! This function should only be used during a call of @[compile()].    *!    *! @seealso -  *! @[get_active_compilation_handler()], @[compile()] +  *! @[get_active_compilation_handler()], @[compile()], @[CompilationHandler]    */   PMOD_EXPORT void f_get_active_error_handler(INT32 args)   {
3670:    return NULL;   }    - /*! @decl program compile(string source, object|void handler, @ + /*! @decl program compile(string source, CompilationHandler|void handler, @    *! int|void major, int|void minor,@    *! program|void target, object|void placeholder)    *!
3695:    *! call the preprocessor manually by calling @[cpp()].    *!    *! @seealso -  *! @[compile_string()], @[compile_file()], @[cpp()], @[master()] +  *! @[compile_string()], @[compile_file()], @[cpp()], @[master()], +  *! @[CompilationHandler]    */   PMOD_EXPORT void f_compile(INT32 args)   {