ead7252003-11-13Martin Stjernholm File overview -------------
cf738c2013-11-15Henrik Grubbström (Grubba) Informational DISCLAIMER It's not my fault. MANIFEST This file.
ead7252003-11-13Martin Stjernholm System interface glue alloca.c Emulation of alloca(3) if it doesn't exist. crypt.c Implementation of BSD style crypt(3) if it doesn't exist. fd_control.c fd_control.h Support for setting fd modes (blocking, nonblocking, close-on-exec). fdlib.c fdlib.h
cf738c2013-11-15Henrik Grubbström (Grubba)  NT emulation of POSIX-style I/O on fd's.
ead7252003-11-13Martin Stjernholm  pike_cpulib.c pike_cpulib.h CPU specific code for implementing atomic locks. Used only when running without the interpreter lock.
cf738c2013-11-15Henrik Grubbström (Grubba)  pike_float.c
ead7252003-11-13Martin Stjernholm  pike_float.h Support stuff for dealing with floats on different systems. pike_netlib.h Support stuff for dealing with ip addresses on different systems. pike_rusage.h rusage.c Support for getrusage(2) and look-alikes on different systems, and support for querying virtual cpu time. port.c port.h Glue for various stuff that doesn't work quite the same on different systems. Tools
cf738c2013-11-15Henrik Grubbström (Grubba)  bitvector.h Low-level macros mainly used by the block allocator.
ead7252003-11-13Martin Stjernholm  block_alloc.h block_alloc_h.h
cf738c2013-11-15Henrik Grubbström (Grubba)  block_allocator.c block_allocator.h
ead7252003-11-13Martin Stjernholm  Macro package for defining an allocator that lumps together fixed size structs into larger blocks. Also contains a simple hash table implementation for lookup of the structs. callback.c callback.h Tool for handling lists of functions to call at specific times. Callbacks may be added and removed at runtime. cyclic.c cyclic.h Support for detecting and breaking cyclic call chains. dmalloc.h Functions for dmalloc (DEBUG_MALLOC). The code is in pike_memory.c.
2d10fb2016-12-29Arne Goedeke  buffer.c buffer.h
ead7252003-11-13Martin Stjernholm  Tool for building strings in streaming fashion. fsort.c fsort.h A generic sort implementation using fsort_template.h. fsort_template.h Macro package for defining a sort function for an arbitrary data type using an arbitrary compare test. global.h
19065e2003-11-14Martin Stjernholm  Included initially in just about every file. Contains macros for
ead7252003-11-13Martin Stjernholm  the chosen Pike integer and float types, and various other basic macros.
cf738c2013-11-15Henrik Grubbström (Grubba)  malloc.c Memory allocation functions. This overrides the libc implementation of malloc, etc, when --enable-dlmalloc is active (default on WIN32).
ead7252003-11-13Martin Stjernholm  pike_macros.h Miscellaneous support macros. pike_memory.c pike_memory.h The wrappers for malloc(3) etc and the dmalloc implementation. Also contain some utility functions for handling of generic memory blocks, e.g. hashing and some wide string tools. pike_search.c pike_search.h A memory search implementation that handles wide strings. It's used by search() and others. pike_search_engine.c Contains the needle specific parts of the memory searcher. Included by pike_search.c once for each string width of the needle. pike_search_engine2.c Contains the haystack specific parts of the memory searcher. Included by pike_search_engine.c once for each string width of the haystack. queue.c queue.h FIFO and LIFO queues for functions to call. The difference from callback.* is that the queue is emptied when the callbacks have been called, and that it's designed for large amounts of callbacks. Used primarily by the gc. rbtree.c rbtree.h rbtree_low.h Red/black tree implementation. Used to implement the multisets.
4492322018-01-14Martin Nilsson  siphash24.h
3ca5ea2013-11-02Martin Nilsson  siphash24.c Fast, secure hash function used to prevent hash table DoS collision attacks.
a345a82018-01-14Martin Nilsson  strip_opcodes
cf738c2013-11-15Henrik Grubbström (Grubba)  sh-script used to convert interpret_functions.h into interpret_protos.h_src.
ead7252003-11-13Martin Stjernholm  time_stuff.h Some tools to handle timeval structs. Compiler
da8eda2016-07-27Martin Nilsson  cpp.cmod
ead7252003-11-13Martin Stjernholm  cpp.h Wrap together the preprocessor from preprocessor.h. compilation.h Macros for the fields in the program_state struct. Used to unify code that does operations uniformly across all of them. docode.c docode.h Convert node trees to opcode sequences. Also call assemble in peep.c to convert it to byte/machine code. language.c (autogenerated)
cf738c2013-11-15Henrik Grubbström (Grubba)  language.c_src (autogenerated)
ead7252003-11-13Martin Stjernholm  language.h (autogenerated)
cf738c2013-11-15Henrik Grubbström (Grubba)  language.h_src (autogenerated) language.h_src.nolines (autogenerated)
ead7252003-11-13Martin Stjernholm  language.yacc
cf738c2013-11-15Henrik Grubbström (Grubba)  y.output (autogenerated)
ead7252003-11-13Martin Stjernholm  The yacc/bison language productions. These primarily build node trees (i.e. abstract syntax trees) from the language constructs. las.c las.h
cf738c2013-11-15Henrik Grubbström (Grubba)  Node tree handling. Wrap together the tree optimizer. Also contains
ead7252003-11-13Martin Stjernholm  an evaluator for constant expressions and dooptcode which wraps together the conversion of a node tree for a function body to optimized byte code. lex.c lex.h
19065e2003-11-14Martin Stjernholm  Wrap together the lexer.
ead7252003-11-13Martin Stjernholm  lexer.h The actual lexer. Included by lex.c for different string widths.
8b3b712018-01-19Martin Nilsson  opcode_list.h List of stack machine opcodes.
19065e2003-11-14Martin Stjernholm  opcodes.c opcodes.h Opcode lookup tables and primitives for them. The opcode enums also double as token ids in many cases.
ead7252003-11-13Martin Stjernholm  peep.c peep.h Wrap together the peephole optimizer, handle the conversion of labels from opcodes to offsets, and the conversion from opcode sequences to machine code. Also have some primitives for opcodes and insertion into the opcode list. peep.in peep_engine.c (autogenerated) The core of the peephole optimizer. peep_engine.c is generated from transformation rules for opcode sequences in peep.in. peep_engine.c is included by peep.c.
cf738c2013-11-15Henrik Grubbström (Grubba)  pike_compiler.h Definition of the compilator context.
ead7252003-11-13Martin Stjernholm  program.c program.h Implement the data type for programs (aka classes). The compiler is wrapped together here. Also contain the lfun support, the C level parts of the resolver, and the trampoline program. program_areas.h Macros for the different areas in the program struct. Used to unify code that does operations uniformly across all of them. treeopt.h (autogenerated) treeopt.in The node tree optimizer. treeopt.h is generated from tree transformation rules in treeopt.in. treeopt.h is included by las.c. Interpreter apply_low.h The deeper parts of the apply function. Included by interpret.c to make different apply variants. code/ Contains the different byte code formats, e.g. machine code for some architectures. interpret.c interpret.h The core interpreter, i.e. apply and eval functions and runtime
e0cfb32004-10-22Henrik Grubbström (Grubba)  scope handling. Also has tools to handle the pike stack, e.g. pushing and popping of various data types.
ead7252003-11-13Martin Stjernholm  interpret_functions.h Implements all the opcodes. Included by interpret.c and interpreter.h.
cf738c2013-11-15Henrik Grubbström (Grubba)  interpret_functions.h.compiled (autogenerated) interpret_functions_fixed.h (autogenerated)
ead7252003-11-13Martin Stjernholm  interpret_protos.h (autogenerated)
cf738c2013-11-15Henrik Grubbström (Grubba)  interpret_protos.h.nolines (autogenerated) interpret_protos.h_src (autogenerated) interpret_protos.h_src.nolines (autogenerated)
ead7252003-11-13Martin Stjernholm  Macros for the opcode prototypes. Extracted from interpret_functions.h. interpreter.h Wraps up the opcodes in interpret_functions.h into an eval functions with a loop and a gigantic switch. This is only used when machine code isn't enabled. The opcodes become separate functions otherwise. Included by interpret.c.
cf738c2013-11-15Henrik Grubbström (Grubba)  OCPikeInterpreter.h OCPikeInterpreter.m Objective-C interface to the Pike interpreter.
ead7252003-11-13Martin Stjernholm  pikecode.c pikecode.h Import the chosen byte code format from the code subdirectory. Built-in data types array.c array.h Implement arrays. Also contain the compare functions for some orders used in the core. bignum.c bignum.h The magic to hook in Gmp integers as bignums and to convert between 64 bit ints and bignums on systems where the int type is shorter.
cf738c2013-11-15Henrik Grubbström (Grubba)  iterators.c (autogenerated)
ead7252003-11-13Martin Stjernholm  iterators.cmod
cf738c2013-11-15Henrik Grubbström (Grubba)  iterators.cmod.compiled (autogenerated)
ead7252003-11-13Martin Stjernholm  The interface class for iterators, the built-in iterators, and the bulk of the foreach opcode. mapping.c mapping.h Implement mappings. multiset.c multiset.h Implement multisets. object.c object.h Implement objects. Contain the code that initializes and destruct objects, the implementations of the "magically inherited" lfuns, and the code that compiles and instantiates the master. stralloc.c stralloc.h Implement pike strings. Module system dynamic_load.c dynamic_load.h Implement the loading of dynamic modules (the load_module function).
6a25c82018-01-13Martin Nilsson  pike_modules.c pike_modules.h
ead7252003-11-13Martin Stjernholm  Maintain the entry and exit hooks for the statically compiled modules.
8b3b712018-01-19Martin Nilsson  module.h Include file for most of what a Pike module needs.
ead7252003-11-13Martin Stjernholm  module_support.c module_support.h Tools for importing and exporting symbols between modules. Also contain helpers for checking arguments on the pike stack.
cf738c2013-11-15Henrik Grubbström (Grubba)  modules/ Standard modules that don't need the recently built pike in order to be built.
ead7252003-11-13Martin Stjernholm  post_modules/ Standard modules that are built after the pike binary. These need the recently built pike in order to be built.
cf738c2013-11-15Henrik Grubbström (Grubba)  tmodule.c module.c replacement when building the temporary tpike binary (only used when only static modules are supported).
ead7252003-11-13Martin Stjernholm Core runtime support
cf738c2013-11-15Henrik Grubbström (Grubba)  backend.c (autogenerated)
ead7252003-11-13Martin Stjernholm  backend.cmod
cf738c2013-11-15Henrik Grubbström (Grubba)  backend.cmod.compiled (autogenerated)
ead7252003-11-13Martin Stjernholm  backend.h Implement Pike.Backend, i.e. callback driven I/O and call outs.
cf738c2013-11-15Henrik Grubbström (Grubba)  builtin.c (autogenerated)
ead7252003-11-13Martin Stjernholm  builtin.cmod
cf738c2013-11-15Henrik Grubbström (Grubba)  builtin.cmod.compiled (autogenerated)
ead7252003-11-13Martin Stjernholm  builtin_functions.c builtin_functions.h Implement various core functions (mostly efuns). builtin_functions.c primarily contains the functions that predate the precompile system. case_info.h (autogenerated) Case tables for lower_case and upper_case in builtin_functions.c.
cf738c2013-11-15Henrik Grubbström (Grubba)  Generated from UnicodeData.txt.
6528232010-01-09Stephen R. van den Berg 
ead7252003-11-13Martin Stjernholm  combine_path.h Template for combine_path in builtin_functions.c. constants.c constants.h The global constants mapping, along with the support for efuns.
cf738c2013-11-15Henrik Grubbström (Grubba)  dtrace/ DTrace probe definitions.
ead7252003-11-13Martin Stjernholm  encode.c encode.h Implement encode_value and decode_value. Contain low-level compile/resolve stuff to decode dumped programs. error.c pike_error.h Exception handling and debug style fatal exit. errors.h Built-in exception objects. Included by error.c. gc.c gc.h The garbage collector. Also contain tools for locating references to a memory object and to identify and print out the common types of memory objects in debug style. main.c main.h
cf738c2013-11-15Henrik Grubbström (Grubba)  The entry point. Contains parsing of low-level command arguments
ead7252003-11-13Martin Stjernholm  (i.e. those not handled in the master), initialization and cleanup. operators.c operators.h
19065e2003-11-14Martin Stjernholm  Implement the runtime behavior for the operators.
ead7252003-11-13Martin Stjernholm 
cf738c2013-11-15Henrik Grubbström (Grubba)  pike_embed.c pike_embed.h The entry points suitable for use when embedding Pike in another binary.
ead7252003-11-13Martin Stjernholm  pike_int_types.h Macros for choosing C compiler integer types for INT64, INT32, INT16 and INT8. pike_threadlib.h Support for threads on different systems. Also has the header stuff for swapping pike threads and releasing/taking the interpreter lock. The code is in threads.c. pike_types.c pike_types.h Handling of types in pike. signal_handler.c signal_handler.h Signal and process support.
4492322018-01-14Martin Nilsson  sprintf.h
cf738c2013-11-15Henrik Grubbström (Grubba)  sprintf.c Implement the sprintf function.
19065e2003-11-14Martin Stjernholm  sscanf.c sscanf.h Implement the sscanf special function.
cf738c2013-11-15Henrik Grubbström (Grubba)  stack_allocator.c stack_allocator.h Stack-based memory handling for sprintf.
33fec82013-06-02Martin Nilsson 
afbb752018-01-14Martin Nilsson  string_builder.h string_builder.c Dynamically build strings.
ead7252003-11-13Martin Stjernholm  svalue.c svalue.h Handling of normal and short svalues, e.g. functions to free, assign, compare and print svalues. Also contain the parts of the gc that follow references. threads.c threads.h Thread support. Provides a generic thread farm too.
cf738c2013-11-15Henrik Grubbström (Grubba)  whitespace.h (autogenerated) Unicode whitespace characters used in builtin.cmod. Generated from UnicodeData.txt.
ead7252003-11-13Martin Stjernholm 
cf738c2013-11-15Henrik Grubbström (Grubba) Build system
d274dc2003-12-15Martin Nilsson 
cf738c2013-11-15Henrik Grubbström (Grubba)  acconfig.h aclocal.m4
ead7252003-11-13Martin Stjernholm  configure.in
d274dc2003-12-15Martin Nilsson  The configure template. Used by run_autoconfig to generate configure.
cf738c2013-11-15Henrik Grubbström (Grubba)  configure (autogenerated) machine.h.in (autogenerated) Configuration script and template file. Generated by run_autoconfig. dependencies (autogenerated) Inter-file dependencies.
ead7252003-11-13Martin Stjernholm  dumpmaster.pike
d274dc2003-12-15Martin Nilsson  Codec made especially for dumping the Pike master.
ead7252003-11-13Martin Stjernholm  export_list
d274dc2003-12-15Martin Nilsson  A list of the files and directories that should be included in a source dist. Used by bin/export.pike.
cf738c2013-11-15Henrik Grubbström (Grubba)  install-sh sh-script substitute for install(1) where it is not available.
ead7252003-11-13Martin Stjernholm  install-welcome
d274dc2003-12-15Martin Nilsson  GIF image used in the Pike GTK installer.
cf738c2013-11-15Henrik Grubbström (Grubba)  Makefile.in The Makefile template. Used by configure to generate a Makefile. make_banner.pike Make a banner image for the WIN32 installer. make_variables.in Template for propagating make variables in the subdirectories. Pike_ui.wxs User interface description for the Pike WIN32 installer.
ead7252003-11-13Martin Stjernholm  precompile.sh.in
d274dc2003-12-15Martin Nilsson  Template to create precompile.sh, a utility script that finds the most apropriate Pike binary and execute the script given in its argument with that binary.
b401c92004-10-22Martin Nilsson  precompile2.sh A script that works like the generated precompile.sh, but preconfigured to work with installed Pikes. Used by pike -x module.
ead7252003-11-13Martin Stjernholm  run_autoconfig
cf738c2013-11-15Henrik Grubbström (Grubba)  Script to recursively run autoconf and autoheader with the correct arguments to generate the configure scripts.
ead7252003-11-13Martin Stjernholm  smartlink.c
cf738c2013-11-15Henrik Grubbström (Grubba)  A wrapper for the C compiler and linker to achieve reasonably compiler-independent argument handling. stamp-h.in Time stamp file indicating when configure and machine.h.in were last regenerated.
ead7252003-11-13Martin Stjernholm  uncompressor.c
cf738c2013-11-15Henrik Grubbström (Grubba)  Strap for the old self-extracting Pike installer on WIN32. FIXME: Document these. libpike.symlist mklibpike.pike
ead7252003-11-13Martin Stjernholm  Testsuite test_co.pike Call out test. Used by testsuite.in. test_dynamic_loading.in Test dynamic_load.c. test_gc.pike GC destruct order test. Used by testsuite.in.
cf738c2013-11-15Henrik Grubbström (Grubba)  test_resolve.pike Test resolution of all modules. Used by testsuite.in.
ead7252003-11-13Martin Stjernholm  testsuite.in Testsuite for the core. Miscellaneous
8b3b712018-01-19Martin Nilsson  coverity_model.c Workaroound for issues in Coverity Prevent static code analysis.
ead7252003-11-13Martin Stjernholm  program_id.h Statically allocated program id numbers.
b401c92004-10-22Martin Nilsson  specs.in Template for the specs file, describing the build environment of the Pike. Used by pike -x module to build new binary modules with the same build options.
ead7252003-11-13Martin Stjernholm  UnicodeData-ReadMe.txt UnicodeData.txt The standard unicode database. Data from this is extracted to build tables for various functions, e.g. the Unicode module and
e0cfb32004-10-22Henrik Grubbström (Grubba)  case_info.h (lower_case/upper_case).
cf738c2013-11-15Henrik Grubbström (Grubba)  version.c version.h Version info.