makl_code Namespace Reference

Module "makl_code". More...


Functions

 makl_compile ()
 Compile a C file.
 makl_write_c ()
 Write to a C file.
 makl_compile_code ()
 Compile C code.
 makl_exec_code ()
 Execute C code.
 makl_checkfunc ()
 Check existence of a function.
 makl_checkheader ()
 Check existence of a header.
 makl_checktype ()
 Check existence of a type.
 makl_checkextern ()
 Check existence of an extern variable.
 makl_checksymbol ()
 Check existence of a symbol.
 makl_checkstructelem ()
 Check existence of an element in a struct.


Function Documentation

makl_code::makl_checkextern (  ) 

Define HAVE_$1 if the extern variable $2 is found. $1 determines whether the feature is optional or required.

Parameters:
$1 0:optional,1:required
$2 extern variables
$* optional compilation flags

Definition at line 244 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_checkfunc (  ) 

Define HAVE_$1 if function $1 is found. $1 determines whether the feature is optional or required.

Parameters:
$1 0:optional/1:required
$2 function name
$3 flags to be passed to the compiler

Definition at line 134 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_checkheader (  ) 

Define HAVE_$2 if header $3 is found. $1 determines whether the feature is optional or required.

Parameters:
$1 0:optional,1:required
$2 id of header
$3 header file

Definition at line 163 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_checkstructelem (  ) 

Define HAVE_$2_$3 if the element $3 exists in the struct $2 $1 determines whether the feature is optional or required.

The symbol may be an external variable, function or a define.

Parameters:
$1 0:optional,1:required
$2 type
$3 elem
$* header files

Definition at line 343 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_checksymbol (  ) 

Define HAVE_$2 if the symbol $2 is found. $1 determines whether the feature is optional or required.

The symbol may be an external variable, function or a define.

Parameters:
$1 0:optional,1:required
$2 symbol
$* header files

Definition at line 289 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_checktype (  ) 

Define HAVE_$1 if type $2 is found. $1 determines whether the feature is optional or required. Extra includes can be listed in $*.

Parameters:
$1 0:optional,1:required
$2 data type
$* includes

Definition at line 196 of file makl_code.dokl.

References makl_compile_code().

makl_code::makl_compile (  ) 

Compile a C file $1 with the supplied flags $2.

Parameters:
$1 Pathname of the C file to be compiled
$2 flags to be passed to the compiler
Returns:
0 on success, 1 on failure

Definition at line 15 of file makl_code.dokl.

Referenced by makl_compile_code(), and makl_exec_code().

makl_code::makl_compile_code (  ) 

Compile C code.

Parameters:
$1 whether the code is a snippet (1) or entire C file (0)
$2 flags to be passed to the compiler

Definition at line 82 of file makl_code.dokl.

References makl_compile(), and makl_write_c().

Referenced by makl_checkextern(), makl_checkfunc(), makl_checkheader(), makl_checkstructelem(), makl_checksymbol(), and makl_checktype().

makl_code::makl_exec_code (  ) 

Execute C code.

Parameters:
$1 whether the code is a snippet (1) or entire C file (0)
$2 flags to be passed to the compiler

Definition at line 102 of file makl_code.dokl.

References makl_compile(), and makl_write_c().

makl_code::makl_write_c (  ) 

Write to a C file. Data is read from standard input.

Parameters:
$1 name of file to be written
$2 whether the code is a snippet (1) or entire C file (0)

Definition at line 51 of file makl_code.dokl.

Referenced by makl_compile_code(), and makl_exec_code().


←Products
© 2005-2008 - KoanLogic S.r.l. - All rights reserved