1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
191
  
192
  
193
  
194
  
195
  
196
  
197
  
198
  
199
  
200
  
201
  
202
  
203
  
204
  
205
  
206
  
207
  
208
  
209
  
210
  
211
  
212
  
213
  
214
  
215
  
216
  
217
  
218
  
219
  
220
  
221
  
222
  
223
  
224
  
225
  
226
  
227
  
228
  
229
  
230
  
231
  
232
  
233
  
234
  
235
  
236
  
237
  
238
  
239
  
240
  
241
  
242
  
243
  
244
  
245
  
246
  
247
  
248
  
249
  
250
  
251
  
252
  
253
  
254
  
255
  
256
  
257
  
258
  
259
  
260
  
261
  
262
  
263
  
264
  
265
  
266
  
267
  
268
  
269
  
270
  
271
  
272
  
273
  
274
  
275
  
276
  
277
  
278
  
279
  
280
  
281
  
282
  
283
  
284
  
285
  
286
  
287
  
288
  
289
  
290
  
291
  
292
  
293
  
294
  
295
  
296
  
297
  
298
  
299
  
300
  
301
  
302
  
303
  
304
  
305
  
306
  
307
  
308
  
309
  
310
  
311
  
312
  
313
  
314
  
315
  
316
  
317
  
318
  
319
  
320
  
321
  
322
  
323
  
324
  
325
  
326
  
327
  
328
  
329
  
330
  
331
  
332
  
333
  
334
  
335
  
336
  
337
  
338
  
339
  
340
  
341
  
342
  
343
  
344
  
345
  
346
  
347
  
348
  
349
  
350
  
351
  
352
  
353
  
354
  
355
  
356
  
357
  
358
  
359
  
360
  
361
  
362
  
363
  
364
  
365
  
366
  
367
  
368
  
369
  
370
  
371
  
372
  
373
  
374
  
375
  
376
  
377
  
378
  
379
  
380
  
381
  
382
  
383
  
384
  
385
  
386
  
387
  
388
  
389
  
390
  
391
  
392
  
393
  
394
  
395
  
396
  
397
  
398
  
399
  
400
  
401
  
402
  
403
  
404
  
405
  
406
  
407
  
408
  
409
  
410
  
411
  
412
  
413
  
414
  
415
  
416
  
417
  
418
  
419
  
420
  
421
  
422
  
423
  
424
  
425
  
426
  
427
  
428
  
429
  
430
  
431
  
432
  
433
  
434
  
435
  
436
  
437
  
438
  
439
  
440
  
441
  
442
  
443
  
444
  
445
  
446
  
447
  
448
  
449
  
450
  
451
  
452
  
453
  
454
  
455
  
456
  
457
  
458
  
459
  
460
  
461
  
462
  
463
  
464
  
465
  
466
  
467
  
468
  
469
  
470
  
471
  
472
  
473
  
474
  
475
  
476
  
477
  
478
  
479
  
480
  
481
  
482
  
483
  
484
  
485
  
486
  
487
  
488
  
489
  
490
  
491
  
492
  
493
  
494
  
495
  
496
  
497
  
498
  
499
  
500
  
501
  
502
  
503
  
504
  
505
  
506
  
507
  
508
  
509
  
510
  
511
  
512
  
513
  
514
  
515
  
516
  
517
  
518
  
519
  
520
  
521
  
522
  
523
  
524
  
525
  
526
  
527
  
528
  
529
  
530
  
531
  
532
  
533
  
534
  
535
  
536
  
537
  
538
  
539
  
540
  
541
  
542
  
543
  
544
  
545
  
546
  
547
  
548
  
549
  
550
  
551
  
552
  
553
  
554
  
555
  
File overview 
------------- 
 
Informational 
 
  DISCLAIMER 
    It's not my fault. 
 
  MANIFEST 
    This file. 
 
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 
    NT emulation of POSIX-style I/O on fd's. 
 
  pike_cpulib.c 
  pike_cpulib.h 
    CPU specific code for implementing atomic locks. Used only when 
    running without the interpreter lock. 
 
  pike_float.c 
  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 
 
  bitvector.h 
    Low-level macros mainly used by the block allocator. 
 
  block_alloc.h 
  block_alloc_h.h 
  block_allocator.c 
  block_allocator.h 
    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. 
 
  buffer.c 
  buffer.h 
    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 
    Included initially in just about every file. Contains macros for 
    the chosen Pike integer and float types, and various other basic 
    macros. 
 
  malloc.c 
    Memory allocation functions. This overrides the libc implementation 
    of malloc, etc, when --enable-dlmalloc is active (default on WIN32). 
 
  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. 
 
  siphash24.h 
  siphash24.c 
    Fast, secure hash function used to prevent hash table DoS 
    collision attacks. 
 
  strip_opcodes 
    sh-script used to convert interpret_functions.h into 
    interpret_protos.h_src. 
 
  time_stuff.h 
    Some tools to handle timeval structs. 
 
Compiler 
 
  cpp.cmod 
  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) 
  language.c_src (autogenerated) 
  language.h (autogenerated) 
  language.h_src (autogenerated) 
  language.h_src.nolines (autogenerated) 
  language.yacc 
  y.output (autogenerated) 
    The yacc/bison language productions. These primarily build node 
    trees (i.e. abstract syntax trees) from the language constructs. 
 
  las.c 
  las.h 
    Node tree handling. Wrap together the tree optimizer. Also contains 
    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 
    Wrap together the lexer. 
 
  lexer.h 
    The actual lexer. Included by lex.c for different string widths. 
 
  opcode_list.h 
    List of stack machine opcodes. 
 
  opcodes.c 
  opcodes.h 
    Opcode lookup tables and primitives for them. The opcode enums 
    also double as token ids in many cases. 
 
  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. 
 
  pike_compiler.h 
    Definition of the compilator context. 
 
  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 
    scope handling. Also has tools to handle the pike stack, e.g. 
    pushing and popping of various data types. 
 
  interpret_functions.h 
    Implements all the opcodes. Included by interpret.c and 
    interpreter.h. 
 
  interpret_functions.h.compiled (autogenerated) 
  interpret_functions_fixed.h (autogenerated) 
  interpret_protos.h (autogenerated) 
  interpret_protos.h.nolines (autogenerated) 
  interpret_protos.h_src (autogenerated) 
  interpret_protos.h_src.nolines (autogenerated) 
    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. 
 
  OCPikeInterpreter.h 
  OCPikeInterpreter.m 
    Objective-C interface to the Pike interpreter. 
 
  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. 
 
  iterators.c (autogenerated) 
  iterators.cmod 
  iterators.cmod.compiled (autogenerated) 
    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). 
 
  pike_modules.c 
  pike_modules.h 
    Maintain the entry and exit hooks for the statically compiled 
    modules. 
 
  module.h 
    Include file for most of what a Pike module needs. 
 
  module_support.c 
  module_support.h 
    Tools for importing and exporting symbols between modules. Also 
    contain helpers for checking arguments on the pike stack. 
 
  modules/ 
    Standard modules that don't need the recently built pike in order 
    to be built. 
 
  post_modules/ 
    Standard modules that are built after the pike binary. These need 
    the recently built pike in order to be built. 
 
  tmodule.c 
    module.c replacement when building the temporary tpike binary 
    (only used when only static modules are supported). 
 
Core runtime support 
 
  backend.c (autogenerated) 
  backend.cmod 
  backend.cmod.compiled (autogenerated) 
  backend.h 
    Implement Pike.Backend, i.e. callback driven I/O and call outs. 
 
  builtin.c (autogenerated) 
  builtin.cmod 
  builtin.cmod.compiled (autogenerated) 
  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. 
    Generated from UnicodeData.txt. 
 
  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. 
 
  dtrace/ 
    DTrace probe definitions. 
 
  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 
    The entry point. Contains parsing of low-level command arguments 
    (i.e. those not handled in the master), initialization and 
    cleanup. 
 
  operators.c 
  operators.h 
    Implement the runtime behavior for the operators. 
 
  pike_embed.c 
  pike_embed.h 
    The entry points suitable for use when embedding Pike in 
    another binary. 
 
  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. 
 
  sprintf.h 
  sprintf.c 
    Implement the sprintf function. 
 
  sscanf.c 
  sscanf.h 
    Implement the sscanf special function. 
 
  stack_allocator.c 
  stack_allocator.h 
    Stack-based memory handling for sprintf. 
 
  string_builder.h 
  string_builder.c 
    Dynamically build strings. 
 
  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. 
 
  whitespace.h (autogenerated) 
    Unicode whitespace characters used in builtin.cmod. 
    Generated from UnicodeData.txt. 
 
Build system 
 
  acconfig.h 
  aclocal.m4 
  configure.in 
    The configure template. Used by run_autoconfig to generate 
    configure.   
 
  configure (autogenerated) 
  machine.h.in (autogenerated) 
    Configuration script and template file. Generated by run_autoconfig. 
 
  dependencies (autogenerated) 
    Inter-file dependencies. 
 
  dumpmaster.pike 
    Codec made especially for dumping the Pike master. 
 
  export_list 
    A list of the files and directories that should be included in a 
    source dist. Used by bin/export.pike. 
 
  install-sh 
    sh-script substitute for install(1) where it is not available. 
 
  install-welcome 
    GIF image used in the Pike GTK installer. 
 
  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. 
 
  precompile.sh.in 
    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. 
 
  precompile2.sh 
    A script that works like the generated precompile.sh, but 
    preconfigured to work with installed Pikes. Used by pike -x module. 
 
  run_autoconfig 
    Script to recursively run autoconf and autoheader with the correct 
    arguments to generate the configure scripts. 
 
  smartlink.c 
    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. 
 
  uncompressor.c 
    Strap for the old self-extracting Pike installer on WIN32. 
 
FIXME: Document these. 
 
  libpike.symlist 
  mklibpike.pike 
 
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. 
 
  test_resolve.pike 
    Test resolution of all modules. Used by testsuite.in. 
 
  testsuite.in 
    Testsuite for the core. 
 
Miscellaneous 
 
  coverity_model.c 
    Workaroound for issues in Coverity Prevent static code analysis. 
 
  program_id.h 
    Statically allocated program id numbers. 
 
  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. 
 
  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 
    case_info.h (lower_case/upper_case). 
 
  version.c 
  version.h 
    Version info.