pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || 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"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:2224:    *!    *! @seealso    *! @[add_constant()]    */   PMOD_EXPORT void f_all_constants(INT32 args)   {    pop_n_elems(args);    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.    *!    *! @note    *! This function should only be used during a call of @[compile()].    *!    *! @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)   {    pop_n_elems(args);    if (compat_handler) {    ref_push_object(compat_handler);    } else {    push_int(0);    }   }    - /*! @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)   {    pop_n_elems(args);    if (error_handler) {    ref_push_object(error_handler);    } else {    push_int(0);    }   }
pike.git/src/builtin_functions.c:3663:    }    }    }       free_type(array_zero);    free_type(mapping_zero);       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)    *!    *! Compile a string to a program.    *!    *! This function takes a piece of Pike code as a string and    *! compiles it into a clonable program.    *!    *! The optional argument @[handler] is used to specify an alternative    *! error handler. If it is not specified the current master object will
pike.git/src/builtin_functions.c:3688:    *!    *! @note    *! Note that @[source] must contain the complete source for a program.    *! It is not possible to compile a single expression or statement.    *!    *! Also note that @[compile()] does not preprocess the program.    *! To preprocess the program you can use @[compile_string()] or    *! 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)   {    struct program *p=0;    struct object *o;    struct object *placeholder=0;    int major=-1;    int minor=-1;