Netzhaut
Web Browser Engine
ver.0.3.0.0
rev.0.15.61.18
nhmake

Runtime for parsing and executing build scripts used by Netzhaut. More...

Data Structures

struct  nh_make_Function
 
struct  nh_make_SourceContext
 
struct  nh_make_SourceContextArray
 
struct  nh_make_ValueArray
 
struct  nh_make_TestArgument
 

Typedefs

typedef struct nh_make_Runtime nh_make_Runtime
 
typedef struct nh_make_CommitNode nh_make_CommitNode
 
typedef NH_MAKE_RESULT(* nh_make_functionCallback_f) (nh_make_Runtime *Runtime_p, nh_make_Function *Function_p)
 
typedef NH_MAKE_RESULT(* nh_make_sourceContextCallback_f) (nh_make_Runtime *Runtime_p, nh_make_SourceContext *Context_p)
 

Enumerations

enum  NH_MAKE_RESULT {
  NH_MAKE_SUCCESS , NH_MAKE_ERROR_INVALID_OPTION , NH_MAKE_ERROR_NULL_POINTER , NH_MAKE_ERROR_BAD_STATE ,
  NH_MAKE_ERROR_GENERATE_DOCUMENTS_FAILURE , NH_MAKE_ERROR_DOWNLOAD_FAILED , NH_MAKE_ERROR_BUILD_EXTERNAL_FAILED , NH_MAKE_ERROR_COPY_EXTERNAL_HEADER_FAILED ,
  NH_MAKE_ERROR_COPY_PUBLIC_LIBRARY_HEADER_FAILED , NH_MAKE_ERROR_CREATE_LIBRARY_INCLUDES_FAILED , NH_MAKE_ERROR_BUILD_LIBRARY_FAILED , NH_MAKE_ERROR_WGET_EXECUTION_FAILED ,
  NH_MAKE_ERROR_UNZIP_EXECUTION_FAILED , NH_MAKE_ERROR_DOXYGEN_EXECUTION_FAILED , NH_MAKE_ERROR_GCC_EXECUTION_FAILED , NH_MAKE_ERROR_AR_EXECUTION_FAILED ,
  NH_MAKE_ERROR_XXD_EXECUTION_FAILED , NH_MAKE_ERROR_CP_EXECUTION_FAILED , NH_MAKE_ERROR_LIBRARY_NOT_FOUND , NH_MAKE_ERROR_WGET_NOT_FOUND ,
  NH_MAKE_ERROR_UNZIP_NOT_FOUND , NH_MAKE_ERROR_DOXYGEN_NOT_FOUND , NH_MAKE_ERROR_GCC_NOT_FOUND , NH_MAKE_ERROR_AR_NOT_FOUND ,
  NH_MAKE_ERROR_CP_NOT_FOUND , NH_MAKE_ERROR_GENERATE_VERSION_DEPENDENT_DOCS , NH_MAKE_ERROR_GENERATE_DOCS_USING_DOXYGEN , NH_MAKE_ERROR_GET_PROJECT_DIRECTORY ,
  NH_MAKE_ERROR_GET_WORK_DIRECTORY , NH_MAKE_ERROR_CANT_OPEN_README , NH_MAKE_ERROR_CANT_OPEN_HEADER , NH_MAKE_ERROR_CANT_OPEN_DIR ,
  NH_MAKE_ERROR_CANT_DOWNLOAD_VULKAN_HEADERS , NH_MAKE_ERROR_CANT_DOWNLOAD_VOLK , NH_MAKE_ERROR_CANT_DOWNLOAD_FREETYPE , NH_MAKE_ERROR_CANT_DOWNLOAD_OPENSSL ,
  NH_MAKE_ERROR_CANT_DOWNLOAD_PROJECT , NH_MAKE_ERROR_BUILD_XXD_FAILED , NH_MAKE_ERROR_BUILD_HELPER_LIBRARY_FAILED , NH_MAKE_ERROR_NOT_IMPLEMENTED ,
  NH_MAKE_ERROR_CANT_CREATE_DIRECTORY , NH_MAKE_ERROR_CANT_CREATE_OBJECT_FILE , NH_MAKE_ERROR_CANT_CREATE_OBJECTS , NH_MAKE_ERROR_CANT_CREATE_LIBRARY ,
  NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_BIN_DIRECTORY , NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_BIN_OBJECT_DIRECTORY , NH_MAKE_ERROR_CANT_CREATE_BIN_OBJECT_DIRECTORY , NH_MAKE_ERROR_CANT_CREATE_BIN_DIRECTORY ,
  NH_MAKE_ERROR_CANT_CREATE_SHARED_LIB , NH_MAKE_ERROR_CANT_CREATE_STATIC_LIB , NH_MAKE_ERROR_CANT_CREATE_INCLUDE_FILE , NH_MAKE_ERROR_CANT_CREATE_INCLUDE_DIRECTORY ,
  NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_DIRECTORY , NH_MAKE_ERROR_COPY_EXTERNAL_HEADER_USING_CP_FAILED , NH_MAKE_ERROR_COPY_PUBLIC_LIBRARY_HEADER_USING_CP_FAILED , NH_MAKE_ERROR_COPY_FAILED ,
  NH_MAKE_ERROR_CANT_CREATE_NETZHAUT_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_IO_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_GRAPHICS_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_CSS_OBJECT_FILES ,
  NH_MAKE_ERROR_CANT_CREATE_HTML_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_JAVASCRIPT_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_TTY_OBJECT_FILES , NH_MAKE_ERROR_CANT_CREATE_NETWORK_OBJECT_FILES ,
  NH_MAKE_ERROR_CANT_CREATE_API_OBJECT_FILES , NH_MAKE_ERROR_THREAD_CREATION_FAILED , NH_MAKE_ERROR_INSTALL_ALL_LIBRARY_FAILED , NH_MAKE_ERROR_INSTALL_ALL_EXTERNAL_LIBRARY_FAILED ,
  NH_MAKE_ERROR_INSTALL_ALL_WEB_BROWSER_FAILED , NH_MAKE_ERROR_INSTALL_ALL_LOGO_FAILED , NH_MAKE_ERROR_BUILD_WEB_BROWSER_FAILED
}
 
enum  NH_MAKE_BOOL { NH_MAKE_FALSE = 0 , NH_MAKE_TRUE = 1 }
 
enum  NH_MAKE_TOKEN {
  NH_MAKE_TOKEN_UNDEFINED , NH_MAKE_TOKEN_COMMA , NH_MAKE_TOKEN_IDENTIFIER , NH_MAKE_TOKEN_STRING ,
  NH_MAKE_TOKEN_CURLY_BRACKET_RIGHT , NH_MAKE_TOKEN_CURLY_BRACKET_LEFT , NH_MAKE_TOKEN_ROUND_BRACKET_RIGHT , NH_MAKE_TOKEN_ROUND_BRACKET_LEFT ,
  NH_MAKE_TOKEN_ANGLE_BRACKET_RIGHT , NH_MAKE_TOKEN_ANGLE_BRACKET_LEFT , NH_MAKE_TOKEN_HYPHEN_MINUS , NH_MAKE_TOKEN_COLON ,
  NH_MAKE_TOKEN_EOF
}
 
enum  NH_MAKE_DEFINITION {
  NH_MAKE_DEFINITION_UNDEFINED , NH_MAKE_DEFINITION_OPTION , NH_MAKE_DEFINITION_FUNCTION , NH_MAKE_DEFINITION_BLOCK ,
  NH_MAKE_DEFINITION_IF
}
 
enum  NH_MAKE_SOURCE_CONTEXT { NH_MAKE_SOURCE_CONTEXT_UNDEFINED , NH_MAKE_SOURCE_CONTEXT_SHARED_LIBRARY , NH_MAKE_SOURCE_CONTEXT_STATIC_LIBRARY , NH_MAKE_SOURCE_CONTEXT_BINARY }
 

Functions

NH_MAKE_RESULT nh_make_initialize ()
 
void nh_make_terminate ()
 
nh_make_Runtimenh_make_createRuntime (NH_BYTE *name_p)
 
void nh_make_destroyRuntime (nh_make_Runtime *Runtime_p)
 
NH_MAKE_RESULT nh_make_run (nh_make_Runtime *Runtime_p, int argc, NH_BYTE **argv_pp)
 
NH_MAKE_RESULT nh_make_addFile (nh_make_Runtime *Runtime_p, NH_BYTE *path_p)
 
void nh_make_setFunctionCallback (nh_make_Runtime *Runtime_p, nh_make_functionCallback_f functionCallback_f)
 
void nh_make_setSourceContextCallback (nh_make_Runtime *Runtime_p, nh_make_sourceContextCallback_f sourceContextCallback_f)
 
void nh_make_setBeforeBuildCallback (nh_make_Runtime *Runtime_p, nh_make_sourceContextCallback_f sourceContextCallback_f)
 
void nh_make_setAfterBuildCallback (nh_make_Runtime *Runtime_p, nh_make_sourceContextCallback_f sourceContextCallback_f)
 
nh_make_SourceContextArraynh_make_getSourceContextArray (nh_make_Runtime *Runtime_p)
 
nh_make_SourceContextnh_make_getSourceContext (nh_make_Runtime *Runtime_p, NH_BYTE *name_p, NH_MAKE_SOURCE_CONTEXT type)
 
void nh_make_setQuiet (nh_make_Runtime *Runtime_p, NH_MAKE_BOOL quiet)
 
void nh_make_setShowParseTree (nh_make_Runtime *Runtime_p, NH_MAKE_BOOL showParseTree)
 
NH_MAKE_RESULT nh_make_setVariable (nh_make_Runtime *Runtime_p, NH_BYTE *variables_p, NH_BYTE **values_pp, int valueCount)
 
nh_make_ValueArray nh_make_getVariableValues (nh_make_Runtime *Runtime_p, NH_BYTE *variable_p)
 
int nh_make_isRunning ()
 
NH_MAKE_RESULT nh_make_sleepMs (int milliseconds)
 
NH_BYTEnh_make_getProcessDirectory ()
 
NH_BYTEnh_make_getWorkDirectory ()
 
NH_BYTEnh_make_getFileData (const NH_BYTE *path_p, long *size_p)
 
NH_MAKE_RESULT nh_make_writeBytesToFile (NH_BYTE *filename_p, NH_BYTE *bytes_p)
 
NH_MAKE_RESULT nh_make_messagef (NH_BYTE *format_p,...)
 

Detailed Description

Runtime for parsing and executing build scripts used by Netzhaut.

This module implements a big part of the Netzhaut build-system.

Typedef Documentation

◆ nh_make_CommitNode

◆ nh_make_functionCallback_f

typedef NH_MAKE_RESULT(* nh_make_functionCallback_f) (nh_make_Runtime *Runtime_p, nh_make_Function *Function_p)

◆ nh_make_Runtime

◆ nh_make_sourceContextCallback_f

typedef NH_MAKE_RESULT(* nh_make_sourceContextCallback_f) (nh_make_Runtime *Runtime_p, nh_make_SourceContext *Context_p)

Enumeration Type Documentation

◆ NH_MAKE_BOOL

Boolean values.

Enumerator
NH_MAKE_FALSE 

Indicates false.

NH_MAKE_TRUE 

Indicates true.

◆ NH_MAKE_DEFINITION

Enumerator
NH_MAKE_DEFINITION_UNDEFINED 
NH_MAKE_DEFINITION_OPTION 
NH_MAKE_DEFINITION_FUNCTION 
NH_MAKE_DEFINITION_BLOCK 
NH_MAKE_DEFINITION_IF 

◆ NH_MAKE_RESULT

Return values for functions.

Enumerator
NH_MAKE_SUCCESS 
NH_MAKE_ERROR_INVALID_OPTION 
NH_MAKE_ERROR_NULL_POINTER 
NH_MAKE_ERROR_BAD_STATE 
NH_MAKE_ERROR_GENERATE_DOCUMENTS_FAILURE 
NH_MAKE_ERROR_DOWNLOAD_FAILED 
NH_MAKE_ERROR_BUILD_EXTERNAL_FAILED 
NH_MAKE_ERROR_COPY_EXTERNAL_HEADER_FAILED 
NH_MAKE_ERROR_COPY_PUBLIC_LIBRARY_HEADER_FAILED 
NH_MAKE_ERROR_CREATE_LIBRARY_INCLUDES_FAILED 
NH_MAKE_ERROR_BUILD_LIBRARY_FAILED 
NH_MAKE_ERROR_WGET_EXECUTION_FAILED 
NH_MAKE_ERROR_UNZIP_EXECUTION_FAILED 
NH_MAKE_ERROR_DOXYGEN_EXECUTION_FAILED 
NH_MAKE_ERROR_GCC_EXECUTION_FAILED 
NH_MAKE_ERROR_AR_EXECUTION_FAILED 
NH_MAKE_ERROR_XXD_EXECUTION_FAILED 
NH_MAKE_ERROR_CP_EXECUTION_FAILED 
NH_MAKE_ERROR_LIBRARY_NOT_FOUND 
NH_MAKE_ERROR_WGET_NOT_FOUND 
NH_MAKE_ERROR_UNZIP_NOT_FOUND 
NH_MAKE_ERROR_DOXYGEN_NOT_FOUND 
NH_MAKE_ERROR_GCC_NOT_FOUND 
NH_MAKE_ERROR_AR_NOT_FOUND 
NH_MAKE_ERROR_CP_NOT_FOUND 
NH_MAKE_ERROR_GENERATE_VERSION_DEPENDENT_DOCS 
NH_MAKE_ERROR_GENERATE_DOCS_USING_DOXYGEN 
NH_MAKE_ERROR_GET_PROJECT_DIRECTORY 
NH_MAKE_ERROR_GET_WORK_DIRECTORY 
NH_MAKE_ERROR_CANT_OPEN_README 
NH_MAKE_ERROR_CANT_OPEN_HEADER 
NH_MAKE_ERROR_CANT_OPEN_DIR 
NH_MAKE_ERROR_CANT_DOWNLOAD_VULKAN_HEADERS 
NH_MAKE_ERROR_CANT_DOWNLOAD_VOLK 
NH_MAKE_ERROR_CANT_DOWNLOAD_FREETYPE 
NH_MAKE_ERROR_CANT_DOWNLOAD_OPENSSL 
NH_MAKE_ERROR_CANT_DOWNLOAD_PROJECT 
NH_MAKE_ERROR_BUILD_XXD_FAILED 
NH_MAKE_ERROR_BUILD_HELPER_LIBRARY_FAILED 
NH_MAKE_ERROR_NOT_IMPLEMENTED 
NH_MAKE_ERROR_CANT_CREATE_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_OBJECT_FILE 
NH_MAKE_ERROR_CANT_CREATE_OBJECTS 
NH_MAKE_ERROR_CANT_CREATE_LIBRARY 
NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_BIN_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_BIN_OBJECT_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_BIN_OBJECT_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_BIN_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_SHARED_LIB 
NH_MAKE_ERROR_CANT_CREATE_STATIC_LIB 
NH_MAKE_ERROR_CANT_CREATE_INCLUDE_FILE 
NH_MAKE_ERROR_CANT_CREATE_INCLUDE_DIRECTORY 
NH_MAKE_ERROR_CANT_CREATE_EXTERNAL_DIRECTORY 
NH_MAKE_ERROR_COPY_EXTERNAL_HEADER_USING_CP_FAILED 
NH_MAKE_ERROR_COPY_PUBLIC_LIBRARY_HEADER_USING_CP_FAILED 
NH_MAKE_ERROR_COPY_FAILED 
NH_MAKE_ERROR_CANT_CREATE_NETZHAUT_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_IO_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_GRAPHICS_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_CSS_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_HTML_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_JAVASCRIPT_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_TTY_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_NETWORK_OBJECT_FILES 
NH_MAKE_ERROR_CANT_CREATE_API_OBJECT_FILES 
NH_MAKE_ERROR_THREAD_CREATION_FAILED 
NH_MAKE_ERROR_INSTALL_ALL_LIBRARY_FAILED 
NH_MAKE_ERROR_INSTALL_ALL_EXTERNAL_LIBRARY_FAILED 
NH_MAKE_ERROR_INSTALL_ALL_WEB_BROWSER_FAILED 
NH_MAKE_ERROR_INSTALL_ALL_LOGO_FAILED 
NH_MAKE_ERROR_BUILD_WEB_BROWSER_FAILED 

◆ NH_MAKE_SOURCE_CONTEXT

Enumerator
NH_MAKE_SOURCE_CONTEXT_UNDEFINED 
NH_MAKE_SOURCE_CONTEXT_SHARED_LIBRARY 
NH_MAKE_SOURCE_CONTEXT_STATIC_LIBRARY 
NH_MAKE_SOURCE_CONTEXT_BINARY 

◆ NH_MAKE_TOKEN

Enumerator
NH_MAKE_TOKEN_UNDEFINED 
NH_MAKE_TOKEN_COMMA 
NH_MAKE_TOKEN_IDENTIFIER 
NH_MAKE_TOKEN_STRING 
NH_MAKE_TOKEN_CURLY_BRACKET_RIGHT 
NH_MAKE_TOKEN_CURLY_BRACKET_LEFT 
NH_MAKE_TOKEN_ROUND_BRACKET_RIGHT 
NH_MAKE_TOKEN_ROUND_BRACKET_LEFT 
NH_MAKE_TOKEN_ANGLE_BRACKET_RIGHT 
NH_MAKE_TOKEN_ANGLE_BRACKET_LEFT 
NH_MAKE_TOKEN_HYPHEN_MINUS 
NH_MAKE_TOKEN_COLON 
NH_MAKE_TOKEN_EOF 

Function Documentation

◆ nh_make_addFile()

NH_MAKE_RESULT nh_make_addFile ( nh_make_Runtime Runtime_p,
NH_BYTE path_p 
)

Todo.

◆ nh_make_createRuntime()

nh_make_Runtime * nh_make_createRuntime ( NH_BYTE name_p)

Todo.

◆ nh_make_destroyRuntime()

void nh_make_destroyRuntime ( nh_make_Runtime Runtime_p)

Todo.

◆ nh_make_getFileData()

NH_BYTE * nh_make_getFileData ( const NH_BYTE path_p,
long *  size_p 
)

Todo.

◆ nh_make_getProcessDirectory()

NH_BYTE * nh_make_getProcessDirectory ( )

Todo.

◆ nh_make_getSourceContext()

nh_make_SourceContext * nh_make_getSourceContext ( nh_make_Runtime Runtime_p,
NH_BYTE name_p,
NH_MAKE_SOURCE_CONTEXT  type 
)

Todo.

◆ nh_make_getSourceContextArray()

nh_make_SourceContextArray * nh_make_getSourceContextArray ( nh_make_Runtime Runtime_p)

Todo.

◆ nh_make_getVariableValues()

nh_make_ValueArray nh_make_getVariableValues ( nh_make_Runtime Runtime_p,
NH_BYTE variable_p 
)

Todo.

◆ nh_make_getWorkDirectory()

NH_BYTE * nh_make_getWorkDirectory ( )

Todo.

◆ nh_make_initialize()

NH_MAKE_RESULT nh_make_initialize ( )

Todo.

◆ nh_make_isRunning()

int nh_make_isRunning ( )

Todo.

◆ nh_make_messagef()

NH_MAKE_RESULT nh_make_messagef ( NH_BYTE format_p,
  ... 
)

Todo.

◆ nh_make_run()

NH_MAKE_RESULT nh_make_run ( nh_make_Runtime Runtime_p,
int  argc,
NH_BYTE **  argv_pp 
)

Todo.

◆ nh_make_setAfterBuildCallback()

void nh_make_setAfterBuildCallback ( nh_make_Runtime Runtime_p,
nh_make_sourceContextCallback_f  sourceContextCallback_f 
)

Todo.

◆ nh_make_setBeforeBuildCallback()

void nh_make_setBeforeBuildCallback ( nh_make_Runtime Runtime_p,
nh_make_sourceContextCallback_f  sourceContextCallback_f 
)

Todo.

◆ nh_make_setFunctionCallback()

void nh_make_setFunctionCallback ( nh_make_Runtime Runtime_p,
nh_make_functionCallback_f  functionCallback_f 
)

Todo.

◆ nh_make_setQuiet()

void nh_make_setQuiet ( nh_make_Runtime Runtime_p,
NH_MAKE_BOOL  quiet 
)

TODO switch to variable based setting.

◆ nh_make_setShowParseTree()

void nh_make_setShowParseTree ( nh_make_Runtime Runtime_p,
NH_MAKE_BOOL  showParseTree 
)

Todo.

◆ nh_make_setSourceContextCallback()

void nh_make_setSourceContextCallback ( nh_make_Runtime Runtime_p,
nh_make_sourceContextCallback_f  sourceContextCallback_f 
)

Todo.

◆ nh_make_setVariable()

NH_MAKE_RESULT nh_make_setVariable ( nh_make_Runtime Runtime_p,
NH_BYTE variables_p,
NH_BYTE **  values_pp,
int  valueCount 
)

Todo.

◆ nh_make_sleepMs()

NH_MAKE_RESULT nh_make_sleepMs ( int  milliseconds)

Todo.

◆ nh_make_terminate()

void nh_make_terminate ( )

Todo.

◆ nh_make_writeBytesToFile()

NH_MAKE_RESULT nh_make_writeBytesToFile ( NH_BYTE filename_p,
NH_BYTE bytes_p 
)

Todo.