Annotation of parser3/src/types/pa_vstateless_class.C, revision 1.6

1.2       paf         1: /*
                      2:        Parser
                      3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
                      4:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      5: 
1.6     ! paf         6:        $Id: pa_vstateless_class.C,v 1.5 2001/03/19 22:38:11 paf Exp $
1.2       paf         7: */
                      8: 
                      9: #include "pa_vstateless_class.h"
                     10: #include "pa_vstring.h"
                     11: 
                     12: void VStateless_class::add_native_method(
                     13:        const char *cstr_name,
                     14:        Native_code_ptr native_code,
                     15:        int min_numbered_params_count, int max_numbered_params_count) {
                     16: 
1.4       paf        17:        String& name=*NEW String(pool(), cstr_name);
1.2       paf        18:        
                     19:        Method& method=*NEW Method(pool(),
                     20:                name,
                     21:                min_numbered_params_count, max_numbered_params_count,
                     22:                0/*params_names*/, 0/*locals_names*/,
                     23:                0/*parser_code*/, native_code
                     24:                );
                     25:        add_method(name, method);
                     26: }

E-mail: