Next:
Contents
 
Contents
Tutorials on Writing C Modules in Pike
Andreas Finnman
Contents
The C API
Overview of This Tutorial
The Absolute Minimum
set_init_callback()
set_exit_callback()
start_new_program()
end_class()
ADD_STORAGE()
Pike_fp-current_storage
ADD_FUNCTION()
tFunc
The Stack
Pike_sp
svalue
Interacting with the Stack
args
Pop Functions
Push Functions
Pike_error()
The CMOD API
Overview of This Tutorial
INIT - keyword
EXIT - keyword
PIKECLASS - keyword
PIKEFUN - keyword
CVAR - keyword
THIS - keyword
RETURN - keyword
Writing a C Module
Overview of This Tutorial
The Files of a Module
Getting Started
Pike Level and C Level
Define the Pike Level Interface
Without CMOD
With CMOD
Write the Functions
Without CMOD
With CMOD
Error Handling
Argument Checking without CMOD
Argument Checking with CMOD
Throwing Exceptions
Init and Exit Routines
An Example - The Rev Module
Define the Pike Level Interface
Without CMOD
With CMOD
Write the Functions
Without CMOD
With CMOD
About this document ...
2003-03-04