pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.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. */ #include "global.h" #include "program.h" #include "object.h"
-
#include "
dynamic_
buffer.h"
+
#include "buffer.h"
#include "pike_types.h" #include "stralloc.h" #include "las.h" #include "lex.h" #include "pike_macros.h" #include "fsort.h" #include "pike_error.h" #include "docode.h" #include "interpret.h" #include "main.h"
pike.git/src/program.c:1779:
} void use_module(struct svalue *s) { struct compilation *c = THIS_COMPILATION; if( (1<<TYPEOF(*s)) & (BIT_MAPPING | BIT_OBJECT | BIT_PROGRAM)) { c->num_used_modules++; Pike_compiler->num_used_modules++; assign_svalue_no_free((struct svalue *)
-
low
_
make_buf_space
(
sizeof(struct svalue),
-
&c->used_modules), s);
+
buffer
_
alloc
(&c->used_modules
, sizeof(struct svalue
)
)
, s);
if(Pike_compiler->module_index_cache) { free_mapping(Pike_compiler->module_index_cache); Pike_compiler->module_index_cache=0; } if(c->resolve_cache) { free_mapping(c->resolve_cache); c->resolve_cache=0; }
pike.git/src/program.c:9617:
{ struct compilation *c = THIS_COMPILATION; switch (e) { case PROG_EVENT_INIT: CDFPRINTF("th(%ld) compilation: INIT(%p).\n", (long) th_self(), c); memset(c, 0, sizeof(*c)); c->supporter.self = Pike_fp->current_object; /* NOTE: Not ref-counted! */ c->compilation_inherit = Pike_fp->context - Pike_fp->current_object->prog->inherits;
-
initialize
_
buf
(&c->used_modules);
+
buffer
_
init
(&c->used_modules);
SET_SVAL(c->default_module, T_MAPPING, 0, mapping, get_builtin_constants()); add_ref(c->default_module.u.mapping); c->major = -1; c->minor = -1; c->lex.current_line = 1; c->lex.current_file = make_shared_string("-"); c->compilation_depth = -1; break; case PROG_EVENT_EXIT: CDFPRINTF("th(%ld) compilation: EXIT(%p).\n", (long) th_self(), c);
-
toss_
buffer(&c->used_modules);
+
buffer
_
free
(&c->used_modules);
free_compilation(c); break; } } /*! @decl void report(SeverityLevel severity, @ *! string filename, int linenumber, @ *! string subsystem, @ *! string message, mixed ... extra_args) *!