pike.git / src / modules / _Roxen / roxen.c

version» Context lines:

pike.git/src/modules/_Roxen/roxen.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: roxen.c,v 1.31 2002/10/14 13:41:02 grubba Exp $ + || $Id: roxen.c,v 1.32 2002/10/21 17:06:25 marcus Exp $   */      #define NO_PIKE_SHORTHAND      #include "global.h"   #include "config.h"         #include "machine.h"   
pike.git/src/modules/_Roxen/roxen.c:30:   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"   #include "array.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "backend.h"   #include "threads.h"   #include "operators.h"    - /* must be last include! */ - #include "module_magic.h" +       /*! @module _Roxen    */      /*! @class HeaderParser    */      #define THP ((struct header_buf *)Pike_fp->current_storage)   struct header_buf   {
pike.git/src/modules/_Roxen/roxen.c:474:    case 2: REPLACE(int); break;    }    pop_stack();    push_string( low_end_shared_string( res ) );    }   }      /*! @endmodule    */    - void pike_module_init() + PIKE_MODULE_INIT   {    pike_add_function("make_http_headers", f_make_http_headers,    "function(mapping(string:string|array(string)):string)", 0 );       pike_add_function("http_decode_string", f_http_decode_string,    "function(string:string)", 0 );       pike_add_function("html_encode_string", f_html_encode_string,    "function(mixed:string)", 0 );       start_new_program();    ADD_STORAGE( struct header_buf );    set_init_callback( f_hp_init );    set_exit_callback( f_hp_exit );    pike_add_function( "feed", f_hp_feed, "function(string:array(string|mapping))",0 );    pike_add_function( "create", f_hp_create, "function(:void)", ID_STATIC );    end_class( "HeaderParser", 0 );   }    - void pike_module_exit() + PIKE_MODULE_EXIT   {   }