facilitate peek processing when using system locale.
This commit is contained in:
parent
ef06ebe698
commit
b7ee47ce46
1611
Eclipse/CMakeCache.txt
Normal file
1611
Eclipse/CMakeCache.txt
Normal file
File diff suppressed because one or more lines are too long
3229
Eclipse/build.ninja
Normal file
3229
Eclipse/build.ninja
Normal file
File diff suppressed because one or more lines are too long
31
Eclipse/library/system/sys_config.h
Normal file
31
Eclipse/library/system/sys_config.h
Normal file
@ -0,0 +1,31 @@
|
||||
/* Define to 1 if you have the <openssl/ripemd.h> header file. */
|
||||
#ifndef HAVE_APACHE2_UTIL_MD5_H
|
||||
/* #undef HAVE_APACHE2_UTIL_MD5_H */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <openssl/ripemd.h> header file. */
|
||||
#ifndef HAVE_APR_1_APR_MD5_H
|
||||
#define HAVE_APR_1_APR_MD5_H 1
|
||||
#endif
|
||||
|
||||
|
||||
/* Define to 1 if you have the <openssl/md5.h> header file. */
|
||||
#ifndef HAVE_OPENSSL_MD5_H
|
||||
/* #undef HAVE_OPENSSL_MD5_H */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <openssl/ripemd.h> header file. */
|
||||
#ifndef HAVE_OPENSSL_RIPEMD_H
|
||||
/* #undef HAVE_OPENSSL_RIPEMD_H */
|
||||
#endif
|
||||
|
||||
/* "Define if you have the crypt function." */
|
||||
#ifndef HAVE_CRYPT
|
||||
/* #undef HAVE_CRYPT */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <crypt.h> header file. */
|
||||
#ifndef HAVE_CRYPT_H
|
||||
/* #undef HAVE_CRYPT_H */
|
||||
#endif
|
||||
|
112
Eclipse/os/YapIOConfig.h
Normal file
112
Eclipse/os/YapIOConfig.h
Normal file
@ -0,0 +1,112 @@
|
||||
/* Define if you have libreadline */
|
||||
#ifndef HAVE_LIBREADLINE
|
||||
#define HAVE_LIBREADLINE 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <readline/history.h> header file. */
|
||||
#ifndef HAVE_READLINE_HISTORY_H
|
||||
#define HAVE_READLINE_HISTORY_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <readline/readline.h> header file. */
|
||||
#ifndef HAVE_READLINE_READLINE_H
|
||||
#define HAVE_READLINE_READLINE_H 1
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBREADLINE) && defined(HAVE_READLINE_READLINE_H)
|
||||
#define USE_READLINE 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the declaration of `rl_catch_signals ', and to 0 if
|
||||
you don't. */
|
||||
#ifndef HAVE_DECL_RL_CATCH_SIGNALS_
|
||||
/* #undef HAVE_DECL_RL_CATCH_SIGNALS */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the declaration of `rl_done ', and to 0 if you
|
||||
don't. */
|
||||
#ifndef HAVE_DECL_RL_DONE_
|
||||
/* #undef HAVE_DECL_RL_DONE_ */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the declaration of `rl_event_hook', and to 0 if you
|
||||
don't. */
|
||||
#ifndef HAVE_DECL_RL_EVENT_HOOK
|
||||
/* #undef HAVE_DECL_RL_EVENT_HOOK */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the declaration of `rl_readline_state', and to 0 if
|
||||
you don't. */
|
||||
#ifndef HAVE_DECL_RL_READLINE_STATE
|
||||
/* #undef HAVE_DECL_RL_READLINE_STATE */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_begin_undo_group' function. */
|
||||
#ifndef HAVE_RL_BEGIN_UNDO_GROUP
|
||||
#define HAVE_RL_BEGIN_UNDO_GROUP 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_clear_pending_input' function. */
|
||||
#ifndef HAVE_RL_CLEAR_PENDING_INPUT
|
||||
#define HAVE_RL_CLEAR_PENDING_INPUT 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if the system has the type `rl_completion_func_t'). */
|
||||
#ifndef HAVE_RL_COMPLETION_FUNC_T
|
||||
/* #undef HAVE_RL_COMPLETION_FUNC_T */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if the system has the type `rl_completion_func_t'. */
|
||||
#ifndef HAVE_RL_COMPLETION_FUNC_T
|
||||
/* #undef HAVE_RL_COMPLETION_FUNC_T */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_completion_matches' function. */
|
||||
#ifndef HAVE_RL_COMPLETION_MATCHES
|
||||
/* #undef HAVE_RL_COMPLETION_MATCHES */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_discard_argument' function. */
|
||||
#ifndef HAVE_RL_DISCARD_ARGUMENT
|
||||
#define HAVE_RL_DISCARD_ARGUMENT 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_done' variable. */
|
||||
#ifndef HAVE_RL_DONE
|
||||
#define HAVE_RL_DONE
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_filename_completion_function' function. */
|
||||
#ifndef HAVE_RL_FILENAME_COMPLETION_FUNCTION
|
||||
#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_free_line_state' function. */
|
||||
#ifndef HAVE_RL_FREE_LINE_STATE
|
||||
#define HAVE_RL_FREE_LINE_STATE 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if the system has the type `rl_hook_func_t'. */
|
||||
#ifndef HAVE_RL_HOOK_FUNC_T
|
||||
/* #undef HAVE_RL_HOOK_FUNC_T */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_insert_close' function. */
|
||||
#ifndef HAVE_RL_INSERT_CLOSE
|
||||
#define HAVE_RL_INSERT_CLOSE 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_reset_after_signal' function. */
|
||||
#ifndef HAVE_RL_RESET_AFTER_SIGNAL
|
||||
#define HAVE_RL_RESET_AFTER_SIGNAL 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_set_keyboard_input_timeout' function. */
|
||||
#ifndef HAVE_RL_SET_KEYBOARD_INPUT_TIMEOUT
|
||||
#define HAVE_RL_SET_KEYBOARD_INPUT_TIMEOUT 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `rl_set_prompt' function. */
|
||||
#ifndef HAVE_RL_SET_PROMPT
|
||||
#define HAVE_RL_SET_PROMPT 1
|
||||
#endif
|
32
Eclipse/packages/bdd/cudd_config.h
Normal file
32
Eclipse/packages/bdd/cudd_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
// cmake template file
|
||||
|
||||
/* Define to 1 if you have the <cuddInt.h> header file. */
|
||||
#ifndef HAVE_CUDDINT_H
|
||||
/* #undef HAVE_CUDDINT_H */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <cudd/cuddInt.h> header file. */
|
||||
#ifndef HAVE_CUDD_CUDDINT_H
|
||||
#define HAVE_CUDD_CUDDINT_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <cudd/cudd.h> header file. */
|
||||
#ifndef HAVE_CUDD_CUDD_H
|
||||
#define HAVE_CUDD_CUDD_H 1
|
||||
#endif
|
||||
|
||||
/*Define to 1 if you have the <cudd.h> header file. */
|
||||
#ifndef HAVE_CUDD_H
|
||||
/* #undef HAVE_CUDD_H */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <cudd/util.h> header file. */
|
||||
#ifndef HAVE_CUDD_UTIL_H
|
||||
#define HAVE_CUDD_UTIL_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <util.h> header file. */
|
||||
#ifndef HAVE_UTIL_H
|
||||
#define HAVE_UTIL_H 1
|
||||
#endif
|
||||
|
2
Eclipse/packages/raptor/raptor_config.h
Normal file
2
Eclipse/packages/raptor/raptor_config.h
Normal file
@ -0,0 +1,2 @@
|
||||
#define HAVE_RAPTOR2_RAPTOR2_H 1
|
||||
/* #undef HAVE_RAPTOR_H */
|
26
Eclipse/packages/real/rconfig.h
Normal file
26
Eclipse/packages/real/rconfig.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*--------------------------------------------------------------------------
|
||||
* This file is autogenerated from rconfig.h.cmake
|
||||
* during the cmake configuration of your project. If you need to make changes
|
||||
* edit the original file NOT THIS FILE.
|
||||
* --------------------------------------------------------------------------*/
|
||||
#ifndef RCONFIG_H
|
||||
#define RCONFIG_H
|
||||
|
||||
/* Define to 1 if you have the <alloca.h> header file. */
|
||||
#ifndef HAVE_R_H
|
||||
#define HAVE_R_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <alloca.h> header file. */
|
||||
#ifndef HAVE_R_EMBEDDED_H
|
||||
#define HAVE_R_EMBEDDED_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <alloca.h> header file. */
|
||||
#ifndef HAVE_R_INTERFACE_H
|
||||
#define HAVE_R_INTERFACE_H 1
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
683
Eclipse/rules.ninja
Normal file
683
Eclipse/rules.ninja
Normal file
@ -0,0 +1,683 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Ninja" Generator, CMake Version 3.4
|
||||
|
||||
# This file contains all the rules used to get the outputs files
|
||||
# built from the input files.
|
||||
# It is included in the main 'build.ninja'.
|
||||
|
||||
# =============================================================================
|
||||
# Project: YAP
|
||||
# Configuration:
|
||||
# =============================================================================
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Rule for running custom commands.
|
||||
|
||||
rule CUSTOM_COMMAND
|
||||
command = $COMMAND
|
||||
description = $DESC
|
||||
restat = 1
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libYap
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__libYap
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for creating library symlink.
|
||||
|
||||
rule CMAKE_SYMLINK_LIBRARY
|
||||
command = /usr/local/Cellar/cmake/3.4.3/bin/cmake -E cmake_symlink_library $in $SONAME $out && $POST_BUILD
|
||||
description = Creating library symlink $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__yap-bin
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C executable.
|
||||
|
||||
rule C_EXECUTABLE_LINKER__yap-bin
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__utf8proc
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__utf8proc
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libOPTYap
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__myddas
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Yapmysql
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__Yapmysql
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Yapodbc
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__Yapodbc
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Yappostgres
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__Yappostgres
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Yapsqlite3
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__Yapsqlite3
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libYAPOs
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__Yap.2b.2b
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX shared library.
|
||||
|
||||
rule CXX_SHARED_LIBRARY_LINKER__Yap.2b.2b
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libswi
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__matrix
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__matrix
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__yap_random
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__yap_random
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__regexp
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__regexp
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__yap_rl
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__yap_rl
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__sys
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__sys
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__itries
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__itries
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__tries
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__tries
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__gecode_yap
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX shared library.
|
||||
|
||||
rule CXX_SHARED_LIBRARY_LINKER__gecode_yap
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__real
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__real
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libpython
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__libpython
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__jplYap
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__jplYap
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__Native
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX shared module.
|
||||
|
||||
rule CXX_MODULE_LIBRARY_LINKER__Native
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -bundle -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX shared module $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__cudd
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__cudd
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Problogbdd
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C executable.
|
||||
|
||||
rule C_EXECUTABLE_LINKER__Problogbdd
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__Problogbdd-Lfi
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C executable.
|
||||
|
||||
rule C_EXECUTABLE_LINKER__Problogbdd-Lfi
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__minisat2
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX shared library.
|
||||
|
||||
rule CXX_SHARED_LIBRARY_LINKER__minisat2
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__HorusCli
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX executable.
|
||||
|
||||
rule CXX_EXECUTABLE_LINKER__HorusCli
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__horus
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX shared library.
|
||||
|
||||
rule CXX_SHARED_LIBRARY_LINKER__horus
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__bddem
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__bddem
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__cplint
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__cplint
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__LPADbdd
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C executable.
|
||||
|
||||
rule C_EXECUTABLE_LINKER__LPADbdd
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__libxml2
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__libxml2
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__raptor
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking C shared library.
|
||||
|
||||
rule C_SHARED_LIBRARY_LINKER__raptor
|
||||
command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS -dynamiclib -Wl,-headerpad_max_install_names $LINK_FLAGS -o $TARGET_FILE $SONAME_FLAG $INSTALLNAME_DIR$SONAME $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C shared library $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for re-running cmake.
|
||||
|
||||
rule RERUN_CMAKE
|
||||
command = /usr/local/Cellar/cmake/3.4.3/bin/cmake -H/Users/vsc/git/yap-6.3 -B/Users/vsc/git/yap-6.3/Eclipse
|
||||
description = Re-running CMake...
|
||||
generator = 1
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for cleaning all built files.
|
||||
|
||||
rule CLEAN
|
||||
command = /usr/local/bin/ninja -t clean
|
||||
description = Cleaning all built files...
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for printing all primary targets available.
|
||||
|
||||
rule HELP
|
||||
command = /usr/local/bin/ninja -t targets
|
||||
description = All primary targets available:
|
||||
|
1
H/ *Minibuf-5*
Normal file
1
H/ *Minibuf-5*
Normal file
@ -0,0 +1 @@
|
||||
M-x
|
1
H/ *Minibuf-6*
Normal file
1
H/ *Minibuf-6*
Normal file
@ -0,0 +1 @@
|
||||
File to save in: ~/git/yap-6.3/H/
|
514
H/data.h.cmake
Normal file
514
H/data.h.cmake
Normal file
@ -0,0 +1,514 @@
|
||||
//
|
||||
// File defining fields in the Yap_heap_codes global structure
|
||||
//
|
||||
// these fields used to spread all over the place, because they must be used in
|
||||
// 4 ways:
|
||||
// - they must be defined somewhere
|
||||
// - they have an #ifdef to get a shorter name
|
||||
// - they must be initialised somewhere
|
||||
// - they must be restorable and collectable (from the atom gc).
|
||||
//
|
||||
//
|
||||
// The defs include 4+ components:
|
||||
// Type
|
||||
// name in structured
|
||||
// global name
|
||||
// init code and restore code (optional)
|
||||
//
|
||||
//
|
||||
//
|
||||
// MkAT\(MkAtomTerm) cvts from a predefined atom to a term
|
||||
// MkPred constructs a pr%ed_entry
|
||||
// MkOp gets an opcode
|
||||
// void does nothing
|
||||
// =VALUE inits as VALUE
|
||||
// Init... sets up call to InitFunc
|
||||
// Restore... sets up call to RestoreFunc
|
||||
|
||||
// HM refers to standard field
|
||||
// HI refers to field that does not need restore
|
||||
// H_R refers to field that does not need init, but needs restore
|
||||
// HSPACE refers to a field without init not recovery
|
||||
// HMLOCK refers to a lock
|
||||
// HRWLOCK refers to a rwlock
|
||||
// HOPCODE refers to a opcode
|
||||
// HOPCODE refers to a field initialized/restored with a proceeding
|
||||
|
||||
/* memory management */
|
||||
@DEF @ @TYPE @ struct malloc_state * \ @NAME @Yap_av \\
|
||||
|
||||
#if USE_DL_MALLOC HSPACE(struct memory_hole,
|
||||
Yap_MemoryHoles) HSPACE(UInt, Yap_NOfMemoryHoles)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DLMallocLock)
|
||||
#endif
|
||||
#endif
|
||||
#if USE_DL_MALLOC || (USE_SYSTEM_MALLOC && HAVE_MALLINFO)
|
||||
#ifndef HeapUsed
|
||||
#define HeapUsed Yap_givemallinfo()
|
||||
#endif
|
||||
HSPACE(Int, NotHeapUsed)
|
||||
#else
|
||||
HSPACE(Int, HeapUsed)
|
||||
#endif
|
||||
HSPACE(Int, HeapMax) HSPACE(ADDR, HeapTop) HSPACE(ADDR, HeapLim)
|
||||
HSPACE(struct FREEB *, FreeBlocks)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, FreeBlocksLock) HMLOCK(lockvar,
|
||||
HeapUsedLock)
|
||||
HMLOCK(lockvar, HeapTopLock) HI(int, HeapTopOwner, -1)
|
||||
#endif
|
||||
HI(UInt, MaxStack, 0) HI(UInt, MaxTrail, 0)
|
||||
|
||||
/* execution info */
|
||||
/* OPCODE REVERSE TABLE, needed to recover op tables */
|
||||
#if USE_THREADED_CODE
|
||||
HM(op_entry, OP_RTABLE, NULL, OpRTableAdjust)
|
||||
#endif
|
||||
|
||||
/* popular opcodes */
|
||||
HMOPCODE(EXECUTE_CPRED_OP_CODE, _execute_cpred)
|
||||
HMOPCODE(EXPAND_OP_CODE, _expand_index) HMOPCODE(FAIL_OPCODE, _op_fail)
|
||||
HMOPCODE(INDEX_OPCODE, _index_pred)
|
||||
HMOPCODE(LOCKPRED_OPCODE, _lock_pred)
|
||||
HMOPCODE(ORLAST_OPCODE, _or_last)
|
||||
HMOPCODE(UNDEF_OPCODE, _undef_p)
|
||||
HMOPCODE(RETRY_USERC_OPCODE, _retry_userc)
|
||||
HMOPCODE(EXECUTE_CPRED_OPCODE, _execute_cpred)
|
||||
|
||||
/* atom tables */
|
||||
HSPACE(UInt, NOfAtoms) HSPACE(UInt, AtomHashTableSize)
|
||||
HSPACE(UInt, WideAtomHashTableSize) HSPACE(UInt, NOfWideAtoms)
|
||||
HPROC(AtomHashEntry, INVISIBLECHAIN, InitInvisibleAtoms(),
|
||||
RestoreInvisibleAtoms()) HPROC(AtomHashEntry *, WideHashChain,
|
||||
InitWideAtoms(),
|
||||
RestoreWideAtoms())
|
||||
HPROC(AtomHashEntry *, HashChain, InitAtoms(), RestoreAtoms())
|
||||
|
||||
#if __INIT_C__
|
||||
/* use atom defs here */
|
||||
#include "iatoms.h"
|
||||
#endif
|
||||
|
||||
#ifdef EUROTRA
|
||||
HATOMT(TermDollarU, AtomDollarU)
|
||||
#endif
|
||||
|
||||
// modules
|
||||
HATOMT(USER_MODULE, AtomUser) HATOMT(IDB_MODULE, AtomIDB)
|
||||
HATOMT(ATTRIBUTES_MODULE, AtomAttributes) HATOMT(CHARSIO_MODULE,
|
||||
AtomCharsio)
|
||||
HATOMT(CHTYPE_MODULE, AtomChType) HATOMT(TERMS_MODULE, AtomTerms)
|
||||
HATOMT(SYSTEM_MODULE, AtomSystem)
|
||||
HATOMT(READUTIL_MODULE, AtomReadutil)
|
||||
HATOMT(HACKS_MODULE, AtomYapHacks)
|
||||
HATOMT(ARG_MODULE, AtomArg)
|
||||
HATOMT(GLOBALS_MODULE, AtomNb)
|
||||
HATOMT(SWI_MODULE, AtomSwi)
|
||||
HATOMT(DBLOAD_MODULE, AtomDBLoad)
|
||||
HATOMT(RANGE_MODULE, AtomRange)
|
||||
HATOMT(ERROR_MODULE, AtomError)
|
||||
|
||||
//
|
||||
// Module list
|
||||
//
|
||||
HM(struct mod_entry *, CurrentModules, NULL, ModEntryPtrAdjust)
|
||||
|
||||
// make sure we have the modules set at this point.
|
||||
// don't actually want to define a field
|
||||
#if __INIT_C__
|
||||
Yap_InitModules();
|
||||
#endif
|
||||
|
||||
// hidden predicates
|
||||
HM(Prop, HIDDEN_PREDICATES, NULL, RestoreHiddenPredicates())
|
||||
|
||||
// make sure we have the streams set at this point.
|
||||
// don't actually want to define a field
|
||||
#if __INIT_C__
|
||||
Yap_InitPlIO();
|
||||
#endif
|
||||
|
||||
HSPACE(union flagTerm *, GFlags)
|
||||
HM(UInt, GLOBAL_flagCount, Yap_InitFlags(true), RestoreFlags(GLOBAL_flagCount))
|
||||
|
||||
/* Anderson's JIT */
|
||||
HM(yap_exec_mode, Yap_ExecutionMode, INTERPRETED, rv_void)
|
||||
/* The Predicate Hash Table: fast access to predicates. */
|
||||
HPROC(struct pred_entry **, PredHash, InitPredHash(), RestorePredHash())
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HRWLOCK(rwlock_t, PredHashRWLock)
|
||||
#endif
|
||||
HSPACE(UInt, PredsInHashTable)
|
||||
HSPACE(UInt, PredHashTableSize)
|
||||
|
||||
/* Well-Known Predicates */
|
||||
HAROP(CreepCode, AtomCreep, 1, PROLOG_MODULE)
|
||||
HAROP(UndefCode, AtomUndefp, 2, PROLOG_MODULE)
|
||||
HAROP(SpyCode, AtomSpy, 1, PROLOG_MODULE)
|
||||
HAROP(PredFail, AtomFail, 0, PROLOG_MODULE)
|
||||
HAROP(PredTrue, AtomTrue, 0, PROLOG_MODULE)
|
||||
#ifdef COROUTINING
|
||||
HAROP(WakeUpCode, AtomWakeUpGoal, 2, PROLOG_MODULE)
|
||||
#endif
|
||||
HFOP(PredGoalExpansion, FunctorGoalExpansion, USER_MODULE)
|
||||
HFOP(PredMetaCall, FunctorMetaCall, PROLOG_MODULE)
|
||||
HFOP(PredTraceMetaCall, FunctorTraceMetaCall, PROLOG_MODULE)
|
||||
HFOP(PredDollarCatch, FunctorCatch, PROLOG_MODULE)
|
||||
HFOP(PredRecordedWithKey, FunctorRecordedWithKey, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClause, FunctorDoLogUpdClause, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClauseErase, FunctorDoLogUpdClauseErase, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClause0, FunctorDoLogUpdClause, PROLOG_MODULE)
|
||||
HFOP(PredStaticClause, FunctorDoStaticClause, PROLOG_MODULE)
|
||||
HFOP(PredThrow, FunctorThrow, PROLOG_MODULE)
|
||||
HFOP(PredHandleThrow, FunctorHandleThrow, PROLOG_MODULE)
|
||||
HFOP(PredIs, FunctorIs, PROLOG_MODULE)
|
||||
HFOP(PredSafeCallCleanup, FunctorSafeCallCleanup, PROLOG_MODULE)
|
||||
HFOP(PredRestoreRegs, FunctorRestoreRegs, PROLOG_MODULE)
|
||||
HFOP(PredCommentHook, FunctorCommentHook, PROLOG_MODULE)
|
||||
#ifdef YAPOR
|
||||
HAROP(PredGetwork, AtomGetwork, 0, PROLOG_MODULE)
|
||||
HFOP(PredProcedure, MkLogPred, FunctorProcedure, PROLOG_MODULE)
|
||||
#endif /* YAPOR */
|
||||
|
||||
/* low-level tracer */
|
||||
#ifdef LOW_LEVEL_TRACER
|
||||
HSPACE(bool, Yap_do_low_level_trace)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(Yap_low_level_trace_lock)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* code management info */
|
||||
HI(UInt, Yap_ClauseSpace, 0)
|
||||
HI(UInt, Yap_IndexSpace_Tree, 0)
|
||||
HI(UInt, Yap_IndexSpace_EXT, 0)
|
||||
HI(UInt, Yap_IndexSpace_SW, 0)
|
||||
HI(UInt, Yap_LUClauseSpace, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_Tree, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_CP, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_EXT, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_SW, 0)
|
||||
|
||||
/* static code: may be shared by many predicate or may be used for
|
||||
* meta-execution */
|
||||
HYOP(5, COMMA_CODE, _op_fail)
|
||||
HYOP(1, DUMMYCODE, _op_fail)
|
||||
HYOP(1, FAILCODE, _op_fail)
|
||||
HYOP(1, NOCODE, _Nstop)
|
||||
#ifdef BEAM
|
||||
HYOP(beam_retry_code, 1, BEAM_RETRY_CODE, _beam_retry_code)
|
||||
#endif /* BEAM */
|
||||
|
||||
HENVYOP(2, ENV_FOR_TRUSTFAIL, _trust_fail, PredFail, TRUSTFAILCODE)
|
||||
HSPACE(yamop *, TRUSTFAILCODE)
|
||||
|
||||
HENVYOP(2, ENV_FOR_YESCODE, _Ystop, PredFail, YESCODE)
|
||||
HSPACE(yamop *, YESCODE)
|
||||
|
||||
HCPYOP(1, RTRYCODE, _retry_and_mark, PredFail)
|
||||
#ifdef BEAM
|
||||
HCPYOP(1, BEAM_RETRY_CODE, PredFail)
|
||||
#endif
|
||||
#ifdef YAPOR
|
||||
HCPYOP(1, GETWORK, _getwork, PredGetwork)
|
||||
HCPYOP(1, GETWORK_SEQ, _getwork_seq, PredGetworkSeq)
|
||||
HCPYOP(1, GETWORK_FIRST_TIME, _getwork_first_time, PredGetworkFirstTime)
|
||||
#endif /* YAPOR */
|
||||
#ifdef TABLING
|
||||
HCPYOP(1, LOAD_ANSWER, _table_load_answer, PredFail)
|
||||
HCPYOP(1, TRY_ANSWER, _table_try_answer, PredFail)
|
||||
HCPYOP(1, ANSWER_RESOLUTION, _table_load_answer, PredFail)
|
||||
HCPYOP(1, COMPLETION, _table_completion, PredFail)
|
||||
#ifdef THREADS_CONSUMER_SHARING
|
||||
HCPYOP(1, ANSWER_RESOLUTION_COMPLETION, _table_answer_resolution_completion,
|
||||
PredFail)
|
||||
#endif /* THREADS_CONSUMER_SHARING */
|
||||
#endif /* TABLING */
|
||||
|
||||
/* */
|
||||
/* PREG just before we enter $spy. We use that to find out the clause which
|
||||
*/
|
||||
/* was calling the debugged goal. */
|
||||
/* */
|
||||
HM(struct yami *, P_before_spy, NULL, PtoOpAdjust(P_before_spy))
|
||||
|
||||
/* support recorded_k */
|
||||
HM(struct yami *, RETRY_C_RECORDEDP_CODE, NULL,
|
||||
PtoOpAdjust(RETRY_C_RECORDEDP_CODE))
|
||||
|
||||
HM(struct yami *, RETRY_C_RECORDED_K_CODE, NULL,
|
||||
PtoOpAdjust(RETRY_C_RECORDED__CODE))
|
||||
|
||||
/* compiler flags */
|
||||
HI(bool, PROFILING, false)
|
||||
HI(bool, CALL_COUNTING, false)
|
||||
HI(bool, optimizer_on, true)
|
||||
HI(bool, compile_mode, false)
|
||||
HI(bool, profiling, false)
|
||||
HI(bool, call_counting, false)
|
||||
/********* whether we should try to compile array references ******************/
|
||||
HI(bool, compile_arrays, false)
|
||||
|
||||
/* DBTerms: pre-compiled ground terms */
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DBTermsListLock)
|
||||
#endif
|
||||
HM(struct dbterm_list *, DBTermsList, NULL, RestoreDBTermsList())
|
||||
|
||||
/* JITI support */
|
||||
HI(yamop, ExpandClausesFirst, NULL)
|
||||
HM(yamop, ExpandClausesLast, NULL, RestoreExpandList())
|
||||
HI(UInt, Yap_ExpandClauses, 0)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, ExpandClausesListLock)
|
||||
HMLOCK(lockvar, OpListLock)
|
||||
#endif
|
||||
/* instrumentation */
|
||||
#ifdef DEBUG
|
||||
HI(UInt, Yap_NewCps, 0L)
|
||||
HI(UInt, Yap_LiveCps, 0L)
|
||||
HI(UInt, Yap_DirtyCps, 0L)
|
||||
HI(UInt, Yap_FreedCps, 0L)
|
||||
#endif
|
||||
HI(UInt, Yap_expand_clauses_sz, 0L)
|
||||
|
||||
/* UDI support */
|
||||
H_R(struct udi_info *, UdiControlBlocks, RestoreUdiControlBlocks())
|
||||
|
||||
/* data-base statistics */
|
||||
/* system boots in compile mode */
|
||||
HI(Int, STATIC_PREDICATES_MARKED, false)
|
||||
|
||||
/* Internal Database */
|
||||
HM(Prop, INT_KEYS, NULL, RestoreIntKeys())
|
||||
HM(Prop, INT_LU_KEYS, NULL, RestoreIntLUKeys())
|
||||
HM(Prop, INT_BB_KEYS, NULL, RestoreIntBBKeys())
|
||||
|
||||
/* Internal Database Statistics */
|
||||
HI(UInt, INT_KEYS_SIZE, INT_KEYS_DEFAULT_SIZE)
|
||||
HI(UInt, INT_KEYS_TIMESTAMP, 0L)
|
||||
HI(UInt, INT_BB_KEYS_SIZE, INT_KEYS_DEFAULT_SIZE)
|
||||
|
||||
/* Internal Data-Base Control */
|
||||
HI(int, UPDATE_MODE, UPDATE_MODE_LOGICAL)
|
||||
|
||||
/* nasty IDB stuff */
|
||||
HPROC(struct DB_STRUCT *, DBErasedMarker, InitDBErasedMarker(),
|
||||
RestoreDBErasedMarker())
|
||||
HPROC(struct logic_upd_clause *, LogDBErasedMarker, InitLogDBErasedMarker(),
|
||||
RestoreLogDBErasedMarker())
|
||||
|
||||
/* Dead clauses and IDB entries */
|
||||
H_R(struct static_clause *, DeadStaticClauses, RestoreDeadStaticClauses())
|
||||
H_R(struct static_mega_clause *, DeadMegaClauses, RestoreDeadMegaClauses())
|
||||
H_R(struct static_index *, DeadStaticIndices, RestoreDeadStaticIndices())
|
||||
H_R(struct logic_upd_clause *, DBErasedList, RestoreDBErasedList())
|
||||
H_R(struct logic_upd_index *, DBErasedIList, RestoreDBErasedIList())
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DeadStaticClausesLock)
|
||||
HMLOCK(lockvar, DeadMegaClausesLock)
|
||||
HMLOCK(lockvar, DeadStaticIndicesLock)
|
||||
#endif
|
||||
|
||||
#ifdef COROUTINING
|
||||
/* number of attribute modules */
|
||||
HI(int, NUM_OF_ATTS, 1)
|
||||
/* initialised by memory allocator */
|
||||
HI(UInt, Yap_AttsSize, 0)
|
||||
#endif
|
||||
|
||||
/* Operators */
|
||||
HM(struct operator_entry *, OpList, NULL, OpListAdjust)
|
||||
|
||||
/* foreign code loaded */
|
||||
HM(struct ForeignLoadItem *, ForeignCodeLoaded, NULL, RestoreForeignCode())
|
||||
HI(ADDR, ForeignCodeBase, NULL)
|
||||
HI(ADDR, ForeignCodeTop, NULL)
|
||||
HI(ADDR, ForeignCodeMax, NULL)
|
||||
|
||||
/* recorded terms */
|
||||
HM(struct record_list *, Yap_Records, NULL, RestoreYapRecords())
|
||||
|
||||
/* SWI atoms and functors */
|
||||
HPROC(struct atom_entry *, SWI_Atoms, InitSWIAtoms(), RestoreSWIAtoms())
|
||||
HSPACE(struct functor_entry *, SWI_Functors)
|
||||
|
||||
HSPACEN(struct swi_reverse_hash, N_SWI_HASH, SWI_ReverseHash)
|
||||
|
||||
/* integer access to atoms */
|
||||
HSPACE(Int, AtomTranslations)
|
||||
HSPACE(Int, MaxAtomTranslations)
|
||||
|
||||
// initialization: tell whether the system has been initialised and by whom.
|
||||
HI(int, Initialised, false)
|
||||
HI(int, InitialisedFromPL, false)
|
||||
HI(int, PL_Argc, 0)
|
||||
HI(char **, PL_Argv, NULL)
|
||||
HI(bool, FAST_BOOT_FLAG, false)
|
||||
|
||||
// halt hooks
|
||||
HI(struct halt_hook *, HaltHooks, NULL)
|
||||
HI(fptr_t, JIT_finalizer, NULL)
|
||||
|
||||
// stack overflow expansion/gc control
|
||||
HI(int, AllowLocalExpansion, true)
|
||||
HI(int, AllowGlobalExpansion, true)
|
||||
HI(int, AllowTrailExpansion, true)
|
||||
HI(UInt, SizeOfOverflow, 0)
|
||||
|
||||
// amount of space recovered in all garbage collections
|
||||
HI(UInt, AGcThreshold, 10000)
|
||||
HI(Agc_hook, AGCHook, NULL)
|
||||
|
||||
/* integer access to functors */
|
||||
HSPACE(Int, FunctorTranslations)
|
||||
HSPACE(Int, MaxFunctorTranslations)
|
||||
|
||||
HPROCN(Atom, MAX_EMPTY_WAKEUPS, EmptyWakeups, InitEmptyWakeups(),
|
||||
RestoreEmptyWakeups())
|
||||
HSPACE(int, MaxEmptyWakeups)
|
||||
|
||||
/* SWI blobs */
|
||||
HM(struct YAP_blob_t *, BlobTypes, NULL, RestoreBlobTypes())
|
||||
HM(struct AtomEntryStruct *, Blobs, NULL, RestoreBlobs())
|
||||
HI(UInt, NOfBlobs, 0)
|
||||
|
||||
HI(UInt, NOfBlobsMax, 256)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar blobs_lock, Blobs_Lock)
|
||||
#endif
|
||||
|
||||
#if __ANDROID__
|
||||
// no need to perform initialization, it is done before we start the Prolog
|
||||
// engine.
|
||||
HI(struct AAssetManager *, assetManager, NULL)
|
||||
HI(char *, AssetsWD, NULL)
|
||||
#endif
|
||||
|
||||
/* multi-thread support */
|
||||
#if THREADS
|
||||
/* number of threads and processes in system */
|
||||
HI(UInt, NOfThreads, 1)
|
||||
/* number of threads created since start */
|
||||
HI(UInt, NOfThreadsCreated, 1)
|
||||
/* total run time for dead threads */
|
||||
HI(UInt, ThreadsTotalTime, 0L)
|
||||
// Threads Array
|
||||
HI(lockvar, ThreadHandlesLock, MkLock)
|
||||
#endif
|
||||
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
// protect long critical regions
|
||||
HI(lockvar, BGL, MkLock)
|
||||
#endif
|
||||
|
||||
#if defined(YAPOR) || defined(TABLING)
|
||||
HSPACE(struct global_optyap_data, optyap_data)
|
||||
#endif /* YAPOR || TABLING */
|
||||
|
||||
// whether Yap is responsible for signal handling
|
||||
|
||||
HSPACE(int, PrologShouldHandleInterrupts)
|
||||
|
||||
/* This is the guy who actually started the system, and who has the correct
|
||||
* registers */
|
||||
#if defined(THREADS)
|
||||
HSPACE(pthread_t, master_thread)
|
||||
HI(struct thread_mbox *, named_mboxes, NULL)
|
||||
HI(lockvar, mboxq_lock, MkLock)
|
||||
HI(UInt, mbox_count, 0)
|
||||
HSPACE(struct swi_mutex *, WithMutex)
|
||||
#endif /* THREADS */
|
||||
|
||||
// streams
|
||||
HSPACE(struct stream_desc *, Stream)
|
||||
#if defined(THREADS) || defined(YAPOR)
|
||||
HI(lockvar, StreamDescLock MkLock)
|
||||
#endif
|
||||
|
||||
// access to yap initial arguments
|
||||
HSPACE(char **, argv)
|
||||
HSPACE(int, argc)
|
||||
|
||||
// extensions to Terms
|
||||
#ifdef COROUTINING
|
||||
/* array with the ops for your favourite extensions */
|
||||
HSPACEN(ext_op, attvars_ext + 1, attas)
|
||||
#endif
|
||||
|
||||
// agc.c
|
||||
HSPACE(int, agc_calls)
|
||||
HSPACE(YAP_ULONG_LONG, agc_collected)
|
||||
/* total time spent in GC */
|
||||
HI(Int, tot_agc_time, 0)
|
||||
/* number of heap objects in all garbage collections */
|
||||
HI(Int, tot_agc_recovered, 0)
|
||||
|
||||
// arrays.c
|
||||
#if HAVE_MMAP
|
||||
HI(struct MMAP_ARRAY_BLOCK *, mmap_arrays, NULL)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
// computils.c
|
||||
HSPACEN(char, 20, Option)
|
||||
HSPACE(YP_FILE *, logfile)
|
||||
// init.c
|
||||
// int , output_msg , false
|
||||
#endif
|
||||
|
||||
#if defined(COFF) || defined(A_OUT)
|
||||
// loada_coff.c && load_aout.c
|
||||
HSPACEN(char, Executable, YAP_FILENAME_MAX)
|
||||
#endif
|
||||
|
||||
HI(int, OpaqueHandlersCount, 0)
|
||||
HI(struct opaque_handler_struct *, OpaqueHandlers, NULL)
|
||||
|
||||
#if __simplescalar__
|
||||
HSPACEN(char, pwd, YAP_FILENAME_MAX)
|
||||
#endif
|
||||
|
||||
// udi.c
|
||||
// struct udi_control_block , RtreeCmd, void,
|
||||
|
||||
HSPACE(char *, RestoreFile)
|
||||
|
||||
// gprof.c
|
||||
HSPACE(Int, ProfCalls)
|
||||
HSPACE(Int, ProfGCs)
|
||||
HSPACE(Int, ProfHGrows)
|
||||
HSPACE(Int, ProfSGrows)
|
||||
HSPACE(Int, ProfMallocs)
|
||||
HSPACE(Int, ProfIndexing)
|
||||
HSPACE(Int, ProfOn)
|
||||
HSPACE(Int, ProfOns)
|
||||
HSPACE(struct RB_red_blk_node *, ProfilerRoot)
|
||||
HSPACE(struct RB_red_blk_node *, ProfilerNil)
|
||||
HI(char *, DIRNAME, NULL)
|
||||
#if LOW_PROF
|
||||
HI(int, ProfilerOn, false)
|
||||
HI(FILE *, FProf, NULL)
|
||||
HI(FILE *, FPreds, NULL)
|
||||
#endif /* LOW_PROF */
|
||||
|
||||
// Mutexes
|
||||
#if THREADS
|
||||
HI(struct swi_mutex *, FreeMutexes, NULL)
|
||||
HI(struct swi_mutex *, mutex_backbone, NULL)
|
||||
HSPACEN(struct swi_reverse_hash, N_SWI_HASH. SWI_ReverseHash
|
||||
HI(lockvar, MUT_ACCESS, MkLock)
|
||||
#endif
|
||||
|
||||
HI(char *, Home, NULL)
|
||||
|
||||
/* ISO char conversion: I will make no comments */
|
||||
HI(char *, CharConversionTable, NULL)
|
||||
HI(char *, CharConversionTable2, NULL)
|
||||
|
||||
/* time */
|
||||
HI(void *, LastWTimePtr, NULL)
|
||||
|
||||
/* max priority */
|
||||
HI(int, MaxPriority, 1200)
|
100
H/fields.h
Normal file
100
H/fields.h
Normal file
@ -0,0 +1,100 @@
|
||||
|
||||
#ifndef _FIELDS_H_
|
||||
#define _FIELDS_H_ 1
|
||||
|
||||
#undef HM
|
||||
#undef HSPACE
|
||||
#undef HSPACEN
|
||||
#undef HI
|
||||
#undef H_R
|
||||
#undef HLOCK
|
||||
#undef HRWLOCK
|
||||
#undef HMOPCODE
|
||||
#undef HPROC
|
||||
#undef HATOMT
|
||||
#undef HAROP
|
||||
#undef HFOP
|
||||
#undef HYOP
|
||||
#undef HENVYOP
|
||||
#undef HCPYOP
|
||||
#define HM(TYPE, NAME, INIT, RECOVER) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HSPACE(TYPE, NAME) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HSPACEN(TYPE, N, NAME) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HI(TYPE, NAME, INIT) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define H_R(TYPE, NAME, INIT) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HLOCK(TYPE, NAME) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HRWLOCK(TYPE, NAME) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HMOPCODE(NAME, OP) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HPROC(TYPE, NAME, INIT, RECOVER) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HPROCN(TYPE, N, NAME, INIT, RECOVER) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HATOMT(NAME, ATOM) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HAROP(NAME, ATOM, ARITY, MODULE) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HFOP(NAME, FUNC, MODULE) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HYOP(N, NAME, FAILOP) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HENVYOP(N, NAME, op, NEXTNAME, PFAIL) DEF NAME Yap_heap_regs->NAME##_
|
||||
#define HCPYOP(N, NAME, OP, FAILP) DEF NAME Yap_heap_regs->NAME##_
|
||||
|
||||
#include "heap.h"
|
||||
|
||||
#undef HM
|
||||
#undef HSPACE
|
||||
#undef HSPACEN
|
||||
#undef HI
|
||||
#undef H_R
|
||||
#undef HLOCK
|
||||
#undef HRWLOCK
|
||||
#undef HMOPCODE
|
||||
#undef HPROC
|
||||
#undef HATOMT
|
||||
#undef HAROP
|
||||
#undef HFOP
|
||||
#undef HYOP
|
||||
#undef HENVYOP
|
||||
#undef HCPYOP
|
||||
#define HM(TYPE, NAME, INIT, RECOVER) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HSPACE(TYPE, NAME) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HSPACEN(TYPE, N, NAME) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HI(TYPE, NAME, INIT) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define H_R(TYPE, NAME, INIT) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HLOCK(TYPE, NAME) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HRWLOCK(TYPE, NAME) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HMOPCODE(NAME, OP) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HPROC(TYPE, NAME, INIT, RECOVER) \
|
||||
DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HPROCN(TYPE, N, NAME, INIT, RECOVER) \
|
||||
DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HATOMT(NAME, ATOM) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HAROP(NAME, ATOM, ARITY, MODULE) \
|
||||
DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HFOP(NAME, FUNC, MODULE) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HYOP(N, NAME, FAILOP) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HENVYOP(N, NAME, op, NEXTNAME, PFAIL) \
|
||||
DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
#define HCPYOP(N, NAME, OP, FAILP) DEF GLOBAL_##NAME Yap_heap_regs->NAME##_
|
||||
|
||||
#include "heap.h"
|
||||
|
||||
#undef LOC
|
||||
#undef LOCL
|
||||
#undef LOCN
|
||||
#undef LOCLR
|
||||
#define LOC(TYPE, NAME) DEF LOCAL_##NAME LOCAL->NAME
|
||||
#define LOCL(TYPE, NAME, INIT) DEF LOCAL_##NAME LOCAL->NAME
|
||||
#define LOCN(TYPE, N, NAME) DEF LOCAL_##NAME LOCAL->NAME
|
||||
#define LOCLR(TYPE, NAME, INIT, RESTORE) DEF LOCAL_##NAME LOCAL->NAME
|
||||
|
||||
#include "locals.h"
|
||||
|
||||
#undef LOC
|
||||
#undef LOCL
|
||||
#undef LOCLR
|
||||
#undef LOCN
|
||||
#define LOC(TYPE, NAME) DEF REMOTE_##NAME(wid) REMOTE(wid)->NAME
|
||||
#define LOCL(TYPE, NAME, INIT) DEF REMOTE_##NAME(wid) REMOTE(wid)->NAME
|
||||
#define LOCN(TYPE, N, NAME) DEF REMOTE_##NAME(wid) REMOTE(wid)->NAME
|
||||
#define LOCLR(TYPE, NAME, INIT, RESTORE) \
|
||||
DEF REMOTE_##NAME(wid) REMOTE(wid)->NAME
|
||||
|
||||
#include "locals.h"
|
||||
|
||||
#endif
|
523
H/heap.h
Normal file
523
H/heap.h
Normal file
@ -0,0 +1,523 @@
|
||||
//
|
||||
// File defining fields in the Yap_heap_codes global structure
|
||||
//
|
||||
// these fields used to spread all over the place, because they must be used in
|
||||
// 4 ways:
|
||||
// - they must be defined somewhere
|
||||
// - they have an #ifdef to get a shorter name
|
||||
// - they must be initialised somewhere
|
||||
// - they must be restorable and collectable (from the atom gc).
|
||||
//
|
||||
//
|
||||
// The defs include 4+ components:
|
||||
// Type
|
||||
// name in structured
|
||||
// global name
|
||||
// init code and restore code (optional)
|
||||
//
|
||||
//
|
||||
//
|
||||
// MkAT\(MkAtomTerm) cvts from a predefined atom to a term
|
||||
// MkPred constructs a pr%ed_entry
|
||||
// MkOp gets an opcode
|
||||
// void does nothing
|
||||
// =VALUE inits as VALUE
|
||||
// Init... sets up call to InitFunc
|
||||
// Restore... sets up call to RestoreFunc
|
||||
|
||||
// HM refers to standard field
|
||||
// HI refers to field that does not need restore
|
||||
// H_R refers to field that does not need init, but needs restore
|
||||
// HSPACE refers to a field without init not recovery
|
||||
// HMLOCK refers to a lock
|
||||
// HRWLOCK refers to a rwlock
|
||||
// HOPCODE refers to a opcode
|
||||
// HOPCODE refers to a field initialized/restored with a proceeding
|
||||
|
||||
/* memory management */
|
||||
HSPACE(struct malloc_state *, Yap_av)
|
||||
|
||||
#if USE_DL_MALLOC
|
||||
HSPACE(struct memory_hole, Yap_MemoryHoles)
|
||||
HSPACE(UInt, Yap_NOfMemoryHoles)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DLMallocLock)
|
||||
#endif
|
||||
#endif
|
||||
#if USE_DL_MALLOC || (USE_SYSTEM_MALLOC && HAVE_MALLINFO)
|
||||
#ifndef HeapUsed
|
||||
#define HeapUsed Yap_givemallinfo()
|
||||
#endif
|
||||
HSPACE(Int, NotHeapUsed)
|
||||
#else
|
||||
HSPACE(Int, HeapUsed)
|
||||
#endif
|
||||
HSPACE(Int, HeapMax)
|
||||
HSPACE(ADDR, HeapTop)
|
||||
HSPACE(ADDR, HeapLim)
|
||||
HSPACE(struct FREEB *, FreeBlocks)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, FreeBlocksLock)
|
||||
HMLOCK(lockvar, HeapUsedLock)
|
||||
HMLOCK(lockvar, HeapTopLock)
|
||||
HI(int, HeapTopOwner, -1)
|
||||
#endif
|
||||
HI(UInt, MaxStack, 0)
|
||||
HI(UInt, MaxTrail, 0)
|
||||
|
||||
/* execution info */
|
||||
/* OPCODE REVERSE TABLE, needed to recover op tables */
|
||||
#if USE_THREADED_CODE
|
||||
HM(op_entry, OP_RTABLE, NULL, OpRTableAdjust)
|
||||
#endif
|
||||
|
||||
/* popular opcodes */
|
||||
HMOPCODE(EXECUTE_CPRED_OP_CODE, _execute_cpred)
|
||||
HMOPCODE(EXPAND_OP_CODE, _expand_index)
|
||||
HMOPCODE(FAIL_OPCODE, _op_fail)
|
||||
HMOPCODE(INDEX_OPCODE, _index_pred)
|
||||
HMOPCODE(LOCKPRED_OPCODE, _lock_pred)
|
||||
HMOPCODE(ORLAST_OPCODE, _or_last)
|
||||
HMOPCODE(UNDEF_OPCODE, _undef_p)
|
||||
HMOPCODE(RETRY_USERC_OPCODE, _retry_userc)
|
||||
HMOPCODE(EXECUTE_CPRED_OPCODE, _execute_cpred)
|
||||
|
||||
/* atom tables */
|
||||
HSPACE(UInt, NOfAtoms)
|
||||
HSPACE(UInt, AtomHashTableSize)
|
||||
HSPACE(UInt, WideAtomHashTableSize)
|
||||
HSPACE(UInt, NOfWideAtoms)
|
||||
HPROC(AtomHashEntry, INVISIBLECHAIN, InitInvisibleAtoms(),
|
||||
RestoreInvisibleAtoms())
|
||||
HPROC(AtomHashEntry *, WideHashChain, InitWideAtoms(), RestoreWideAtoms())
|
||||
HPROC(AtomHashEntry *, HashChain, InitAtoms(), RestoreAtoms())
|
||||
|
||||
#if __INIT_C__
|
||||
/* use atom defs here */
|
||||
#include "iatoms.h"
|
||||
#endif
|
||||
|
||||
#ifdef EUROTRA
|
||||
HATOMT(TermDollarU, AtomDollarU)
|
||||
#endif
|
||||
|
||||
// modules
|
||||
HATOMT(USER_MODULE, AtomUser)
|
||||
HATOMT(IDB_MODULE, AtomIDB)
|
||||
HATOMT(ATTRIBUTES_MODULE, AtomAttributes)
|
||||
HATOMT(CHARSIO_MODULE, AtomCharsio)
|
||||
HATOMT(CHTYPE_MODULE, AtomChType)
|
||||
HATOMT(TERMS_MODULE, AtomTerms)
|
||||
HATOMT(SYSTEM_MODULE, AtomSystem)
|
||||
HATOMT(READUTIL_MODULE, AtomReadutil)
|
||||
HATOMT(HACKS_MODULE, AtomYapHacks)
|
||||
HATOMT(ARG_MODULE, AtomArg)
|
||||
HATOMT(GLOBALS_MODULE, AtomNb)
|
||||
HATOMT(SWI_MODULE, AtomSwi)
|
||||
HATOMT(DBLOAD_MODULE, AtomDBLoad)
|
||||
HATOMT(RANGE_MODULE, AtomRange)
|
||||
HATOMT(ERROR_MODULE, AtomError)
|
||||
|
||||
//
|
||||
// Module list
|
||||
//
|
||||
HM(struct mod_entry *, CurrentModules, NULL, ModEntryPtrAdjust)
|
||||
|
||||
// make sure we have the modules set at this point.
|
||||
// don't actually want to define a field
|
||||
#if __INIT_C__
|
||||
Yap_InitModules();
|
||||
#endif
|
||||
|
||||
// hidden predicates
|
||||
HM(Prop, HIDDEN_PREDICATES, NULL, RestoreHiddenPredicates())
|
||||
|
||||
// make sure we have the streams set at this point.
|
||||
// don't actually want to define a field
|
||||
#if __INIT_C__
|
||||
Yap_InitPlIO();
|
||||
#endif
|
||||
|
||||
HSPACE(union flagTerm *, GFlags)
|
||||
HM(UInt, GLOBAL_flagCount, Yap_InitFlags(true), RestoreFlags(GLOBAL_flagCount))
|
||||
|
||||
/* Anderson's JIT */
|
||||
HM(yap_exec_mode, Yap_ExecutionMode, INTERPRETED, rv_void)
|
||||
/* The Predicate Hash Table: fast access to predicates. */
|
||||
HPROC(struct pred_entry **, PredHash, InitPredHash(), RestorePredHash())
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HRWLOCK(rwlock_t, PredHashRWLock)
|
||||
#endif
|
||||
HSPACE(UInt, PredsInHashTable)
|
||||
HSPACE(UInt, PredHashTableSize)
|
||||
|
||||
/* Well-Known Predicates */
|
||||
HAROP(CreepCode, AtomCreep, 1, PROLOG_MODULE)
|
||||
HAROP(UndefCode, AtomUndefp, 2, PROLOG_MODULE)
|
||||
HAROP(SpyCode, AtomSpy, 1, PROLOG_MODULE)
|
||||
HAROP(PredFail, AtomFail, 0, PROLOG_MODULE)
|
||||
HAROP(PredTrue, AtomTrue, 0, PROLOG_MODULE)
|
||||
#ifdef COROUTINING
|
||||
HAROP(WakeUpCode, AtomWakeUpGoal, 2, PROLOG_MODULE)
|
||||
#endif
|
||||
HFOP(PredGoalExpansion, FunctorGoalExpansion, USER_MODULE)
|
||||
HFOP(PredMetaCall, FunctorMetaCall, PROLOG_MODULE)
|
||||
HFOP(PredTraceMetaCall, FunctorTraceMetaCall, PROLOG_MODULE)
|
||||
HFOP(PredDollarCatch, FunctorCatch, PROLOG_MODULE)
|
||||
HFOP(PredRecordedWithKey, FunctorRecordedWithKey, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClause, FunctorDoLogUpdClause, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClauseErase, FunctorDoLogUpdClauseErase, PROLOG_MODULE)
|
||||
HFOP(PredLogUpdClause0, FunctorDoLogUpdClause, PROLOG_MODULE)
|
||||
HFOP(PredStaticClause, FunctorDoStaticClause, PROLOG_MODULE)
|
||||
HFOP(PredThrow, FunctorThrow, PROLOG_MODULE)
|
||||
HFOP(PredHandleThrow, FunctorHandleThrow, PROLOG_MODULE)
|
||||
HFOP(PredIs, FunctorIs, PROLOG_MODULE)
|
||||
HFOP(PredSafeCallCleanup, FunctorSafeCallCleanup, PROLOG_MODULE)
|
||||
HFOP(PredRestoreRegs, FunctorRestoreRegs, PROLOG_MODULE)
|
||||
HFOP(PredCommentHook, FunctorCommentHook, PROLOG_MODULE)
|
||||
#ifdef YAPOR
|
||||
HAROP(PredGetwork, AtomGetwork, 0, PROLOG_MODULE)
|
||||
HFOP(PredProcedure, MkLogPred, FunctorProcedure, PROLOG_MODULE)
|
||||
#endif /* YAPOR */
|
||||
|
||||
/* low-level tracer */
|
||||
#ifdef LOW_LEVEL_TRACER
|
||||
HSPACE(bool, Yap_do_low_level_trace)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(Yap_low_level_trace_lock)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* code management info */
|
||||
HI(UInt, Yap_ClauseSpace, 0)
|
||||
HI(UInt, Yap_IndexSpace_Tree, 0)
|
||||
HI(UInt, Yap_IndexSpace_EXT, 0)
|
||||
HI(UInt, Yap_IndexSpace_SW, 0)
|
||||
HI(UInt, Yap_LUClauseSpace, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_Tree, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_CP, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_EXT, 0)
|
||||
HI(UInt, Yap_LUIndexSpace_SW, 0)
|
||||
|
||||
/* static code: may be shared by many predicate or may be used for
|
||||
* meta-execution */
|
||||
HYOP(5, COMMA_CODE, _op_fail)
|
||||
HYOP(1, DUMMYCODE, _op_fail)
|
||||
HYOP(1, FAILCODE, _op_fail)
|
||||
HYOP(1, NOCODE, _Nstop)
|
||||
#ifdef BEAM
|
||||
HYOP(beam_retry_code, 1, BEAM_RETRY_CODE, _beam_retry_code)
|
||||
#endif /* BEAM */
|
||||
|
||||
HENVYOP(2, ENV_FOR_TRUSTFAIL, _trust_fail, PredFail, TRUSTFAILCODE)
|
||||
HSPACE(yamop *, TRUSTFAILCODE)
|
||||
|
||||
HENVYOP(2, ENV_FOR_YESCODE, _Ystop, PredFail, YESCODE)
|
||||
HSPACE(yamop *, YESCODE)
|
||||
|
||||
HCPYOP(1, RTRYCODE, _retry_and_mark, PredFail)
|
||||
#ifdef BEAM
|
||||
HCPYOP(1, BEAM_RETRY_CODE, PredFail)
|
||||
#endif
|
||||
#ifdef YAPOR
|
||||
HCPYOP(1, GETWORK, _getwork, PredGetwork)
|
||||
HCPYOP(1, GETWORK_SEQ, _getwork_seq, PredGetworkSeq)
|
||||
HCPYOP(1, GETWORK_FIRST_TIME, _getwork_first_time, PredGetworkFirstTime)
|
||||
#endif /* YAPOR */
|
||||
#ifdef TABLING
|
||||
HCPYOP(1, LOAD_ANSWER, _table_load_answer, PredFail)
|
||||
HCPYOP(1, TRY_ANSWER, _table_try_answer, PredFail)
|
||||
HCPYOP(1, ANSWER_RESOLUTION, _table_load_answer, PredFail)
|
||||
HCPYOP(1, COMPLETION, _table_completion, PredFail)
|
||||
#ifdef THREADS_CONSUMER_SHARING
|
||||
HCPYOP(1, ANSWER_RESOLUTION_COMPLETION, _table_answer_resolution_completion,
|
||||
PredFail)
|
||||
#endif /* THREADS_CONSUMER_SHARING */
|
||||
#endif /* TABLING */
|
||||
|
||||
/* */
|
||||
/* PREG just before we enter $spy. We use that to find out the clause which
|
||||
*/
|
||||
/* was calling the debugged goal. */
|
||||
/* */
|
||||
HM(struct yami *, P_before_spy, NULL, PtoOpAdjust(P_before_spy))
|
||||
|
||||
/* support recorded_k */
|
||||
HM(struct yami *, RETRY_C_RECORDEDP_CODE, NULL,
|
||||
PtoOpAdjust(RETRY_C_RECORDEDP_CODE))
|
||||
|
||||
HM(struct yami *, RETRY_C_RECORDED_K_CODE, NULL,
|
||||
PtoOpAdjust(RETRY_C_RECORDED__CODE))
|
||||
|
||||
/* compiler flags */
|
||||
HI(bool, PROFILING, false)
|
||||
HI(bool, CALL_COUNTING, false)
|
||||
HI(bool, optimizer_on, true)
|
||||
HI(bool, compile_mode, false)
|
||||
HI(bool, profiling, false)
|
||||
HI(bool, call_counting, false)
|
||||
/********* whether we should try to compile array references ******************/
|
||||
HI(bool, compile_arrays, false)
|
||||
|
||||
/* DBTerms: pre-compiled ground terms */
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DBTermsListLock)
|
||||
#endif
|
||||
HM(struct dbterm_list *, DBTermsList, NULL, RestoreDBTermsList())
|
||||
|
||||
/* JITI support */
|
||||
HI(yamop, ExpandClausesFirst, NULL)
|
||||
HM(yamop, ExpandClausesLast, NULL, RestoreExpandList())
|
||||
HI(UInt, Yap_ExpandClauses, 0)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, ExpandClausesListLock)
|
||||
HMLOCK(lockvar, OpListLock)
|
||||
#endif
|
||||
/* instrumentation */
|
||||
#ifdef DEBUG
|
||||
HI(UInt, Yap_NewCps, 0L)
|
||||
HI(UInt, Yap_LiveCps, 0L)
|
||||
HI(UInt, Yap_DirtyCps, 0L)
|
||||
HI(UInt, Yap_FreedCps, 0L)
|
||||
#endif
|
||||
HI(UInt, Yap_expand_clauses_sz, 0L)
|
||||
|
||||
/* UDI support */
|
||||
H_R(struct udi_info *, UdiControlBlocks, RestoreUdiControlBlocks())
|
||||
|
||||
/* data-base statistics */
|
||||
/* system boots in compile mode */
|
||||
HI(Int, STATIC_PREDICATES_MARKED, false)
|
||||
|
||||
/* Internal Database */
|
||||
HM(Prop, INT_KEYS, NULL, RestoreIntKeys())
|
||||
HM(Prop, INT_LU_KEYS, NULL, RestoreIntLUKeys())
|
||||
HM(Prop, INT_BB_KEYS, NULL, RestoreIntBBKeys())
|
||||
|
||||
/* Internal Database Statistics */
|
||||
HI(UInt, INT_KEYS_SIZE, INT_KEYS_DEFAULT_SIZE)
|
||||
HI(UInt, INT_KEYS_TIMESTAMP, 0L)
|
||||
HI(UInt, INT_BB_KEYS_SIZE, INT_KEYS_DEFAULT_SIZE)
|
||||
|
||||
/* Internal Data-Base Control */
|
||||
HI(int, UPDATE_MODE, UPDATE_MODE_LOGICAL)
|
||||
|
||||
/* nasty IDB stuff */
|
||||
HPROC(struct DB_STRUCT *, DBErasedMarker, InitDBErasedMarker(),
|
||||
RestoreDBErasedMarker())
|
||||
HPROC(struct logic_upd_clause *, LogDBErasedMarker, InitLogDBErasedMarker(),
|
||||
RestoreLogDBErasedMarker())
|
||||
|
||||
/* Dead clauses and IDB entries */
|
||||
H_R(struct static_clause *, DeadStaticClauses, RestoreDeadStaticClauses())
|
||||
H_R(struct static_mega_clause *, DeadMegaClauses, RestoreDeadMegaClauses())
|
||||
H_R(struct static_index *, DeadStaticIndices, RestoreDeadStaticIndices())
|
||||
H_R(struct logic_upd_clause *, DBErasedList, RestoreDBErasedList())
|
||||
H_R(struct logic_upd_index *, DBErasedIList, RestoreDBErasedIList())
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar, DeadStaticClausesLock)
|
||||
HMLOCK(lockvar, DeadMegaClausesLock)
|
||||
HMLOCK(lockvar, DeadStaticIndicesLock)
|
||||
#endif
|
||||
|
||||
#ifdef COROUTINING
|
||||
/* number of attribute modules */
|
||||
HI(int, NUM_OF_ATTS, 1)
|
||||
/* initialised by memory allocator */
|
||||
HI(UInt, Yap_AttsSize, 0)
|
||||
#endif
|
||||
|
||||
/* Operators */
|
||||
HM(struct operator_entry *, OpList, NULL, OpListAdjust)
|
||||
|
||||
/* foreign code loaded */
|
||||
HM(struct ForeignLoadItem *, ForeignCodeLoaded, NULL, RestoreForeignCode())
|
||||
HI(ADDR, ForeignCodeBase, NULL)
|
||||
HI(ADDR, ForeignCodeTop, NULL)
|
||||
HI(ADDR, ForeignCodeMax, NULL)
|
||||
|
||||
/* recorded terms */
|
||||
HM(struct record_list *, Yap_Records, NULL, RestoreYapRecords())
|
||||
|
||||
/* SWI atoms and functors */
|
||||
HPROC(struct atom_entry *, SWI_Atoms, InitSWIAtoms(), RestoreSWIAtoms())
|
||||
HSPACE(struct functor_entry *, SWI_Functors)
|
||||
|
||||
HSPACEN(struct swi_reverse_hash, N_SWI_HASH, SWI_ReverseHash)
|
||||
|
||||
/* integer access to atoms */
|
||||
HSPACE(Int, AtomTranslations)
|
||||
HSPACE(Int, MaxAtomTranslations)
|
||||
|
||||
// initialization: tell whether the system has been initialised and by whom.
|
||||
HI(int, Initialised, false)
|
||||
HI(int, InitialisedFromPL, false)
|
||||
HI(int, PL_Argc, 0)
|
||||
HI(char **, PL_Argv, NULL)
|
||||
HI(bool, FAST_BOOT_FLAG, false)
|
||||
|
||||
// halt hooks
|
||||
HI(struct halt_hook *, HaltHooks, NULL)
|
||||
HI(fptr_t, JIT_finalizer, NULL)
|
||||
|
||||
// stack overflow expansion/gc control
|
||||
HI(int, AllowLocalExpansion, true)
|
||||
HI(int, AllowGlobalExpansion, true)
|
||||
HI(int, AllowTrailExpansion, true)
|
||||
HI(UInt, SizeOfOverflow, 0)
|
||||
|
||||
// amount of space recovered in all garbage collections
|
||||
HI(UInt, AGcThreshold, 10000)
|
||||
HI(Agc_hook, AGCHook, NULL)
|
||||
|
||||
/* integer access to functors */
|
||||
HSPACE(Int, FunctorTranslations)
|
||||
HSPACE(Int, MaxFunctorTranslations)
|
||||
|
||||
HPROCN(Atom, MAX_EMPTY_WAKEUPS, EmptyWakeups, InitEmptyWakeups(),
|
||||
RestoreEmptyWakeups())
|
||||
HSPACE(int, MaxEmptyWakeups)
|
||||
|
||||
/* SWI blobs */
|
||||
HM(struct YAP_blob_t *, BlobTypes, NULL, RestoreBlobTypes())
|
||||
HM(struct AtomEntryStruct *, Blobs, NULL, RestoreBlobs())
|
||||
HI(UInt, NOfBlobs, 0)
|
||||
|
||||
HI(UInt, NOfBlobsMax, 256)
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
HMLOCK(lockvar blobs_lock, Blobs_Lock)
|
||||
#endif
|
||||
|
||||
#if __ANDROID__
|
||||
// no need to perform initialization, it is done before we start the Prolog
|
||||
// engine.
|
||||
HI(struct AAssetManager *, assetManager, NULL)
|
||||
HI(char *, AssetsWD, NULL)
|
||||
#endif
|
||||
|
||||
/* multi-thread support */
|
||||
#if THREADS
|
||||
/* number of threads and processes in system */
|
||||
HI(UInt, NOfThreads, 1)
|
||||
/* number of threads created since start */
|
||||
HI(UInt, NOfThreadsCreated, 1)
|
||||
/* total run time for dead threads */
|
||||
HI(UInt, ThreadsTotalTime, 0L)
|
||||
// Threads Array
|
||||
HI(lockvar, ThreadHandlesLock, MkLock)
|
||||
#endif
|
||||
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
// protect long critical regions
|
||||
HI(lockvar, BGL, MkLock)
|
||||
#endif
|
||||
|
||||
#if defined(YAPOR) || defined(TABLING)
|
||||
HSPACE(struct global_optyap_data, optyap_data)
|
||||
#endif /* YAPOR || TABLING */
|
||||
|
||||
// whether Yap is responsible for signal handling
|
||||
|
||||
HSPACE(int, PrologShouldHandleInterrupts)
|
||||
|
||||
/* This is the guy who actually started the system, and who has the correct
|
||||
* registers */
|
||||
#if defined(THREADS)
|
||||
HSPACE(pthread_t, master_thread)
|
||||
HI(struct thread_mbox *, named_mboxes, NULL)
|
||||
HI(lockvar, mboxq_lock, MkLock)
|
||||
HI(UInt, mbox_count, 0)
|
||||
HSPACE(struct swi_mutex *, WithMutex)
|
||||
#endif /* THREADS */
|
||||
|
||||
// streams
|
||||
HSPACE(struct stream_desc *, Stream)
|
||||
#if defined(THREADS) || defined(YAPOR)
|
||||
HI(lockvar, StreamDescLock MkLock)
|
||||
#endif
|
||||
|
||||
// access to yap initial arguments
|
||||
HSPACE(char **, argv)
|
||||
HSPACE(int, argc)
|
||||
|
||||
// extensions to Terms
|
||||
#ifdef COROUTINING
|
||||
/* array with the ops for your favourite extensions */
|
||||
HSPACEN(ext_op, attvars_ext + 1, attas)
|
||||
#endif
|
||||
|
||||
// agc.c
|
||||
HSPACE(int, agc_calls)
|
||||
HSPACE(YAP_ULONG_LONG, agc_collected)
|
||||
/* total time spent in GC */
|
||||
HI(Int, tot_agc_time, 0)
|
||||
/* number of heap objects in all garbage collections */
|
||||
HI(Int, tot_agc_recovered, 0)
|
||||
|
||||
// arrays.c
|
||||
#if HAVE_MMAP
|
||||
HI(struct MMAP_ARRAY_BLOCK *, mmap_arrays, NULL)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
// computils.c
|
||||
HSPACEN(char, 20, Option)
|
||||
HSPACE(YP_FILE *, logfile)
|
||||
// init.c
|
||||
// int , output_msg , false
|
||||
#endif
|
||||
|
||||
#if defined(COFF) || defined(A_OUT)
|
||||
// loada_coff.c && load_aout.c
|
||||
HSPACEN(char, Executable, YAP_FILENAME_MAX)
|
||||
#endif
|
||||
|
||||
HI(int, OpaqueHandlersCount, 0)
|
||||
HI(struct opaque_handler_struct *, OpaqueHandlers, NULL)
|
||||
|
||||
#if __simplescalar__
|
||||
HSPACEN(char, pwd, YAP_FILENAME_MAX)
|
||||
#endif
|
||||
|
||||
// udi.c
|
||||
// struct udi_control_block , RtreeCmd, void,
|
||||
|
||||
HSPACE(char *, RestoreFile)
|
||||
|
||||
// gprof.c
|
||||
HSPACE(Int, ProfCalls)
|
||||
HSPACE(Int, ProfGCs)
|
||||
HSPACE(Int, ProfHGrows)
|
||||
HSPACE(Int, ProfSGrows)
|
||||
HSPACE(Int, ProfMallocs)
|
||||
HSPACE(Int, ProfIndexing)
|
||||
HSPACE(Int, ProfOn)
|
||||
HSPACE(Int, ProfOns)
|
||||
HSPACE(struct RB_red_blk_node *, ProfilerRoot)
|
||||
HSPACE(struct RB_red_blk_node *, ProfilerNil)
|
||||
HI(char *, DIRNAME, NULL)
|
||||
#if LOW_PROF
|
||||
HI(int, ProfilerOn, false)
|
||||
HI(FILE *, FProf, NULL)
|
||||
HI(FILE *, FPreds, NULL)
|
||||
#endif /* LOW_PROF */
|
||||
|
||||
// Mutexes
|
||||
#if THREADS
|
||||
HI(struct swi_mutex *, FreeMutexes, NULL)
|
||||
HI(struct swi_mutex *, mutex_backbone, NULL)
|
||||
HSPACEN(struct swi_reverse_hash, N_SWI_HASH. SWI_ReverseHash
|
||||
HI(lockvar, MUT_ACCESS, MkLock)
|
||||
#endif
|
||||
|
||||
HI(char *, Home, NULL)
|
||||
|
||||
/* ISO char conversion: I will make no comments */
|
||||
HI(char *, CharConversionTable, NULL)
|
||||
HI(char *, CharConversionTable2, NULL)
|
||||
|
||||
/* time */
|
||||
HI(void *, LastWTimePtr, NULL)
|
||||
|
||||
/* max priority */
|
||||
HI(int, MaxPriority, 1200)
|
303
H/hstruct.h
Normal file
303
H/hstruct.h
Normal file
@ -0,0 +1,303 @@
|
||||
|
||||
/* This file, hstruct.h, was generated automatically by "yap -L misc/buildheap"
|
||||
please do not update, update misc/HEAPFIELDS instead */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct worker_local {
|
||||
|
||||
UInt Yap_HoleSize;
|
||||
struct malloc_state *Yap_av;
|
||||
#if USE_DL_MALLOC
|
||||
struct Yap_MemoryHoles[MAX_DLMALLOC_HOLES] void;
|
||||
UInt Yap_NOfMemoryHoles;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar DLMallocLock;
|
||||
#endif
|
||||
#endif
|
||||
#if USE_DL_MALLOC || (USE_SYSTEM_MALLOC && HAVE_MALLINFO)
|
||||
#ifndef HeapUsed
|
||||
#define HeapUsed Yap_givemallinfo()
|
||||
#endif
|
||||
Int NotHeapUsed;
|
||||
#else
|
||||
Int HeapUsed;
|
||||
#endif
|
||||
Int HeapMax;
|
||||
ADDR HeapTop;
|
||||
ADDR HeapLim;
|
||||
struct FREEB *FreeBlocks;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar FreeBlocksLock;
|
||||
lockvar HeapUsedLock;
|
||||
lockvar HeapTopLock;
|
||||
int HeapTopOwner;
|
||||
#endif
|
||||
UInt MaxStack;
|
||||
UInt MaxTrail;
|
||||
|
||||
|
||||
#if USE_THREADED_CODE
|
||||
op_entry *OP_RTABLE;
|
||||
#endif
|
||||
|
||||
OPCODE EXECUTE_CPRED_OP_CODE;
|
||||
OPCODE EXPAND_OP_CODE;
|
||||
OPCODE FAIL_OPCODE;
|
||||
OPCODE INDEX_OPCODE;
|
||||
OPCODE LOCKPRED_OPCODE;
|
||||
OPCODE ORLAST_OPCODE;
|
||||
OPCODE UNDEF_OPCODE;
|
||||
OPCODE RETRY_USERC_OPCODE;
|
||||
OPCODE EXECUTE_CPRED_OPCODE;
|
||||
|
||||
UInt NOfAtoms;
|
||||
UInt AtomHashTableSize;
|
||||
UInt WideAtomHashTableSize;
|
||||
UInt NOfWideAtoms;
|
||||
AtomHashEntry INVISIBLECHAIN;
|
||||
AtomHashEntry *WideHashChain;
|
||||
AtomHashEntry *HashChain;
|
||||
|
||||
#include "tatoms.h"
|
||||
#ifdef EUROTRA
|
||||
Term TermDollarU;
|
||||
#endif
|
||||
|
||||
Term USER_MODULE;
|
||||
Term IDB_MODULE;
|
||||
Term ATTRIBUTES_MODULE;
|
||||
Term CHARSIO_MODULE;
|
||||
Term CHTYPE_MODULE;
|
||||
Term TERMS_MODULE;
|
||||
Term SYSTEM_MODULE;
|
||||
Term READUTIL_MODULE;
|
||||
Term HACKS_MODULE;
|
||||
Term ARG_MODULE;
|
||||
Term GLOBALS_MODULE;
|
||||
Term SWI_MODULE;
|
||||
Term DBLOAD_MODULE;
|
||||
Term RANGE_MODULE;
|
||||
Term ERROR_MODULE;
|
||||
|
||||
|
||||
|
||||
struct mod_entry *CurrentModules;
|
||||
|
||||
|
||||
|
||||
|
||||
Prop HIDDEN_PREDICATES;
|
||||
|
||||
|
||||
|
||||
union flagTerm* GLOBAL_Flags;
|
||||
UInt GLOBAL_flagCount;
|
||||
|
||||
yap_exec_mode Yap_ExecutionMode;
|
||||
|
||||
UInt PredsInHashTable;
|
||||
uint64_t PredHashTableSize;
|
||||
struct pred_entry **PredHash;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
rwlock_t PredHashRWLock;
|
||||
#endif
|
||||
|
||||
struct pred_entry *CreepCode;
|
||||
struct pred_entry *UndefCode;
|
||||
struct pred_entry *SpyCode;
|
||||
struct pred_entry *PredFail;
|
||||
struct pred_entry *PredTrue;
|
||||
#ifdef COROUTINING
|
||||
struct pred_entry *WakeUpCode;
|
||||
#endif
|
||||
struct pred_entry *PredGoalExpansion;
|
||||
struct pred_entry *PredMetaCall;
|
||||
struct pred_entry *PredTraceMetaCall;
|
||||
struct pred_entry *PredDollarCatch;
|
||||
struct pred_entry *PredRecordedWithKey;
|
||||
struct pred_entry *PredLogUpdClause;
|
||||
struct pred_entry *PredLogUpdClauseErase;
|
||||
struct pred_entry *PredLogUpdClause0;
|
||||
struct pred_entry *PredStaticClause;
|
||||
struct pred_entry *PredThrow;
|
||||
struct pred_entry *PredHandleThrow;
|
||||
struct pred_entry *PredIs;
|
||||
struct pred_entry *PredSafeCallCleanup;
|
||||
struct pred_entry *PredRestoreRegs;
|
||||
struct pred_entry *PredCommentHook;
|
||||
#ifdef YAPOR
|
||||
struct pred_entry *PredGetwork;
|
||||
#endif /* YAPOR */
|
||||
struct pred_entry *PredProcedure;
|
||||
|
||||
#ifdef LOW_LEVEL_TRACER
|
||||
int Yap_do_low_level_trace;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar Yap_low_level_trace_lock;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
UInt Yap_ClauseSpace;
|
||||
UInt Yap_IndexSpace_Tree;
|
||||
UInt Yap_IndexSpace_EXT;
|
||||
UInt Yap_IndexSpace_SW;
|
||||
UInt Yap_LUClauseSpace;
|
||||
UInt Yap_LUIndexSpace_Tree;
|
||||
UInt Yap_LUIndexSpace_CP;
|
||||
UInt Yap_LUIndexSpace_EXT;
|
||||
UInt Yap_LUIndexSpace_SW;
|
||||
|
||||
yamop COMMA_CODE[5];
|
||||
yamop DUMMYCODE[1];
|
||||
yamop FAILCODE[1];
|
||||
yamop NOCODE[1];
|
||||
yamop ENV_FOR_TRUSTFAIL[2];
|
||||
yamop *TRUSTFAILCODE;
|
||||
yamop ENV_FOR_YESCODE[2];
|
||||
yamop *YESCODE;
|
||||
yamop RTRYCODE[1];
|
||||
#ifdef BEAM
|
||||
yamop BEAM_RETRY_CODE[1];
|
||||
#endif /* BEAM */
|
||||
#ifdef YAPOR
|
||||
yamop GETWORK[1];
|
||||
yamop GETWORK_SEQ[1];
|
||||
yamop GETWORK_FIRST_TIME[1];
|
||||
#endif /* YAPOR */
|
||||
#ifdef TABLING
|
||||
yamop LOAD_ANSWER[1];
|
||||
yamop TRY_ANSWER[1];
|
||||
yamop ANSWER_RESOLUTION[1];
|
||||
yamop COMPLETION[1];
|
||||
#ifdef THREADS_CONSUMER_SHARING
|
||||
yamop ANSWER_RESOLUTION_COMPLETION[1];
|
||||
#endif /* THREADS_CONSUMER_SHARING */
|
||||
#endif /* TABLING */
|
||||
|
||||
|
||||
|
||||
|
||||
yamop *P_before_spy;
|
||||
|
||||
yamop *RETRY_C_RECORDEDP_CODE;
|
||||
yamop *RETRY_C_RECORDED_K_CODE;
|
||||
|
||||
int PROFILING;
|
||||
int CALL_COUNTING;
|
||||
int optimizer_on;
|
||||
int compile_mode;
|
||||
int profiling;
|
||||
int call_counting;
|
||||
|
||||
int compile_arrays;
|
||||
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar DBTermsListLock;
|
||||
#endif
|
||||
struct dbterm_list *DBTermsList;
|
||||
|
||||
yamop *ExpandClausesFirst;
|
||||
yamop *ExpandClausesLast;
|
||||
UInt Yap_ExpandClauses;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar ExpandClausesListLock;
|
||||
lockvar OpListLock;
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
UInt Yap_NewCps;
|
||||
UInt Yap_LiveCps;
|
||||
UInt Yap_DirtyCps;
|
||||
UInt Yap_FreedCps;
|
||||
#endif
|
||||
UInt Yap_expand_clauses_sz;
|
||||
|
||||
struct udi_info *UdiControlBlocks;
|
||||
|
||||
|
||||
Int STATIC_PREDICATES_MARKED;
|
||||
|
||||
Prop *INT_KEYS;
|
||||
Prop *INT_LU_KEYS;
|
||||
Prop *INT_BB_KEYS;
|
||||
|
||||
UInt INT_KEYS_SIZE;
|
||||
UInt INT_KEYS_TIMESTAMP;
|
||||
UInt INT_BB_KEYS_SIZE;
|
||||
|
||||
int UPDATE_MODE;
|
||||
|
||||
struct DB_STRUCT *DBErasedMarker;
|
||||
struct logic_upd_clause *LogDBErasedMarker;
|
||||
|
||||
struct static_clause *DeadStaticClauses;
|
||||
struct static_mega_clause *DeadMegaClauses;
|
||||
struct static_index *DeadStaticIndices;
|
||||
struct logic_upd_clause *DBErasedList;
|
||||
struct logic_upd_index *DBErasedIList;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar DeadStaticClausesLock;
|
||||
lockvar DeadMegaClausesLock;
|
||||
lockvar DeadStaticIndicesLock;
|
||||
#endif
|
||||
#ifdef COROUTINING
|
||||
|
||||
int NUM_OF_ATTS;
|
||||
|
||||
UInt Yap_AttsSize;
|
||||
#endif
|
||||
|
||||
struct operator_entry *OpList;
|
||||
|
||||
struct ForeignLoadItem *ForeignCodeLoaded;
|
||||
ADDR ForeignCodeBase;
|
||||
ADDR ForeignCodeTop;
|
||||
ADDR ForeignCodeMax;
|
||||
|
||||
struct record_list *Yap_Records;
|
||||
|
||||
Atom *SWI_Atoms;
|
||||
Functor *SWI_Functors;
|
||||
swi_rev_hash SWI_ReverseHash[N_SWI_HASH];
|
||||
|
||||
Int AtomTranslations;
|
||||
Int MaxAtomTranslations;
|
||||
|
||||
Int FunctorTranslations;
|
||||
Int MaxFunctorTranslations;
|
||||
Atom EmptyWakeups[MAX_EMPTY_WAKEUPS];
|
||||
int MaxEmptyWakeups;
|
||||
|
||||
struct YAP_blob_t *BlobTypes;
|
||||
struct AtomEntryStruct *Blobs;
|
||||
UInt NOfBlobs;
|
||||
UInt NOfBlobsMax;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
lockvar Blobs_Lock;
|
||||
#endif
|
||||
} w_local;
|
548
H/iatoms.h
Normal file
548
H/iatoms.h
Normal file
@ -0,0 +1,548 @@
|
||||
|
||||
/* This file, iatoms.h, was generated automatically by "yap -L misc/buildatoms"
|
||||
please do not update, update misc/ATOMS instead */
|
||||
|
||||
Atom3Dots = Yap_LookupAtom("...");
|
||||
AtomAbol = Yap_FullLookupAtom("$abol");
|
||||
AtomAccess = Yap_LookupAtom("access");
|
||||
AtomAfInet = Yap_LookupAtom("AF_INET");
|
||||
AtomAfLocal = Yap_LookupAtom("AF_LOCAL");
|
||||
AtomAfUnix = Yap_LookupAtom("AF_UNIX");
|
||||
AtomAlarm = Yap_FullLookupAtom("$alarm");
|
||||
AtomAlias = Yap_LookupAtom("alias");
|
||||
AtomAll = Yap_LookupAtom("all");
|
||||
AtomAltNot = Yap_LookupAtom("not");
|
||||
AtomAny = Yap_LookupAtom("any");
|
||||
AtomAppend = Yap_LookupAtom("append");
|
||||
AtomArg = Yap_LookupAtom("arg");
|
||||
AtomArray = Yap_FullLookupAtom("$array");
|
||||
AtomArrayAccess = Yap_FullLookupAtom("$array_arg");
|
||||
AtomArrayOverflow = Yap_LookupAtom("array_overflow");
|
||||
AtomArrayType = Yap_LookupAtom("array_type");
|
||||
AtomArrow = Yap_LookupAtom("->");
|
||||
AtomAttributedModule = Yap_LookupAtom("attributes_module");
|
||||
AtomDoubleArrow = Yap_LookupAtom("-->");
|
||||
AtomAssert = Yap_LookupAtom(":-");
|
||||
AtomEmptyBrackets = Yap_LookupAtom("()");
|
||||
AtomEmptySquareBrackets = Yap_LookupAtom("[]");
|
||||
AtomEmptyCurlyBrackets = Yap_LookupAtom("{}");
|
||||
AtomAsserta = Yap_LookupAtom("asserta");
|
||||
AtomAssertaStatic = Yap_LookupAtom("asserta_static");
|
||||
AtomAssertz = Yap_LookupAtom("assertz");
|
||||
AtomAssertzStatic = Yap_LookupAtom("assertz_static");
|
||||
AtomAt = Yap_LookupAtom("at");
|
||||
AtomAtom = Yap_LookupAtom("atom");
|
||||
AtomAtomic = Yap_LookupAtom("atomic");
|
||||
AtomAtt = Yap_FullLookupAtom("$att");
|
||||
AtomAtt1 = Yap_LookupAtom("att");
|
||||
AtomAttDo = Yap_FullLookupAtom("$att_do");
|
||||
AtomAttributes = Yap_LookupAtom("attributes");
|
||||
AtomB = Yap_FullLookupAtom("$last_choice_pt");
|
||||
AtomBatched = Yap_LookupAtom("batched");
|
||||
AtomBetween = Yap_LookupAtom("between");
|
||||
AtomBinary = Yap_LookupAtom("binary");
|
||||
AtomBigNum = Yap_LookupAtom("big_num");
|
||||
AtomBinaryStream = Yap_LookupAtom("binary_stream");
|
||||
AtomBoolean = Yap_LookupAtom("boolean");
|
||||
AtomBraces = Yap_LookupAtom("{}");
|
||||
AtomBreak = Yap_FullLookupAtom("$break");
|
||||
AtomByte = Yap_LookupAtom("byte");
|
||||
AtomCArith = Yap_FullLookupAtom("$c_arith");
|
||||
AtomCall = Yap_LookupAtom("call");
|
||||
AtomCallAndRetryCounter = Yap_LookupAtom("call_and_retry_counter");
|
||||
AtomCallCounter = Yap_LookupAtom("call_counter");
|
||||
AtomCallable = Yap_LookupAtom("callable");
|
||||
AtomCatch = Yap_FullLookupAtom("$catch");
|
||||
AtomChangeModule = Yap_FullLookupAtom("$change_module");
|
||||
AtomChar = Yap_LookupAtom("char");
|
||||
AtomCharsio = Yap_LookupAtom("charsio");
|
||||
AtomCharacter = Yap_LookupAtom("character");
|
||||
AtomCharacterCode = Yap_LookupAtom("character_code");
|
||||
AtomChars = Yap_LookupAtom("chars");
|
||||
AtomCharset = Yap_LookupAtom("charset");
|
||||
AtomChType = Yap_FullLookupAtom("$char_type");
|
||||
AtomCleanCall = Yap_FullLookupAtom("$clean_call");
|
||||
AtomColomn = Yap_LookupAtom(":");
|
||||
AtomCodeSpace = Yap_LookupAtom("code_space");
|
||||
AtomCodes = Yap_LookupAtom("codes");
|
||||
AtomCoInductive = Yap_LookupAtom("coinductive");
|
||||
AtomComma = Yap_LookupAtom(",");
|
||||
AtomCommentHook = Yap_LookupAtom("comment_hook");
|
||||
AtomCompact = Yap_LookupAtom("compact");
|
||||
AtomCompound = Yap_LookupAtom("compound");
|
||||
AtomConsistencyError = Yap_LookupAtom("consistency_error");
|
||||
AtomConsult = Yap_LookupAtom("consult");
|
||||
AtomConsultOnBoot = Yap_FullLookupAtom("$consult_on_boot");
|
||||
AtomContext = Yap_LookupAtom("context");
|
||||
AtomCputime = Yap_LookupAtom("cputime");
|
||||
AtomCreate = Yap_LookupAtom("create");
|
||||
AtomCreep = Yap_FullLookupAtom("$creep");
|
||||
AtomCryptAtoms = Yap_LookupAtom("crypt_atoms");
|
||||
AtomCsult = Yap_FullLookupAtom("$csult");
|
||||
AtomCurrentModule = Yap_FullLookupAtom("$current_module");
|
||||
AtomCut = Yap_LookupAtom("!");
|
||||
AtomCutBy = Yap_FullLookupAtom("$cut_by");
|
||||
AtomDAbort = Yap_FullLookupAtom("$abort");
|
||||
AtomDBLoad = Yap_FullLookupAtom("$db_load");
|
||||
AtomDBREF = Yap_LookupAtom("DBRef");
|
||||
AtomDBReference = Yap_LookupAtom("db_reference");
|
||||
AtomDBTerm = Yap_LookupAtom("db_term");
|
||||
AtomDBref = Yap_FullLookupAtom("$dbref");
|
||||
AtomDInteger = Yap_FullLookupAtom("$integer");
|
||||
AtomDebugMeta = Yap_FullLookupAtom("$debug_meta");
|
||||
AtomDebuggerInput = Yap_LookupAtom("debugger_input");
|
||||
AtomDec10 = Yap_LookupAtom("dec10");
|
||||
AtomDefault = Yap_LookupAtom("default");
|
||||
AtomDevNull = Yap_LookupAtom("/dev/null");
|
||||
AtomDiff = Yap_LookupAtom("\\=");
|
||||
AtomDirectory = Yap_LookupAtom("disrectorys");
|
||||
AtomDiscontiguous = Yap_LookupAtom("discontiguous");
|
||||
AtomDiscontiguousWarnings = Yap_LookupAtom("discontiguous_warnings");
|
||||
AtomDollar = Yap_FullLookupAtom("$");
|
||||
AtomDoLogUpdClause = Yap_FullLookupAtom("$do_log_upd_clause");
|
||||
AtomDoLogUpdClause0 = Yap_FullLookupAtom("$do_log_upd_clause0");
|
||||
AtomDoLogUpdClauseErase = Yap_FullLookupAtom("$do_log_upd_clause_erase");
|
||||
AtomDollarU = Yap_FullLookupAtom("$u");
|
||||
AtomDollarUndef = Yap_FullLookupAtom("$undef");
|
||||
AtomDomainError = Yap_LookupAtom("domain_error");
|
||||
AtomDoStaticClause = Yap_FullLookupAtom("$do_static_clause");
|
||||
AtomDots = Yap_LookupAtom("dots");
|
||||
AtomDOUBLE = Yap_FullLookupAtom("Double");
|
||||
AtomDoubleSlash = Yap_FullLookupAtom("//");
|
||||
AtomE = Yap_LookupAtom("e");
|
||||
AtomEOFBeforeEOT = Yap_LookupAtom("end_of_file_found_before_end_of_term");
|
||||
AtomEQ = Yap_LookupAtom("=");
|
||||
AtomEmptyAtom = Yap_LookupAtom("");
|
||||
AtomEncoding = Yap_LookupAtom("encoding");
|
||||
AtomEndOfStream = Yap_LookupAtom("$end_of_stream");
|
||||
AtomEof = Yap_LookupAtom("end_of_file");
|
||||
AtomEOfCode = Yap_LookupAtom("eof_code");
|
||||
AtomEq = Yap_LookupAtom("=");
|
||||
AtomError = Yap_LookupAtom("error");
|
||||
AtomException = Yap_LookupAtom("exception");
|
||||
AtomExtensions = Yap_LookupAtom("extensions");
|
||||
AtomEvaluable = Yap_LookupAtom("evaluable");
|
||||
AtomEvaluationError = Yap_LookupAtom("evaluation_error");
|
||||
AtomExecutable = Yap_LookupAtom("executable");
|
||||
AtomExecute = Yap_LookupAtom("execute");
|
||||
AtomExecAnswers = Yap_LookupAtom("exec_answers");
|
||||
AtomExecuteInMod = Yap_FullLookupAtom("$execute_in_mod");
|
||||
AtomExecuteWithin = Yap_FullLookupAtom("$execute_within");
|
||||
AtomExecuteWoMod = Yap_FullLookupAtom("$execute_wo_mod");
|
||||
AtomExist = Yap_LookupAtom("exist");
|
||||
AtomExistenceError = Yap_LookupAtom("existence_error");
|
||||
AtomExoClause = Yap_FullLookupAtom("$exo_clause");
|
||||
AtomExpectedNumber = Yap_LookupAtom("expected_number_syntax");
|
||||
AtomExpand = Yap_LookupAtom("expand");
|
||||
AtomExtendFileSearchPath = Yap_FullLookupAtom("$extend_file_search_path");
|
||||
AtomExtendsions = Yap_LookupAtom("extensionh");
|
||||
AtomFB = Yap_LookupAtom("fb");
|
||||
AtomFail = Yap_LookupAtom("fail");
|
||||
AtomFalse = Yap_LookupAtom("false");
|
||||
AtomFast = Yap_FullLookupAtom("$fast");
|
||||
AtomFastFail = Yap_LookupAtom("fast_fail");
|
||||
AtomFileErrors = Yap_LookupAtom("file_errors");
|
||||
AtomFileerrors = Yap_LookupAtom("fileerrors");
|
||||
AtomFileType = Yap_LookupAtom("file_type");
|
||||
AtomFirst = Yap_LookupAtom("first");
|
||||
AtomFloat = Yap_LookupAtom("float");
|
||||
AtomFloatFormat = Yap_LookupAtom("\%.15g");
|
||||
AtomFloatOverflow = Yap_LookupAtom("float_overflow");
|
||||
AtomFloatUnderflow = Yap_LookupAtom("float_underflow");
|
||||
AtomFormat = Yap_LookupAtom("format");
|
||||
AtomFormatAt = Yap_FullLookupAtom("$format@");
|
||||
AtomFull = Yap_LookupAtom("full");
|
||||
AtomFunctor = Yap_LookupAtom("functor");
|
||||
AtomGT = Yap_LookupAtom(">");
|
||||
AtomGVar = Yap_LookupAtom("var");
|
||||
AtomGc = Yap_FullLookupAtom("$gc");
|
||||
AtomGcMargin = Yap_FullLookupAtom("$gc_margin");
|
||||
AtomGcTrace = Yap_FullLookupAtom("$gc_trace");
|
||||
AtomGcVerbose = Yap_FullLookupAtom("$gc_verbose");
|
||||
AtomGcVeryVerbose = Yap_FullLookupAtom("$gc_very_verbose");
|
||||
AtomGeneratePredInfo = Yap_FullLookupAtom("$generate_pred_info");
|
||||
AtomGetwork = Yap_FullLookupAtom("$getwork");
|
||||
AtomGetworkSeq = Yap_FullLookupAtom("$getwork_seq");
|
||||
AtomGlob = Yap_LookupAtom("glob");
|
||||
AtomGlobal = Yap_LookupAtom("global");
|
||||
AtomGlobalSp = Yap_LookupAtom("global_sp");
|
||||
AtomGlobalTrie = Yap_LookupAtom("global_trie");
|
||||
AtomGoalExpansion = Yap_LookupAtom("goal_expansion");
|
||||
AtomHat = Yap_LookupAtom("^");
|
||||
AtomHERE = Yap_LookupAtom("\n <====HERE====> \n");
|
||||
AtomHandleThrow = Yap_FullLookupAtom("$handle_throw");
|
||||
AtomHeap = Yap_LookupAtom("heap");
|
||||
AtomHeapUsed = Yap_LookupAtom("heapused");
|
||||
AtomHugeInt = Yap_LookupAtom("huge_int");
|
||||
AtomIDB = Yap_LookupAtom("idb");
|
||||
AtomIOMode = Yap_LookupAtom("io_mode");
|
||||
AtomId = Yap_LookupAtom("id");
|
||||
AtomIgnore = Yap_LookupAtom("ignore");
|
||||
AtomInf = Yap_LookupAtom("inf");
|
||||
AtomInfinity = Yap_LookupAtom("infinity");
|
||||
AtomInitGoal = Yap_FullLookupAtom("$init_goal");
|
||||
AtomInitProlog = Yap_FullLookupAtom("$init_prolog");
|
||||
AtomInStackExpansion = Yap_LookupAtom("in stack expansion");
|
||||
AtomInput = Yap_LookupAtom("input");
|
||||
AtomInstantiationError = Yap_LookupAtom("instantiation_error");
|
||||
AtomInt = Yap_LookupAtom("int");
|
||||
AtomIntOverflow = Yap_LookupAtom("int_overflow");
|
||||
AtomInteger = Yap_LookupAtom("integer");
|
||||
AtomInternalCompilerError = Yap_LookupAtom("internal_compiler_error");
|
||||
AtomIs = Yap_LookupAtom("is");
|
||||
AtomKey = Yap_LookupAtom("key");
|
||||
AtomLDLibraryPath = Yap_LookupAtom("LD_LIBRARY_PATH");
|
||||
AtomLONGINT = Yap_LookupAtom("LongInt");
|
||||
AtomLOOP = Yap_LookupAtom("_LOOP_");
|
||||
AtomLoopStream = Yap_LookupAtom("loop_stream");
|
||||
AtomLT = Yap_LookupAtom("<");
|
||||
AtomLastExecuteWithin = Yap_FullLookupAtom("$last_execute_within");
|
||||
AtomLeash = Yap_FullLookupAtom("$leash");
|
||||
AtomLeast = Yap_LookupAtom("least");
|
||||
AtomLength = Yap_FullLookupAtom("length");
|
||||
AtomList = Yap_LookupAtom("list");
|
||||
AtomLine = Yap_LookupAtom("line");
|
||||
AtomLive = Yap_FullLookupAtom("$live");
|
||||
AtomLoadAnswers = Yap_LookupAtom("load_answers");
|
||||
AtomLocal = Yap_LookupAtom("local");
|
||||
AtomLocalSp = Yap_LookupAtom("local_sp");
|
||||
AtomLocalTrie = Yap_LookupAtom("local_trie");
|
||||
AtomMax = Yap_LookupAtom("max");
|
||||
AtomMaximum = Yap_LookupAtom("maximum");
|
||||
AtomMaxArity = Yap_LookupAtom("max_arity");
|
||||
AtomMaxFiles = Yap_LookupAtom("max_files");
|
||||
AtomMegaClause = Yap_FullLookupAtom("$mega_clause");
|
||||
AtomMetaCall = Yap_FullLookupAtom("$call");
|
||||
AtomMfClause = Yap_FullLookupAtom("$mf_clause");
|
||||
AtomMin = Yap_LookupAtom("min");
|
||||
AtomMinimum = Yap_LookupAtom("minimum");
|
||||
AtomMinus = Yap_LookupAtom("-");
|
||||
AtomModify = Yap_LookupAtom("modify");
|
||||
AtomModule = Yap_LookupAtom("module");
|
||||
AtomMost = Yap_LookupAtom("most");
|
||||
AtomMulti = Yap_LookupAtom("multi");
|
||||
AtomMultiFile = Yap_FullLookupAtom("$mf");
|
||||
AtomMultiple = Yap_FullLookupAtom("multiple");
|
||||
AtomMutable = Yap_LookupAtom("mutable");
|
||||
AtomMutableVariable = Yap_FullLookupAtom("$mutable_variable");
|
||||
AtomMutex = Yap_LookupAtom("mutex");
|
||||
AtomMyddasDB = Yap_FullLookupAtom("$myddas_db");
|
||||
AtomMyddasGoal = Yap_FullLookupAtom("$myddas_goal");
|
||||
AtomMyddasHost = Yap_FullLookupAtom("$myddas_host");
|
||||
AtomMyddasPass = Yap_FullLookupAtom("$myddas_pass");
|
||||
AtomMyddasUser = Yap_FullLookupAtom("$myddas_user");
|
||||
AtomMyddasVersionName = Yap_FullLookupAtom("$myddas_version_name");
|
||||
AtomNan = Yap_LookupAtom("nan");
|
||||
AtomNb = Yap_LookupAtom("nb");
|
||||
AtomNbTerm = Yap_LookupAtom("nb_term");
|
||||
AtomNew = Yap_LookupAtom("new");
|
||||
AtomNewLine = Yap_LookupAtom("nl");
|
||||
AtomNl = Yap_LookupAtom("nl");
|
||||
AtomNoEffect = Yap_LookupAtom("no_effect");
|
||||
AtomNoMemory = Yap_LookupAtom("no_memory");
|
||||
AtomNone = Yap_LookupAtom("none");
|
||||
AtomNonEmptyList = Yap_LookupAtom("non_empty_list");
|
||||
AtomNot = Yap_LookupAtom("\\+");
|
||||
AtomNotImplemented = Yap_LookupAtom("not_implemented");
|
||||
AtomNotLessThanZero = Yap_LookupAtom("not_less_than_zero");
|
||||
AtomNotNewline = Yap_LookupAtom("not_newline");
|
||||
AtomNotZero = Yap_LookupAtom("not_zero");
|
||||
AtomNumber = Yap_LookupAtom("number");
|
||||
AtomOff = Yap_LookupAtom("off");
|
||||
AtomOffline = Yap_LookupAtom("offline");
|
||||
AtomOn = Yap_LookupAtom("on");
|
||||
AtomOnline = Yap_LookupAtom("online");
|
||||
AtomOpen = Yap_LookupAtom("open");
|
||||
AtomOperatingSystemError = Yap_LookupAtom("operating_SYSTEM_ERROR_INTERNAL");
|
||||
AtomOperatingSystemSupport = Yap_LookupAtom("operating_system_support");
|
||||
AtomOperator = Yap_LookupAtom("operator");
|
||||
AtomOperatorPriority = Yap_LookupAtom("operator_priority");
|
||||
AtomOperatorSpecifier = Yap_LookupAtom("operator_specifier");
|
||||
AtomOpt = Yap_LookupAtom("opt");
|
||||
AtomOtherwise = Yap_LookupAtom("otherwise");
|
||||
AtomOutOfAttvarsError = Yap_LookupAtom("out_of_attvars_error");
|
||||
AtomOutOfAuxspaceError = Yap_LookupAtom("out_of_auxspace_error");
|
||||
AtomOutOfHeapError = Yap_LookupAtom("out_of_heap_error");
|
||||
AtomOutOfRange = Yap_LookupAtom("out_of_range");
|
||||
AtomOutOfStackError = Yap_LookupAtom("out_of_stack_error");
|
||||
AtomOutOfTrailError = Yap_LookupAtom("out_of_trail_error");
|
||||
AtomOutput = Yap_LookupAtom("output");
|
||||
AtomParameter = Yap_LookupAtom("parameter");
|
||||
AtomPrologCommonsDir = Yap_LookupAtom("prolog_commons_directory");
|
||||
AtomPast = Yap_LookupAtom("past");
|
||||
AtomPastEndOfStream = Yap_LookupAtom("past_end_of_stream");
|
||||
AtomPermissionError = Yap_LookupAtom("permission_error");
|
||||
AtomPi = Yap_LookupAtom("pi");
|
||||
AtomPipe = Yap_LookupAtom("pipe");
|
||||
AtomPlus = Yap_LookupAtom("+");
|
||||
AtomPointer = Yap_LookupAtom("pointer");
|
||||
AtomPortray = Yap_FullLookupAtom("portray");
|
||||
AtomPredicateIndicator = Yap_LookupAtom("predicate_indicator");
|
||||
AtomPrimitive = Yap_LookupAtom("primitive");
|
||||
AtomPrintMessage = Yap_LookupAtom("print_message");
|
||||
AtomPrivateProcedure = Yap_LookupAtom("private_procedure");
|
||||
AtomProcedure = Yap_LookupAtom("procedure");
|
||||
AtomProfile = Yap_FullLookupAtom("$profile");
|
||||
AtomProlog = Yap_LookupAtom("prolog");
|
||||
AtomQly = Yap_LookupAtom("qly");
|
||||
AtomQuery = Yap_LookupAtom("?-");
|
||||
AtomQueue = Yap_LookupAtom("queue");
|
||||
AtomQuiet = Yap_LookupAtom("quiet");
|
||||
AtomRadix = Yap_LookupAtom("radix");
|
||||
AtomRandom = Yap_LookupAtom("random");
|
||||
AtomRange = Yap_LookupAtom("range");
|
||||
AtomRDiv = Yap_LookupAtom("rdiv");
|
||||
AtomRead = Yap_LookupAtom("read");
|
||||
AtomReadOnly = Yap_LookupAtom("read_only");
|
||||
AtomReadWrite = Yap_LookupAtom("read_write");
|
||||
AtomReadutil = Yap_LookupAtom("readutil");
|
||||
AtomReconsult = Yap_LookupAtom("reconsult");
|
||||
AtomRecordedP = Yap_FullLookupAtom("$recordep");
|
||||
AtomRecordedWithKey = Yap_FullLookupAtom("$recorded_with_key");
|
||||
AtomRedefineWarnings = Yap_LookupAtom("redefine_warnings");
|
||||
AtomRedoFreeze = Yap_FullLookupAtom("$redo_freeze");
|
||||
AtomRefoundVar = Yap_FullLookupAtom("$I_FOUND_THE_VARIABLE_AGAIN");
|
||||
AtomRelativeTo = Yap_FullLookupAtom("relative_to");
|
||||
AtomRepeat = Yap_LookupAtom("repeat");
|
||||
AtomRepeatSpace = Yap_LookupAtom("repeat ");
|
||||
AtomReposition = Yap_LookupAtom("reposition");
|
||||
AtomRepresentationError = Yap_LookupAtom("representation_error");
|
||||
AtomReset = Yap_LookupAtom("reset");
|
||||
AtomResize = Yap_LookupAtom("resize");
|
||||
AtomResourceError = Yap_LookupAtom("resource_error");
|
||||
AtomRestoreRegs = Yap_FullLookupAtom("$restore_regs");
|
||||
AtomRetryCounter = Yap_LookupAtom("retry_counter");
|
||||
AtomRTree = Yap_LookupAtom("rtree");
|
||||
AtomSafe = Yap_FullLookupAtom("$safe");
|
||||
AtomSafeCallCleanup = Yap_FullLookupAtom("$safe_call_cleanup");
|
||||
AtomSame = Yap_LookupAtom("==");
|
||||
AtomSemic = Yap_LookupAtom(";");
|
||||
AtomShiftCountOverflow = Yap_LookupAtom("shift_count_overflow");
|
||||
AtomSigAlarm = Yap_LookupAtom("sig_alarm");
|
||||
AtomSigBreak = Yap_LookupAtom("sig_break");
|
||||
AtomSigCreep = Yap_LookupAtom("sig_creep");
|
||||
AtomSigDebug = Yap_LookupAtom("sig_debug");
|
||||
AtomSigDelayCreep = Yap_LookupAtom("sig_delay_creep");
|
||||
AtomSigFPE = Yap_LookupAtom("sig_fpe");
|
||||
AtomSigHup = Yap_LookupAtom("sig_hup");
|
||||
AtomSigInt = Yap_LookupAtom("sig_int");
|
||||
AtomSigIti = Yap_LookupAtom("sig_iti");
|
||||
AtomSigPending = Yap_FullLookupAtom("$sig_pending");
|
||||
AtomSigPipe = Yap_LookupAtom("sig_pipe");
|
||||
AtomSigStackDump = Yap_LookupAtom("sig_stack_dump");
|
||||
AtomSigStatistics = Yap_LookupAtom("sig_statistics");
|
||||
AtomSigTrace = Yap_LookupAtom("sig_trace");
|
||||
AtomSigUsr1 = Yap_LookupAtom("sig_usr1");
|
||||
AtomSigUsr2 = Yap_LookupAtom("sig_usr2");
|
||||
AtomSigVTAlarm = Yap_LookupAtom("sig_vtalarm");
|
||||
AtomSigWakeUp = Yap_LookupAtom("sig_wake_up");
|
||||
AtomSilent = Yap_LookupAtom("Silent");
|
||||
AtomSingle = Yap_LookupAtom("single");
|
||||
AtomSingleVarWarnings = Yap_LookupAtom("single_var_warnings");
|
||||
AtomSingleton = Yap_LookupAtom("singleton");
|
||||
AtomSlash = Yap_LookupAtom("/");
|
||||
AtomSocket = Yap_LookupAtom("socket");
|
||||
AtomSolutions = Yap_LookupAtom("solutions");
|
||||
AtomSource = Yap_LookupAtom("source");
|
||||
AtomSourceSink = Yap_LookupAtom("source_sink");
|
||||
AtomSpy = Yap_FullLookupAtom("$spy");
|
||||
AtomStack = Yap_LookupAtom("stack");
|
||||
AtomStackFree = Yap_LookupAtom("stackfree");
|
||||
AtomStartupSavedState = Yap_FullLookupAtom("$startup_saved_state");
|
||||
AtomStaticClause = Yap_FullLookupAtom("$static_clause");
|
||||
AtomStaticProcedure = Yap_LookupAtom("static_procedure");
|
||||
AtomStream = Yap_FullLookupAtom("$stream");
|
||||
AtomSWIStream = Yap_FullLookupAtom("<stream>");
|
||||
AtomVStream = Yap_LookupAtom("stream");
|
||||
AtomStreams = Yap_LookupAtom("streams");
|
||||
AtomStreamOrAlias = Yap_LookupAtom("stream_or_alias");
|
||||
AtomStreamPos = Yap_FullLookupAtom("$stream_position");
|
||||
AtomStreamPosition = Yap_LookupAtom("stream_position");
|
||||
AtomString = Yap_LookupAtom("string");
|
||||
AtomStyleCheck = Yap_LookupAtom("style_check");
|
||||
AtomSTRING = Yap_FullLookupAtom("String");
|
||||
AtomSwi = Yap_LookupAtom("swi");
|
||||
AtomSymbolChar = Yap_LookupAtom("symbol_char");
|
||||
AtomSyntaxError = Yap_LookupAtom("syntax_error");
|
||||
AtomSyntaxErrors = Yap_LookupAtom("syntax_errors");
|
||||
AtomSyntaxErrorHandler = Yap_LookupAtom("syntax_error_handler");
|
||||
AtomSystem = Yap_LookupAtom("system");
|
||||
AtomSystemError = Yap_LookupAtom("SYSTEM_ERROR_INTERNAL");
|
||||
AtomSystemLibraryDir = Yap_LookupAtom("system_library_directory");
|
||||
AtomTerm = Yap_LookupAtom("term");
|
||||
AtomTerms = Yap_LookupAtom("terms");
|
||||
AtomTermExpansion = Yap_LookupAtom("term_expansion");
|
||||
AtomText = Yap_LookupAtom("text");
|
||||
AtomTextStream = Yap_LookupAtom("text_stream");
|
||||
AtomThread = Yap_LookupAtom("thread");
|
||||
AtomThreads = Yap_LookupAtom("threads");
|
||||
AtomThrow = Yap_LookupAtom("throw");
|
||||
AtomTimeOutSpec = Yap_LookupAtom("time_out_spec");
|
||||
AtomTimeoutError = Yap_LookupAtom("timeout_error");
|
||||
AtomTopLevelGoal = Yap_FullLookupAtom("$top_level_goal");
|
||||
AtomTopThreadGoal = Yap_FullLookupAtom("$top_thread_goal");
|
||||
AtomTraceMetaCall = Yap_FullLookupAtom("$trace_meta_call");
|
||||
AtomTrail = Yap_LookupAtom("trail");
|
||||
AtomTrue = Yap_LookupAtom("true");
|
||||
AtomTty = Yap_LookupAtom("tty");
|
||||
AtomTtys = Yap_LookupAtom("ttys");
|
||||
AtomTxt = Yap_LookupAtom("txt");
|
||||
AtomTypeError = Yap_LookupAtom("type_error");
|
||||
AtomUndefined = Yap_LookupAtom("undefined");
|
||||
AtomUndefp = Yap_FullLookupAtom("$undefp");
|
||||
AtomUnderflow = Yap_LookupAtom("underflow");
|
||||
AtomUnificationStack = Yap_LookupAtom("unification_stack");
|
||||
AtomUnique = Yap_LookupAtom("unique");
|
||||
AtomUnsignedByte = Yap_LookupAtom("unsigned_byte");
|
||||
AtomUnsignedChar = Yap_LookupAtom("unsigned_char");
|
||||
AtomUser = Yap_LookupAtom("user");
|
||||
AtomUserErr = Yap_LookupAtom("user_error");
|
||||
AtomUserIn = Yap_LookupAtom("user_input");
|
||||
AtomUserOut = Yap_LookupAtom("user_output");
|
||||
AtomDollarVar = Yap_LookupAtom("$VAR");
|
||||
AtomVBar = Yap_LookupAtom("|");
|
||||
AtomVarBranches = Yap_LookupAtom("var_branches");
|
||||
AtomVariableNames = Yap_LookupAtom("variable_names");
|
||||
AtomHiddenVar = Yap_FullLookupAtom("$V");
|
||||
AtomVariable = Yap_LookupAtom("variable");
|
||||
AtomVerbose = Yap_LookupAtom("verbose");
|
||||
AtomVerboseFileSearch = Yap_LookupAtom("verbose_file_search");
|
||||
AtomVersionNumber = Yap_FullLookupAtom("$version_name");
|
||||
AtomVeryVerbose = Yap_LookupAtom("very_verbose");
|
||||
AtomWakeUpGoal = Yap_FullLookupAtom("$wake_up_goal");
|
||||
AtomWarning = Yap_LookupAtom("warning");
|
||||
AtomWhen = Yap_FullLookupAtom("$when");
|
||||
AtomWrite = Yap_LookupAtom("write");
|
||||
AtomXml = Yap_LookupAtom("xml");
|
||||
AtomYapHacks = Yap_LookupAtom("yap_hacks");
|
||||
AtomZeroDivisor = Yap_LookupAtom("zero_divisor");
|
||||
FunctorAfInet = Yap_MkFunctor(AtomAfInet,2);
|
||||
FunctorAfLocal = Yap_MkFunctor(AtomAfLocal,1);
|
||||
FunctorAfUnix = Yap_MkFunctor(AtomAfUnix,1);
|
||||
FunctorAltNot = Yap_MkFunctor(AtomAltNot,1);
|
||||
FunctorArg = Yap_MkFunctor(AtomArg,3);
|
||||
FunctorArrayEntry = Yap_MkFunctor(AtomArrayAccess,3);
|
||||
FunctorArrow = Yap_MkFunctor(AtomArrow,2);
|
||||
FunctorDoubleArrow = Yap_MkFunctor(AtomDoubleArrow,2);
|
||||
FunctorAssert1 = Yap_MkFunctor(AtomAssert,1);
|
||||
FunctorAssert = Yap_MkFunctor(AtomAssert,2);
|
||||
FunctorAtFoundOne = Yap_MkFunctor(AtomFoundVar,2);
|
||||
FunctorAtom = Yap_MkFunctor(AtomAtom,1);
|
||||
FunctorAtt1 = Yap_MkFunctor(AtomAtt1,3);
|
||||
FunctorAttGoal = Yap_MkFunctor(AtomAttDo,2);
|
||||
FunctorBraces = Yap_MkFunctor(AtomBraces,1);
|
||||
FunctorCall = Yap_MkFunctor(AtomCall,1);
|
||||
FunctorCatch = Yap_MkFunctor(AtomCatch,3);
|
||||
FunctorChangeModule = Yap_MkFunctor(AtomChangeModule,1);
|
||||
FunctorChars = Yap_MkFunctor(AtomChars,2);
|
||||
FunctorChars1 = Yap_MkFunctor(AtomChars,1);
|
||||
FunctorCleanCall = Yap_MkFunctor(AtomCleanCall,2);
|
||||
FunctorClist = Yap_MkFunctor(AtomWhen,4);
|
||||
FunctorCodes = Yap_MkFunctor(AtomCodes,2);
|
||||
FunctorCodes1 = Yap_MkFunctor(AtomCodes,1);
|
||||
FunctorComma = Yap_MkFunctor(AtomComma,2);
|
||||
FunctorCommentHook = Yap_MkFunctor(AtomCommentHook,3);
|
||||
FunctorContext2 = Yap_MkFunctor(AtomContext,2);
|
||||
FunctorConsistencyError = Yap_MkFunctor(AtomConsistencyError,1);
|
||||
FunctorCreep = Yap_MkFunctor(AtomCreep,1);
|
||||
FunctorCsult = Yap_MkFunctor(AtomCsult,2);
|
||||
FunctorCurrentModule = Yap_MkFunctor(AtomCurrentModule,1);
|
||||
FunctorCutBy = Yap_MkFunctor(AtomCutBy,1);
|
||||
FunctorDBREF = Yap_MkFunctor(AtomDBREF,1);
|
||||
FunctorDiff = Yap_MkFunctor(AtomDiff,2);
|
||||
FunctorDoLogUpdClause = Yap_MkFunctor(AtomDoLogUpdClause,6);
|
||||
FunctorDoLogUpdClause0 = Yap_MkFunctor(AtomDoLogUpdClause0,6);
|
||||
FunctorDoLogUpdClauseErase = Yap_MkFunctor(AtomDoLogUpdClauseErase,6);
|
||||
FunctorDoStaticClause = Yap_MkFunctor(AtomDoStaticClause,5);
|
||||
FunctorDollarVar = Yap_MkFunctor(AtomDollarVar,1);
|
||||
FunctorDomainError = Yap_MkFunctor(AtomDomainError,2);
|
||||
FunctorDot = Yap_MkFunctor(AtomDot,2);
|
||||
FunctorDot10 = Yap_MkFunctor(AtomDot,10);
|
||||
FunctorDot11 = Yap_MkFunctor(AtomDot,11);
|
||||
FunctorDot12 = Yap_MkFunctor(AtomDot,12);
|
||||
FunctorDot2 = Yap_MkFunctor(AtomDot,2);
|
||||
FunctorDot3 = Yap_MkFunctor(AtomDot,3);
|
||||
FunctorDot4 = Yap_MkFunctor(AtomDot,4);
|
||||
FunctorDot5 = Yap_MkFunctor(AtomDot,5);
|
||||
FunctorDot6 = Yap_MkFunctor(AtomDot,6);
|
||||
FunctorDot7 = Yap_MkFunctor(AtomDot,7);
|
||||
FunctorDot8 = Yap_MkFunctor(AtomDot,8);
|
||||
FunctorDot9 = Yap_MkFunctor(AtomDot,9);
|
||||
FunctorDoubleSlash = Yap_MkFunctor(AtomDoubleSlash,2);
|
||||
FunctorEmptySquareBrackets = Yap_MkFunctor(AtomEmptySquareBrackets,2);
|
||||
FunctorEmptyCurlyBrackets = Yap_MkFunctor(AtomEmptyCurlyBrackets,2);
|
||||
FunctorEq = Yap_MkFunctor(AtomEq,2);
|
||||
FunctorError = Yap_MkFunctor(AtomError,2);
|
||||
FunctorEvaluationError = Yap_MkFunctor(AtomEvaluationError,1);
|
||||
FunctorExecute2InMod = Yap_MkFunctor(AtomExecuteWoMod,2);
|
||||
FunctorExecuteInMod = Yap_MkFunctor(AtomExecuteInMod,2);
|
||||
FunctorExecuteWithin = Yap_MkFunctor(AtomExecuteWithin,1);
|
||||
FunctorExistenceError = Yap_MkFunctor(AtomExistenceError,2);
|
||||
FunctorExoClause = Yap_MkFunctor(AtomExoClause,2);
|
||||
FunctorFunctor = Yap_MkFunctor(AtomFunctor,3);
|
||||
FunctorGAtom = Yap_MkFunctor(AtomAtom,1);
|
||||
FunctorGAtomic = Yap_MkFunctor(AtomAtomic,1);
|
||||
FunctorGCompound = Yap_MkFunctor(AtomCompound,1);
|
||||
FunctorGFloat = Yap_MkFunctor(AtomFloat,1);
|
||||
FunctorGFormatAt = Yap_MkFunctor(AtomFormatAt,2);
|
||||
FunctorGInteger = Yap_MkFunctor(AtomInteger,1);
|
||||
FunctorGNumber = Yap_MkFunctor(AtomNumber,1);
|
||||
FunctorGPrimitive = Yap_MkFunctor(AtomPrimitive,1);
|
||||
FunctorGVar = Yap_MkFunctor(AtomGVar,1);
|
||||
FunctorGeneratePredInfo = Yap_MkFunctor(AtomGeneratePredInfo,4);
|
||||
FunctorGoalExpansion2 = Yap_MkFunctor(AtomGoalExpansion,2);
|
||||
FunctorGoalExpansion = Yap_MkFunctor(AtomGoalExpansion,3);
|
||||
FunctorHandleThrow = Yap_MkFunctor(AtomHandleThrow,3);
|
||||
FunctorHat = Yap_MkFunctor(AtomHat,2);
|
||||
FunctorId = Yap_MkFunctor(AtomId,1);
|
||||
FunctorIs = Yap_MkFunctor(AtomIs,2);
|
||||
FunctorLastExecuteWithin = Yap_MkFunctor(AtomLastExecuteWithin,1);
|
||||
FunctorList = Yap_MkFunctor(AtomDot,2);
|
||||
FunctorLOOP = Yap_MkFunctor(AtomLOOP,1);
|
||||
FunctorMegaClause = Yap_MkFunctor(AtomMegaClause,2);
|
||||
FunctorMetaCall = Yap_MkFunctor(AtomMetaCall,4);
|
||||
FunctorMinus = Yap_MkFunctor(AtomMinus,2);
|
||||
FunctorModule = Yap_MkFunctor(AtomColomn,2);
|
||||
FunctorMultiFileClause = Yap_MkFunctor(AtomMfClause,5);
|
||||
FunctorMutable = Yap_MkFunctor(AtomMutableVariable,(sizeof(timed_var)/sizeof(CELL)));
|
||||
FunctorMutex = Yap_MkFunctor(AtomMutex,2);
|
||||
FunctorNotImplemented = Yap_MkFunctor(AtomNotImplemented,2);
|
||||
FunctorNBQueue = Yap_MkFunctor(AtomQueue,4);
|
||||
FunctorNot = Yap_MkFunctor(AtomNot,1);
|
||||
FunctorOr = Yap_MkFunctor(AtomSemic,2);
|
||||
FunctorPermissionError = Yap_MkFunctor(AtomPermissionError,3);
|
||||
FunctorPlus = Yap_MkFunctor(AtomPlus,2);
|
||||
FunctorPortray = Yap_MkFunctor(AtomPortray,1);
|
||||
FunctorPrintMessage = Yap_MkFunctor(AtomPrintMessage,2);
|
||||
FunctorProcedure = Yap_MkFunctor(AtomProcedure,5);
|
||||
FunctorPrologConstraint = Yap_MkFunctor(AtomProlog,2);
|
||||
FunctorQuery = Yap_MkFunctor(AtomQuery,1);
|
||||
FunctorRecordedWithKey = Yap_MkFunctor(AtomRecordedWithKey,6);
|
||||
FunctorRDiv = Yap_MkFunctor(AtomRDiv,2);
|
||||
FunctorRedoFreeze = Yap_MkFunctor(AtomRedoFreeze,3);
|
||||
FunctorRepresentationError = Yap_MkFunctor(AtomRepresentationError,1);
|
||||
FunctorResourceError = Yap_MkFunctor(AtomResourceError,1);
|
||||
FunctorRestoreRegs = Yap_MkFunctor(AtomRestoreRegs,2);
|
||||
FunctorRestoreRegs1 = Yap_MkFunctor(AtomRestoreRegs,1);
|
||||
FunctorSafe = Yap_MkFunctor(AtomSafe,1);
|
||||
FunctorSafeCallCleanup = Yap_MkFunctor(AtomSafeCallCleanup,4);
|
||||
FunctorSame = Yap_MkFunctor(AtomSame,2);
|
||||
FunctorSlash = Yap_MkFunctor(AtomSlash,2);
|
||||
FunctorStaticClause = Yap_MkFunctor(AtomStaticClause,2);
|
||||
FunctorStream = Yap_MkFunctor(AtomStream,1);
|
||||
FunctorStreamEOS = Yap_MkFunctor(AtomEndOfStream,1);
|
||||
FunctorStreamPos = Yap_MkFunctor(AtomStreamPos,4);
|
||||
FunctorString1 = Yap_MkFunctor(AtomString,1);
|
||||
FunctorStyleCheck = Yap_MkFunctor(AtomStyleCheck,4);
|
||||
FunctorSyntaxError = Yap_MkFunctor(AtomSyntaxError,4);
|
||||
FunctorShortSyntaxError = Yap_MkFunctor(AtomSyntaxError,1);
|
||||
FunctorTermExpansion = Yap_MkFunctor(AtomTermExpansion,2);
|
||||
FunctorThreadRun = Yap_MkFunctor(AtomTopThreadGoal,2);
|
||||
FunctorThrow = Yap_MkFunctor(AtomThrow,1);
|
||||
FunctorTimeoutError = Yap_MkFunctor(AtomTimeoutError,2);
|
||||
FunctorTraceMetaCall = Yap_MkFunctor(AtomTraceMetaCall,3);
|
||||
FunctorTypeError = Yap_MkFunctor(AtomTypeError,2);
|
||||
FunctorUMinus = Yap_MkFunctor(AtomMinus,1);
|
||||
FunctorUPlus = Yap_MkFunctor(AtomPlus,1);
|
||||
FunctorVBar = Yap_MkFunctor(AtomVBar,2);
|
||||
FunctorHiddenVar = Yap_MkFunctor(AtomHiddenVar,1);
|
977
H/iswiatoms.h
Normal file
977
H/iswiatoms.h
Normal file
@ -0,0 +1,977 @@
|
||||
|
||||
/* This file, iswiatoms.h, was generated automatically
|
||||
by calling "yap -L misc/buildswiatoms"
|
||||
and is based on SWIATOMS, copied from the SWI-Prolog distribution
|
||||
please do not update */
|
||||
|
||||
YAP_AtomToInt(Yap_LookupAtom("abort"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$aborted"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("abs"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("access"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("access_level"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("acos"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("acosh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("acyclic_term"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("add_import"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("address"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("agc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("agc_gained"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("agc_margin"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("agc_time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("alias"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("allow_variable_name_as_functor"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("alnum"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("alpha"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("alternative"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("/\\"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("_"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("append"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=:="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=\\="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("argument"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("argumentlimit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("arity"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("as"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ascii"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("asin"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("asinh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("assert"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("asserta"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("at"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=@="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("at_exit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("@>"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("@>="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\=@="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("@<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("@=<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atan"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atan2"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atanh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atom"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atom_garbage_collection"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atomic"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("atoms"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("att"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("attributes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("attvar"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("autoload"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("back_quotes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("backtrace"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("`"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("|"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("base"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("begin"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("binary"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("binary_stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("bind"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\/"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("blobs"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("bof"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("bom"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("bool"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("boolean"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("brace_term_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("brace_terms"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("break"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("break_level"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("btree"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("buffer"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("buffer_size"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("built_in_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("busy"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("byte"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("c_stack"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("call"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("callable"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("canceled"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("case_sensitive_file_names"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("catch"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("category"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ceil"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ceiling"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("char_type"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("character"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("character_code"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("character_escapes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("chars"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("chdir"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("chmod"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("choice"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("class"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("clause"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("clause_reference"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("clauses"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("close"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("close_on_abort"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("close_on_exec"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("close_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cm"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cntrl"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("co"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("codes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("collected"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("collections"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(":"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(":="));
|
||||
YAP_AtomToInt(Yap_LookupAtom(","));
|
||||
YAP_AtomToInt(Yap_LookupAtom("comments"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("compound"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("context"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("context_module"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("continue"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("copysign"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("core"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("core_left"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cos"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cosh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cputime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("create"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("csym"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("csymf"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cumulative"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("{}"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("current"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("current_input"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("current_locale"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("current_output"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("!"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cut_call"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cut_exit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cut_parent"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cut"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cycles"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("cyclic_term"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$and"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("date"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("db_reference"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$c_call_prolog"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("<meta-call>"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$call_cleanup"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$catch"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$cut"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dde_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dde_handle"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("deadline"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debug"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debug_on_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debug_topic"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debugger_print_options"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debugger_show_context"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("debugging"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dec10"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("decimal_point"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("default"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("defined"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("delete"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("depth_limit_exceeded"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("destroy"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("detached"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("detect"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("development"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$exit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$foreign_registered"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$garbage_collect"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("digit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("directory"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("discontiguous"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("div"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("/"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$load"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$message_queue"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$mutex"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("domain_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dos"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("."));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dot_lists"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dots"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("double_quotes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("**"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$parse_quasi_quotations"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$profile_node"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$quasi_quotation"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$query_loop"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$recover_and_rethrow"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$thread_init"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$throw"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$toplevel"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("duplicate_key"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$VAR$"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$variable_names"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$wakeup"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("dynamic"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("e"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("encoding"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("end"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("end_of_file"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("end_of_line"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("end_of_stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("environment"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("eof"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("eof_action"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("eof_code"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("epsilon"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("equal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("erase"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("erased"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("erf"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("erfc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("eval"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("evaluable"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("evaluation_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exception"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exclusive"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("execute"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exist"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("existence_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exited"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exp"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("export"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exported"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("exports"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("expression"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("external_exception"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("externals"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fact"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("factor"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fail"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("failure_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("false"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("feature"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("file"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("file_name"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("file_name_variables"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("file_no"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("flag"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("flag_value"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float_format"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float_fractional_part"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float_integer_part"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float_overflow"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("float_underflow"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("floor"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("force"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("foreign"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$foreign_function"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("foreign_return_value"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fork"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("frame"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("frame_attribute"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("frame_finished"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("frame_reference"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("free_of_attvar"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("freeze"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("full"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fullstop"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("functor_name"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("functors"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fx"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("fy"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("<garbage_collected>"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("garbage_collection"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("gc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("gcd"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("gctime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("//"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("getcwd"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("global"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("global_shifts"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("global_stack"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("globallimit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("globalused"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("goal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("goal_expansion"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("-->"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("graph"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ground"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("grouping"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("gvar"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("halt"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("has_alternatives"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("hash"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("hashed"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("^"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("heap_gc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("heapused"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("help"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("hidden"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("hide_childs"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("history_depth"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("->"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ignore"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ignore_ops"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("import_into"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("import_type"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("imported"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("imported_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("index"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("indexed"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("inf"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("inferences"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("infinite"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("informational"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("init_file"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("initialization"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("input"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("inserted_char"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("instantiation_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("int"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("int64_t"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("int_overflow"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("integer"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("integer_expression"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("interrupt"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("io_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("io_mode"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("ioctl"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("is"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("iso"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("iso_latin_1"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$VAR"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("join"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("jump"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("kernel"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("key"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("key_value_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(">"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(">="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("level"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("lgamma"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("li"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("library"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("limit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("line"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("line_count"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("line_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("list"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("list_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("listing"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("local"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("local_shifts"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("local_stack"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("locale"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("locale_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("locallimit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("localused"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("lock"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("locked"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("log"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("log10"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("long"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("loose"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("low"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("lower"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("lsb"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("<<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("main"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("map"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("map_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(">:<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(":<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mark"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("matches"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_arity"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_dde_handles"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_depth"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_files"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_frame_size"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_length"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_path_length"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_size"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("max_variable_length"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("memory"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("message"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("message_lines"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("message_queue"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("message_queue_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("meta_argument"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("meta_argument_specifier"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("meta_atom"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("meta_predicate"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("min"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("min_free"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("-"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mismatched_char"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mod"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mode"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("modify"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("module"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("module_class"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("module_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("module_transparent"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("modules"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("msb"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("multifile"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mutex"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mutex_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("mutex_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("natural"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("newline"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("next_argument"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("[]"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("nl"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("nlink"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("no_memory"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("nodebug"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("non_empty_list"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("non_terminal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("none"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("nonvar"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("noprofile"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("normal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("not"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("not_implemented"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("not_less_than_one"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("not_less_than_zero"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\+"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("\\=="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("not_unique"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("number"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("number_of_clauses"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("number_of_rules"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("numbervar_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("numbervars"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("occurs_check"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("octet"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("off"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("on"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("open"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("operator"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("operator_priority"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("operator_specifier"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("optimise"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("or"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("order"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("output"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("owner"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("pair"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("paren"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("parent"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("parent_goal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("partial"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("past"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("past_end_of_stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("pattern"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("pc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("peek"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("period"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("permission_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("pi"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("pipe"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("plain"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("+"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("popcount"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("portray"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("portray_goal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("posix"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("powm"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("predicate_indicator"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("predicates"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("print"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("print_message"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("priority"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("private_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("process_comment"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("process_cputime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("profile_mode"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("profile_no_cpu_time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("profile_node"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("program"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("program_counter"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_atom_start"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_flag"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_flag_access"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_flag_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_flag_type"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_identifier_continue"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_symbol"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_var_start"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("|:"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("protocol"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(":-"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("public"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("punct"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quasi_quotation"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quasi_quotation_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quasi_quotation_syntax"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quasi_quotations"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("?-"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("?"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("queue_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quiet"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quote"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("quoted"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("radix"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("random"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("random_float"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("random_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("rational"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("rationalize"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("rdiv"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("read"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("read_only"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("read_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("read_write"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("readline"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("real_time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("receiver"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("record"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("record_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("redefine"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("redo"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("redo_in_skip"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("references"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("rem"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("rename"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("repeat"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("report_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("reposition"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("representation_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("representation_errors"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("reset"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("resource_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("resource_handle"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("retry"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("round"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(">>"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("running"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("runtime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("save_class"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("save_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("scripting"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("see"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("seed"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("seek_method"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("select"));
|
||||
YAP_AtomToInt(Yap_LookupAtom(";"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("separated"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("set"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("set_end_of_stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("setup_call_catcher_cleanup"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("shared"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("shared_object"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("shared_object_handle"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("shell"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("shift_time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("sign"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("signal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("signal_handler"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("silent"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("sin"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("singletons"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("sinh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("size"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("size_t"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("skip"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("skipped"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=<"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("*->"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("source_sink"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("space"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("spacing"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("spare"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("spy"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("sqrt"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stack"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stack_parameter"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stack_shifts"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stacks"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stand_alone"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("standard"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("*"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("start"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stat"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("state"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("static_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("statistics"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("status"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stderr"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream_or_alias"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream_pair"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$stream_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("stream_type_check"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("string"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("string_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("strong"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("subterm_positions"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("suffix"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("symbol_char"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("syntax_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("syntax_errors"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("system"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("SYSTEM_ERROR_INTERNAL"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("system_init_file"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("system_thread_id"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("system_time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("tan"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("tanh"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("temporary_files"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("term"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("term_expansion"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("term_position"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("terminal"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("terminal_capability"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("test"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("text"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("text_stream"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thousands_sep"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_cputime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_get_message_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_initialization"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_local"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_local_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("thread_property"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("threads"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("threads_created"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("throw"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("~"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("time"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("time_stamp"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("timeout"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("timeout_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("timezone"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("to_lower"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("to_upper"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("top"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("top_level"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("toplevel"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_any"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_call"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_exit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_fail"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_gc"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trace_redo"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("prolog_trace_interception"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("tracing"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trail"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trail_shifts"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("traillimit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("trailused"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("transparent"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("transposed_char"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("transposed_word"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("true"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("truncate"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("tty"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("tty_control"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("type"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("type_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("undefined"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("undefined_global_variable"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("$undefined_procedure"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unicode_be"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unicode_le"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unify"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("?="));
|
||||
YAP_AtomToInt(Yap_LookupAtom("uninstantiation_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unique"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("=.."));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unknown"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unlimited"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unload"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unlock"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("unlocked"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("update"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("upper"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("user"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("user_error"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("user_flags"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("user_input"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("user_output"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("UTC"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("utf8"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("v"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("var"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("variable"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("variable_names"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("variables"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("very_deep"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("vmi"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("volatile"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("wait"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("wakeup"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("walltime"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("warning"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("wchar_t"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("weak"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("when_condition"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("white"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("write"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("write_attributes"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("write_option"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xdigit"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xf"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xfx"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xfy"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xml"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("xor"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("@"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("yf"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("yfx"));
|
||||
YAP_AtomToInt(Yap_LookupAtom("zero_divisor"));
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_abs),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_access),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_acos),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_acosh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_alias),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_and),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ar_equals),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ar_not_equal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_asin),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_asinh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_assert),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_asserta),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_atan),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_atan),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_atanh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_atan2),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_atom),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_att),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_backslash),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_bar),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_bitor),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_bom),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_brace_term_position),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_break),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_break),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_break),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_buffer),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_buffer_size),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_busy),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_call),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_catch),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ceil),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ceiling),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_chars),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_chars),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_class),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_clause),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_close_on_abort),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_close_on_exec),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_codes),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_codes),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_colon),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_comma),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_context),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_copysign),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_cos),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_cosh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_cputime),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_curl),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_cut_call),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_cut_exit),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dand),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_date),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_date),9);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dc_call_prolog),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dcall),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dcut),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dde_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_debugging),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_decimal_point),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_detached),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dexit),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dforeign_registered),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dgarbage_collect),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_div),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_gdiv),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_divide),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dmessage_queue),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dmutex),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_domain_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dot),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_doublestar),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dparse_quasi_quotations),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dprof_node),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dquasi_quotation),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_drecover_and_rethrow),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dstream),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dthread_init),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dthrow),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dtime),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_duplicate_key),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dvard),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_dwakeup),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_e),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_encoding),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_end_of_stream),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_eof_action),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_epsilon),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_equals),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_erased),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_erf),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_erfc),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_eval),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_evaluation_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_exception),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_exception),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_existence_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_existence_error),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_exited),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_exp),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_exports),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_external_exception),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_fail),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_failure_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_file),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_file),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_file_name),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_file_no),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_float),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_float_fractional_part),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_float_integer_part),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_floor),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_foreign_function),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_frame),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_frame_finished),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_gcd),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_goal_expansion),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ground),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_grouping),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_hat),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_ifthen),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_import_into),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_input),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_input),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_integer),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_interrupt),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_io_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_is),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_isovar),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_key_value_position),7);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_larger),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_larger_equal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_lgamma),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_line_count),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_list_position),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_listing),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_locale),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_locked),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_log),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_log10),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_lsb),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_lshift),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_map_position),5);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_max),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_max_size),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_message_lines),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_min),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_minus),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_minus),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_mod),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_mode),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_msb),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_newline),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_nlink),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_nonvar),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_not_implemented),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_not_provable),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_not_strict_equal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_occurs_check),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_or),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_output),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_permission_error),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_pi),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_pipe),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_plus),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_plus),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_popcount),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_portray),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_position),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_powm),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_print),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_print_message),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_priority),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_procedure),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_prove),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_prove),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_punct),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_quasi_quotation),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_quasi_quotation_position),5);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_random),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_random_float),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_rational),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_rationalize),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_rdiv),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_redo),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_rem),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_repeat),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_reposition),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_representation_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_representation_errors),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_resource_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_retry),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_round),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_rshift),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_semicolon),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_setup_call_catcher_cleanup),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_shared_object),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_shell),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_sign),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_signal),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_signal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_sin),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_singletons),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_sinh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_size),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_smaller),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_smaller_equal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_softcut),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_spy),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_sqrt),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_star),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_status),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_stream),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_stream_position),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_strict_equal),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_string),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_string),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_string_position),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_syntax_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_syntax_error),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_tan),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_tanh),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_term_expansion),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_term_position),5);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_thousands_sep),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_timeout),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_timeout_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_trace),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_traceinterc),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_tracing),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_true),0);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_truncate),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_tty),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_type),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_type_error),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_undefinterc),4);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_unify_determined),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_uninstantiation_error),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_var),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_wakeup),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_warning),3);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_xor),2);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_xpceref),1);
|
||||
SWI_Functors[j++] = Yap_MkFunctor(SWIAtomToAtom(ATOM_xpceref),2);
|
319
H/locals.h
Normal file
319
H/locals.h
Normal file
@ -0,0 +1,319 @@
|
||||
// Stuff that must be considered local to a thread or worker
|
||||
// START_WORKER_LOCL
|
||||
|
||||
// Streams
|
||||
LOCL(struct AliasDescS *, FileAliases, Yap_InitStandardAliases())
|
||||
LOC(int, NOfFileAliases)
|
||||
LOCL(int, SzOfFileAliases, void)
|
||||
|
||||
LOCL(int, c_input_stream, 0)
|
||||
LOCL(int, c_output_stream, 1)
|
||||
LOCL(int, c_error_stream, 2)
|
||||
|
||||
LOCL(bool, sockets_io, false)
|
||||
|
||||
LOCL(bool, within_print_message, false)
|
||||
|
||||
//
|
||||
// Used by the prompts to check if they are after a newline, and then a
|
||||
// prompt should be output, or if we are in the middle of a line.
|
||||
//
|
||||
LOCL(bool, newline, true)
|
||||
|
||||
LOCL(Atom, AtPrompt, AtomNil)
|
||||
LOCN(char, MAX_PROMPT + 1, Prompt)
|
||||
|
||||
LOCL(encoding_t, encoding, Yap_DefaultEncoding())
|
||||
LOCL(bool, quasi_quotations, false)
|
||||
LOCL(UInt, default_priority, 1200)
|
||||
|
||||
LOCL(bool, eot_before_eof, false)
|
||||
LOCL(UInt, max_depth, 0)
|
||||
LOCL(UInt, max_list, 0)
|
||||
LOCL(UInt, max_write_args, 0)
|
||||
|
||||
// Restore info
|
||||
LOCL(CELL *, OldASP, NULL)
|
||||
LOCL(CELL *, OldLCL0, NULL)
|
||||
LOCL(tr_fr_ptr, OldTR, NULL)
|
||||
LOCL(CELL *, OldGlobalBase, NULL)
|
||||
LOCL(CELL *, OldH, NULL)
|
||||
LOCL(CELL *, OldH0, NULL)
|
||||
LOCL(ADDR, OldTrailBase, NULL)
|
||||
LOCL(ADDR, OldTrailTop, NULL)
|
||||
LOCL(ADDR, OldHeapBase, NULL)
|
||||
LOCL(ADDR, OldHeapTop, NULL)
|
||||
LOCL(Int, ClDiff, 0L)
|
||||
LOCL(Int, GDiff, 0L)
|
||||
LOCL(Int, HDiff, 0L)
|
||||
LOCL(Int, GDiff0, 0L)
|
||||
LOCL(CELL *, GSplit, NULL)
|
||||
LOCL(Int, LDiff, 0L)
|
||||
LOCL(Int, TrDiff, 0L)
|
||||
LOCL(Int, XDiff, 0L)
|
||||
LOCL(Int, DelayDiff, 0L)
|
||||
LOCL(Int, BaseDiff, 0L)
|
||||
|
||||
// Reduction counters
|
||||
LOCL(YAP_ULONG_LONG, ReductionsCounter, 0L)
|
||||
LOCL(YAP_ULONG_LONG, PredEntriesCounter, 0L)
|
||||
LOCL(YAP_ULONG_LONG, RetriesCounter, 0L)
|
||||
LOCL(int, ReductionsCounterOn, 0L)
|
||||
LOCL(int, PredEntriesCounterOn, 0L)
|
||||
LOCL(int, RetriesCounterOn, 0L)
|
||||
|
||||
// support for consulting files
|
||||
/* current consult stack */
|
||||
LOCL(union CONSULT_OBJ *, ConsultSp, NULL)
|
||||
/* current maximum number of cells in consult stack */
|
||||
LOC(UInt, ConsultCapacity)
|
||||
/* top of consult stack */
|
||||
LOCL(union CONSULT_OBJ *, ConsultBase, NULL)
|
||||
/* low-water mark for consult */
|
||||
LOCL(union CONSULT_OBJ *, ConsultLow, NULL)
|
||||
LOCL(Term, VarNames, ((Term)0))
|
||||
LOCL(Atom, SourceFileName, NULL)
|
||||
LOCL(UInt, SourceFileLineno, 0)
|
||||
|
||||
// global variables
|
||||
LOCLR(Term, GlobalArena, 0L, TermToGlobalOrAtomAdjust() )
|
||||
LOCL(UInt, GlobalArenaOverflows, 0L)
|
||||
LOCL(Int, ArenaOverflows, 0L)
|
||||
LOCL(Int, DepthArenas, 0)
|
||||
|
||||
LOCL(int, ArithError, FALSE)
|
||||
LOCL(struct pred_entry *, LastAssertedPred, NULL)
|
||||
LOCL(struct pred_entry *, TmpPred, NULL)
|
||||
LOCL(char *, ScannerStack, NULL)
|
||||
LOCL(struct scanner_extra_alloc *, ScannerExtraBlocks, NULL)
|
||||
LOCLR(struct DB_TERM *, BallTerm, NULL, RestoreBallTerm(wid))
|
||||
LOCL(UInt, MaxActiveSignals, 64L)
|
||||
LOCL(uint64_t, Signals, 0L)
|
||||
LOCL(UInt, IPredArity, 0L)
|
||||
LOCL(yamop *, ProfEnd, NULL)
|
||||
LOCL(int, UncaughtThrow, FALSE)
|
||||
LOCL(int, DoingUndefp, FALSE)
|
||||
LOCL(Int, StartCharCount, 0L)
|
||||
LOCL(Int, StartLineCount, 0L)
|
||||
LOCL(Int, StartLinePos, 0L)
|
||||
LOCL(scratch_block, ScratchPad, InitScratchPad(wid))
|
||||
#ifdef COROUTINING
|
||||
LOCLR(Term, WokenGoals, 0L, TermToGlobalAdjust() )
|
||||
LOCLR(Term, AttsMutableList, 0L, TermToGlobalAdjust() )
|
||||
#endif
|
||||
|
||||
// gc_stuff
|
||||
LOCLR(Term, GcGeneration, 0L, TermToGlobalAdjust() )
|
||||
LOCLR(Term, GcPhase, 0L, TermToGlobalAdjust() )
|
||||
LOCL(UInt, GcCurrentPhase, 0L)
|
||||
LOCL(UInt, GcCalls, 0L)
|
||||
LOCL(Int, TotGcTime, 0L)
|
||||
LOCL(YAP_ULONG_LONG, TotGcRecovered, 0L)
|
||||
LOCL(Int, LastGcTime, 0L)
|
||||
LOCL(Int, LastSSTime, 0L)
|
||||
LOCL(CELL *, OpenArray, NULL)
|
||||
|
||||
/* in a single gc */
|
||||
LOCL(Int, total_marked, 0L)
|
||||
LOCL(Int, total_oldies, 0L)
|
||||
LOCL(struct choicept *, current_B, NULL)
|
||||
LOCL(CELL *, prev_HB, NULL)
|
||||
LOCL(CELL *, HGEN, NULL)
|
||||
LOCL(CELL **, iptop, NULL)
|
||||
|
||||
#if defined(GC_NO_TAGS)
|
||||
LOCL(char *, bp, NULL)
|
||||
#endif
|
||||
LOCL(tr_fr_ptr, sTR, NULL)
|
||||
LOCL(tr_fr_ptr, sTR0, NULL)
|
||||
LOCL(tr_fr_ptr, new_TR, NULL)
|
||||
LOCL(struct gc_mark_continuation *, cont_top0, NULL)
|
||||
LOCL(struct gc_mark_continuation *, cont_top, NULL)
|
||||
LOCL(int, discard_trail_entries, 0)
|
||||
LOCN(gc_ma_hash_entry, GC_MAVARS_HASH_SIZE, gc_ma_hash_table)
|
||||
LOCL(gc_ma_hash_entry *, gc_ma_h_top, NULL)
|
||||
LOCL(gc_ma_hash_entry *, gc_ma_h_list, NULL)
|
||||
LOCL(UInt, gc_timestamp, 0L)
|
||||
LOCL(ADDR, db_vec, NULL)
|
||||
LOCL(ADDR, db_vec0, NULL)
|
||||
LOCL(struct RB_red_blk_node *, db_root, NULL)
|
||||
LOCL(struct RB_red_blk_node *, db_nil, NULL)
|
||||
|
||||
LOC(sigjmp_buf, gc_restore)
|
||||
LOC(CELL *, extra_gc_cells)
|
||||
LOC(CELL *, extra_gc_cells_base)
|
||||
LOC(CELL *, extra_gc_cells_top)
|
||||
LOCN(UInt, 256, extra_gc_cells_size)
|
||||
LOCLR(struct array_entry *, DynamicArrays, NULL, PtoArrayEAdjust)
|
||||
LOCLR(struct static_array_entry *, StaticArrays, NULL, PtoArraySAdjust)
|
||||
LOCLR(struct global_entry *, GlobalVariables, NULL, PtoGlobalEAdjust)
|
||||
LOCL(int, AllowRestart, FALSE)
|
||||
|
||||
// Thread Local Area for Fast Storage of Intermediate Compiled Code
|
||||
LOCL(struct mem_blk *, CMemFirstBlock, NULL)
|
||||
LOCL(UInt, CMemFirstBlockSz, 0L)
|
||||
|
||||
// Variable used by the compiler to store number of permanent vars in a clause
|
||||
LOCL(int, nperm, 0L)
|
||||
|
||||
// Thread Local Area for Labels
|
||||
LOCL(Int *, LabelFirstArray, NULL)
|
||||
LOCL(UInt, LabelFirstArraySz, 0L)
|
||||
|
||||
// Thread Local Area for SWI-Prolog emulation routines.
|
||||
// struct PL_local_data*, PL_local_data_p, Yap_InitThreadIO(wid)
|
||||
|
||||
#ifdef THREADS
|
||||
LOCL(struct thandle, ThreadHandle, InitThreadHandle(wid))
|
||||
#endif /* THREADS */
|
||||
|
||||
#if defined(YAPOR) || defined(TABLING)
|
||||
LOCL(struct local_optyap_data, optyap_data, Yap_init_local_optyap_data(wid))
|
||||
LOCL(UInt, TabMode, 0L)
|
||||
#endif /* YAPOR || TABLING */
|
||||
|
||||
LOCL(int, InterruptsDisabled, FALSE)
|
||||
|
||||
LOCL(struct open_query_struct *, execution, NULL)
|
||||
|
||||
#if LOW_LEVEL_TRACER
|
||||
LOCL(Int, total_choicepoints, 0)
|
||||
#endif
|
||||
|
||||
LOCL(int, consult_level, 0)
|
||||
|
||||
// Variables related to memory allocation
|
||||
LOC(ADDR, LocalBase)
|
||||
LOC(ADDR, GlobalBase)
|
||||
LOC(ADDR, TrailBase)
|
||||
LOC(ADDR, TrailTop)
|
||||
LOC(char *, ErrorMessage)
|
||||
LOC(Term, Error_Term)
|
||||
LOC(yap_error_number, Error_TYPE)
|
||||
LOC(const char *, Error_File)
|
||||
LOC(const char *, Error_Function)
|
||||
LOC(int, Error_Lineno)
|
||||
LOC(size_t, Error_Size)
|
||||
LOCN(char, MAX_ERROR_MSG_SIZE, ErrorSay)
|
||||
LOC(jmp_buf, IOBotch)
|
||||
LOC(TokEntry *, tokptr)
|
||||
LOC(TokEntry *, toktide)
|
||||
LOC(VarEntry *, VarTable)
|
||||
LOC(VarEntry *, AnonVarTable)
|
||||
LOC(Term, Comments)
|
||||
LOC(CELL *, CommentsTail)
|
||||
LOC(CELL *, CommentsNextChar)
|
||||
LOC(wchar_t *, CommentsBuff)
|
||||
LOC(size_t, CommentsBuffPos)
|
||||
LOC(size_t, CommentsBuffLim)
|
||||
LOC(sigjmp_buf, RestartEnv)
|
||||
LOCN(char, YAP_FILENAME_MAX, FileNameBuf)
|
||||
LOCN(char, YAP_FILENAME_MAX, FileNameBuf2)
|
||||
|
||||
// Prolog State
|
||||
LOCL(UInt, BreakLevel, 0)
|
||||
LOCL(Int, PrologMode, BootMode)
|
||||
LOCL(int, CritLocks, 0)
|
||||
|
||||
// Prolog execution and state flags
|
||||
LOC(union flagTerm *, Flags)
|
||||
LOC(UInt, flagCount)
|
||||
|
||||
// analyst.c
|
||||
/* used to find out how many instructions of each kind are executed */
|
||||
#ifdef ANALYST
|
||||
LOC(YAP_ULONG_LONG, opcount[_std_top + 1])
|
||||
LOC(YAP_ULONG_LONG, 2opcount [_std_top + 1][_std_top + 1])
|
||||
#endif /* ANALYST */
|
||||
|
||||
// dbase.c
|
||||
LOC(struct db_globs *, s_dbg)
|
||||
|
||||
// eval.c
|
||||
LOCL(yap_error_number, matherror, YAP_NO_ERROR)
|
||||
LOCL(Term, mathtt, NULL)
|
||||
LOCL(char *, mathstring, NULL)
|
||||
LOCL(yap_error_number, CurrentError, YAP_NO_ERROR)
|
||||
|
||||
// grow.c
|
||||
LOCL(int, heap_overflows, 0)
|
||||
LOCL(Int, total_heap_overflow_time, 0)
|
||||
LOCL(int, stack_overflows, 0)
|
||||
LOCL(Int, total_stack_overflow_time, 0)
|
||||
LOCL(int, delay_overflows, 0)
|
||||
LOCL(Int, total_delay_overflow_time, 0)
|
||||
LOCL(int, trail_overflows, 0)
|
||||
LOCL(Int, total_trail_overflow_time, 0)
|
||||
LOCL(int, atom_table_overflows, 0)
|
||||
LOCL(Int, total_atom_table_overflow_time, 0)
|
||||
|
||||
// load_dyld
|
||||
#ifdef LOAD_DYLD
|
||||
LOCL(int, dl_errno, 0)
|
||||
#endif
|
||||
|
||||
// tracer.c
|
||||
#ifdef LOW_LEVEL_TRACER
|
||||
LOCL(int, do_trace_primitives, TRUE)
|
||||
#endif
|
||||
|
||||
// quick loader
|
||||
LOCL(struct export_atom_hash_entry_struct *, ExportAtomHashChain, NULL)
|
||||
LOCL(UInt, ExportAtomHashTableSize, 0)
|
||||
LOCL(UInt, ExportAtomHashTableNum, 0)
|
||||
LOCL(struct export_functor_hash_entry_struct *, ExportFunctorHashChain, NULL)
|
||||
LOCL(UInt, ExportFunctorHashTableSize, 0)
|
||||
LOCL(UInt, ExportFunctorHashTableNum, 0)
|
||||
LOCL(struct export_pred_entry_hash_entry_struct *, ExportPredEntryHashChain,
|
||||
NULL)
|
||||
LOCL(UInt, ExportPredEntryHashTableSize, 0)
|
||||
LOCL(UInt, ExportPredEntryHashTableNum, 0)
|
||||
LOCL(struct export_dbref_hash_entry_struct *, ExportDBRefHashChain, NULL)
|
||||
LOCL(UInt, ExportDBRefHashTableSize, 0)
|
||||
LOCL(UInt, ExportDBRefHashTableNum, 0)
|
||||
LOCL(struct import_atom_hash_entry_struct **, ImportAtomHashChain, NULL)
|
||||
LOCL(UInt, ImportAtomHashTableSize, 0)
|
||||
LOCL(UInt, ImportAtomHashTableNum, 0)
|
||||
LOCL(struct import_functor_hash_entry_struct **, ImportFunctorHashChain, NULL)
|
||||
LOCL(UInt, ImportFunctorHashTableSize, 0)
|
||||
LOCL(UInt, ImportFunctorHashTableNum, 0)
|
||||
LOCL(struct import_opcode_hash_entry_struct **, ImportOPCODEHashChain, NULL)
|
||||
LOCL(UInt, ImportOPCODEHashTableSize, 0)
|
||||
LOCL(struct import_pred_entry_hash_entry_struct **, ImportPredEntryHashChain,
|
||||
NULL)
|
||||
LOCL(UInt, ImportPredEntryHashTableSize, 0)
|
||||
LOCL(UInt, ImportPredEntryHashTableNum, 0)
|
||||
LOCL(struct import_dbref_hash_entry_struct **, ImportDBRefHashChain, NULL)
|
||||
LOCL(UInt, ImportDBRefHashTableSize, 0)
|
||||
LOCL(UInt, ImportDBRefHashTableNum, 0)
|
||||
LOCL(yamop *, ImportFAILCODE, NULL)
|
||||
|
||||
#if __ANDROID__
|
||||
// current virtual directory.
|
||||
LOCL(struct AAssetManager *assetManager, GLOBAL_assetManager)
|
||||
LOCL(char *, InAssetDir, NULL)
|
||||
#endif
|
||||
|
||||
// exo indexing
|
||||
|
||||
LOCN(UInt, 256, ibnds)
|
||||
LOCL(struct index_t *, exo_it, NULL)
|
||||
LOCL(CELL *, exo_base, NULL)
|
||||
LOCL(UInt, exo_arity, 0)
|
||||
LOCL(UInt, exo_arg, 0)
|
||||
|
||||
// atom completion
|
||||
LOC(struct scan_atoms *, search_atoms)
|
||||
|
||||
// Slots
|
||||
LOCL(yhandle_t, CurSlot, 0)
|
||||
LOCL(yhandle_t, NSlots, 0)
|
||||
LOCL(CELL *, SlotBase, InitHandles(wid))
|
||||
|
||||
// Mutexes
|
||||
LOCL(struct swi_mutex *, Mutexes, NULL)
|
||||
|
||||
LOCL(Term, SourceModule, 0)
|
||||
LOCL(Term, Including, TermNil)
|
||||
|
||||
LOCL(size_t, MAX_SIZE, 1024L)
|
548
H/ratoms.h
Normal file
548
H/ratoms.h
Normal file
@ -0,0 +1,548 @@
|
||||
|
||||
/* This file, ratoms.h, was generated automatically by "yap -L misc/buildatoms"
|
||||
please do not update, update misc/ATOMS instead */
|
||||
|
||||
Atom3Dots = AtomAdjust(Atom3Dots);
|
||||
AtomAbol = AtomAdjust(AtomAbol);
|
||||
AtomAccess = AtomAdjust(AtomAccess);
|
||||
AtomAfInet = AtomAdjust(AtomAfInet);
|
||||
AtomAfLocal = AtomAdjust(AtomAfLocal);
|
||||
AtomAfUnix = AtomAdjust(AtomAfUnix);
|
||||
AtomAlarm = AtomAdjust(AtomAlarm);
|
||||
AtomAlias = AtomAdjust(AtomAlias);
|
||||
AtomAll = AtomAdjust(AtomAll);
|
||||
AtomAltNot = AtomAdjust(AtomAltNot);
|
||||
AtomAny = AtomAdjust(AtomAny);
|
||||
AtomAppend = AtomAdjust(AtomAppend);
|
||||
AtomArg = AtomAdjust(AtomArg);
|
||||
AtomArray = AtomAdjust(AtomArray);
|
||||
AtomArrayAccess = AtomAdjust(AtomArrayAccess);
|
||||
AtomArrayOverflow = AtomAdjust(AtomArrayOverflow);
|
||||
AtomArrayType = AtomAdjust(AtomArrayType);
|
||||
AtomArrow = AtomAdjust(AtomArrow);
|
||||
AtomAttributedModule = AtomAdjust(AtomAttributedModule);
|
||||
AtomDoubleArrow = AtomAdjust(AtomDoubleArrow);
|
||||
AtomAssert = AtomAdjust(AtomAssert);
|
||||
AtomEmptyBrackets = AtomAdjust(AtomEmptyBrackets);
|
||||
AtomEmptySquareBrackets = AtomAdjust(AtomEmptySquareBrackets);
|
||||
AtomEmptyCurlyBrackets = AtomAdjust(AtomEmptyCurlyBrackets);
|
||||
AtomAsserta = AtomAdjust(AtomAsserta);
|
||||
AtomAssertaStatic = AtomAdjust(AtomAssertaStatic);
|
||||
AtomAssertz = AtomAdjust(AtomAssertz);
|
||||
AtomAssertzStatic = AtomAdjust(AtomAssertzStatic);
|
||||
AtomAt = AtomAdjust(AtomAt);
|
||||
AtomAtom = AtomAdjust(AtomAtom);
|
||||
AtomAtomic = AtomAdjust(AtomAtomic);
|
||||
AtomAtt = AtomAdjust(AtomAtt);
|
||||
AtomAtt1 = AtomAdjust(AtomAtt1);
|
||||
AtomAttDo = AtomAdjust(AtomAttDo);
|
||||
AtomAttributes = AtomAdjust(AtomAttributes);
|
||||
AtomB = AtomAdjust(AtomB);
|
||||
AtomBatched = AtomAdjust(AtomBatched);
|
||||
AtomBetween = AtomAdjust(AtomBetween);
|
||||
AtomBinary = AtomAdjust(AtomBinary);
|
||||
AtomBigNum = AtomAdjust(AtomBigNum);
|
||||
AtomBinaryStream = AtomAdjust(AtomBinaryStream);
|
||||
AtomBoolean = AtomAdjust(AtomBoolean);
|
||||
AtomBraces = AtomAdjust(AtomBraces);
|
||||
AtomBreak = AtomAdjust(AtomBreak);
|
||||
AtomByte = AtomAdjust(AtomByte);
|
||||
AtomCArith = AtomAdjust(AtomCArith);
|
||||
AtomCall = AtomAdjust(AtomCall);
|
||||
AtomCallAndRetryCounter = AtomAdjust(AtomCallAndRetryCounter);
|
||||
AtomCallCounter = AtomAdjust(AtomCallCounter);
|
||||
AtomCallable = AtomAdjust(AtomCallable);
|
||||
AtomCatch = AtomAdjust(AtomCatch);
|
||||
AtomChangeModule = AtomAdjust(AtomChangeModule);
|
||||
AtomChar = AtomAdjust(AtomChar);
|
||||
AtomCharsio = AtomAdjust(AtomCharsio);
|
||||
AtomCharacter = AtomAdjust(AtomCharacter);
|
||||
AtomCharacterCode = AtomAdjust(AtomCharacterCode);
|
||||
AtomChars = AtomAdjust(AtomChars);
|
||||
AtomCharset = AtomAdjust(AtomCharset);
|
||||
AtomChType = AtomAdjust(AtomChType);
|
||||
AtomCleanCall = AtomAdjust(AtomCleanCall);
|
||||
AtomColomn = AtomAdjust(AtomColomn);
|
||||
AtomCodeSpace = AtomAdjust(AtomCodeSpace);
|
||||
AtomCodes = AtomAdjust(AtomCodes);
|
||||
AtomCoInductive = AtomAdjust(AtomCoInductive);
|
||||
AtomComma = AtomAdjust(AtomComma);
|
||||
AtomCommentHook = AtomAdjust(AtomCommentHook);
|
||||
AtomCompact = AtomAdjust(AtomCompact);
|
||||
AtomCompound = AtomAdjust(AtomCompound);
|
||||
AtomConsistencyError = AtomAdjust(AtomConsistencyError);
|
||||
AtomConsult = AtomAdjust(AtomConsult);
|
||||
AtomConsultOnBoot = AtomAdjust(AtomConsultOnBoot);
|
||||
AtomContext = AtomAdjust(AtomContext);
|
||||
AtomCputime = AtomAdjust(AtomCputime);
|
||||
AtomCreate = AtomAdjust(AtomCreate);
|
||||
AtomCreep = AtomAdjust(AtomCreep);
|
||||
AtomCryptAtoms = AtomAdjust(AtomCryptAtoms);
|
||||
AtomCsult = AtomAdjust(AtomCsult);
|
||||
AtomCurrentModule = AtomAdjust(AtomCurrentModule);
|
||||
AtomCut = AtomAdjust(AtomCut);
|
||||
AtomCutBy = AtomAdjust(AtomCutBy);
|
||||
AtomDAbort = AtomAdjust(AtomDAbort);
|
||||
AtomDBLoad = AtomAdjust(AtomDBLoad);
|
||||
AtomDBREF = AtomAdjust(AtomDBREF);
|
||||
AtomDBReference = AtomAdjust(AtomDBReference);
|
||||
AtomDBTerm = AtomAdjust(AtomDBTerm);
|
||||
AtomDBref = AtomAdjust(AtomDBref);
|
||||
AtomDInteger = AtomAdjust(AtomDInteger);
|
||||
AtomDebugMeta = AtomAdjust(AtomDebugMeta);
|
||||
AtomDebuggerInput = AtomAdjust(AtomDebuggerInput);
|
||||
AtomDec10 = AtomAdjust(AtomDec10);
|
||||
AtomDefault = AtomAdjust(AtomDefault);
|
||||
AtomDevNull = AtomAdjust(AtomDevNull);
|
||||
AtomDiff = AtomAdjust(AtomDiff);
|
||||
AtomDirectory = AtomAdjust(AtomDirectory);
|
||||
AtomDiscontiguous = AtomAdjust(AtomDiscontiguous);
|
||||
AtomDiscontiguousWarnings = AtomAdjust(AtomDiscontiguousWarnings);
|
||||
AtomDollar = AtomAdjust(AtomDollar);
|
||||
AtomDoLogUpdClause = AtomAdjust(AtomDoLogUpdClause);
|
||||
AtomDoLogUpdClause0 = AtomAdjust(AtomDoLogUpdClause0);
|
||||
AtomDoLogUpdClauseErase = AtomAdjust(AtomDoLogUpdClauseErase);
|
||||
AtomDollarU = AtomAdjust(AtomDollarU);
|
||||
AtomDollarUndef = AtomAdjust(AtomDollarUndef);
|
||||
AtomDomainError = AtomAdjust(AtomDomainError);
|
||||
AtomDoStaticClause = AtomAdjust(AtomDoStaticClause);
|
||||
AtomDots = AtomAdjust(AtomDots);
|
||||
AtomDOUBLE = AtomAdjust(AtomDOUBLE);
|
||||
AtomDoubleSlash = AtomAdjust(AtomDoubleSlash);
|
||||
AtomE = AtomAdjust(AtomE);
|
||||
AtomEOFBeforeEOT = AtomAdjust(AtomEOFBeforeEOT);
|
||||
AtomEQ = AtomAdjust(AtomEQ);
|
||||
AtomEmptyAtom = AtomAdjust(AtomEmptyAtom);
|
||||
AtomEncoding = AtomAdjust(AtomEncoding);
|
||||
AtomEndOfStream = AtomAdjust(AtomEndOfStream);
|
||||
AtomEof = AtomAdjust(AtomEof);
|
||||
AtomEOfCode = AtomAdjust(AtomEOfCode);
|
||||
AtomEq = AtomAdjust(AtomEq);
|
||||
AtomError = AtomAdjust(AtomError);
|
||||
AtomException = AtomAdjust(AtomException);
|
||||
AtomExtensions = AtomAdjust(AtomExtensions);
|
||||
AtomEvaluable = AtomAdjust(AtomEvaluable);
|
||||
AtomEvaluationError = AtomAdjust(AtomEvaluationError);
|
||||
AtomExecutable = AtomAdjust(AtomExecutable);
|
||||
AtomExecute = AtomAdjust(AtomExecute);
|
||||
AtomExecAnswers = AtomAdjust(AtomExecAnswers);
|
||||
AtomExecuteInMod = AtomAdjust(AtomExecuteInMod);
|
||||
AtomExecuteWithin = AtomAdjust(AtomExecuteWithin);
|
||||
AtomExecuteWoMod = AtomAdjust(AtomExecuteWoMod);
|
||||
AtomExist = AtomAdjust(AtomExist);
|
||||
AtomExistenceError = AtomAdjust(AtomExistenceError);
|
||||
AtomExoClause = AtomAdjust(AtomExoClause);
|
||||
AtomExpectedNumber = AtomAdjust(AtomExpectedNumber);
|
||||
AtomExpand = AtomAdjust(AtomExpand);
|
||||
AtomExtendFileSearchPath = AtomAdjust(AtomExtendFileSearchPath);
|
||||
AtomExtendsions = AtomAdjust(AtomExtendsions);
|
||||
AtomFB = AtomAdjust(AtomFB);
|
||||
AtomFail = AtomAdjust(AtomFail);
|
||||
AtomFalse = AtomAdjust(AtomFalse);
|
||||
AtomFast = AtomAdjust(AtomFast);
|
||||
AtomFastFail = AtomAdjust(AtomFastFail);
|
||||
AtomFileErrors = AtomAdjust(AtomFileErrors);
|
||||
AtomFileerrors = AtomAdjust(AtomFileerrors);
|
||||
AtomFileType = AtomAdjust(AtomFileType);
|
||||
AtomFirst = AtomAdjust(AtomFirst);
|
||||
AtomFloat = AtomAdjust(AtomFloat);
|
||||
AtomFloatFormat = AtomAdjust(AtomFloatFormat);
|
||||
AtomFloatOverflow = AtomAdjust(AtomFloatOverflow);
|
||||
AtomFloatUnderflow = AtomAdjust(AtomFloatUnderflow);
|
||||
AtomFormat = AtomAdjust(AtomFormat);
|
||||
AtomFormatAt = AtomAdjust(AtomFormatAt);
|
||||
AtomFull = AtomAdjust(AtomFull);
|
||||
AtomFunctor = AtomAdjust(AtomFunctor);
|
||||
AtomGT = AtomAdjust(AtomGT);
|
||||
AtomGVar = AtomAdjust(AtomGVar);
|
||||
AtomGc = AtomAdjust(AtomGc);
|
||||
AtomGcMargin = AtomAdjust(AtomGcMargin);
|
||||
AtomGcTrace = AtomAdjust(AtomGcTrace);
|
||||
AtomGcVerbose = AtomAdjust(AtomGcVerbose);
|
||||
AtomGcVeryVerbose = AtomAdjust(AtomGcVeryVerbose);
|
||||
AtomGeneratePredInfo = AtomAdjust(AtomGeneratePredInfo);
|
||||
AtomGetwork = AtomAdjust(AtomGetwork);
|
||||
AtomGetworkSeq = AtomAdjust(AtomGetworkSeq);
|
||||
AtomGlob = AtomAdjust(AtomGlob);
|
||||
AtomGlobal = AtomAdjust(AtomGlobal);
|
||||
AtomGlobalSp = AtomAdjust(AtomGlobalSp);
|
||||
AtomGlobalTrie = AtomAdjust(AtomGlobalTrie);
|
||||
AtomGoalExpansion = AtomAdjust(AtomGoalExpansion);
|
||||
AtomHat = AtomAdjust(AtomHat);
|
||||
AtomHERE = AtomAdjust(AtomHERE);
|
||||
AtomHandleThrow = AtomAdjust(AtomHandleThrow);
|
||||
AtomHeap = AtomAdjust(AtomHeap);
|
||||
AtomHeapUsed = AtomAdjust(AtomHeapUsed);
|
||||
AtomHugeInt = AtomAdjust(AtomHugeInt);
|
||||
AtomIDB = AtomAdjust(AtomIDB);
|
||||
AtomIOMode = AtomAdjust(AtomIOMode);
|
||||
AtomId = AtomAdjust(AtomId);
|
||||
AtomIgnore = AtomAdjust(AtomIgnore);
|
||||
AtomInf = AtomAdjust(AtomInf);
|
||||
AtomInfinity = AtomAdjust(AtomInfinity);
|
||||
AtomInitGoal = AtomAdjust(AtomInitGoal);
|
||||
AtomInitProlog = AtomAdjust(AtomInitProlog);
|
||||
AtomInStackExpansion = AtomAdjust(AtomInStackExpansion);
|
||||
AtomInput = AtomAdjust(AtomInput);
|
||||
AtomInstantiationError = AtomAdjust(AtomInstantiationError);
|
||||
AtomInt = AtomAdjust(AtomInt);
|
||||
AtomIntOverflow = AtomAdjust(AtomIntOverflow);
|
||||
AtomInteger = AtomAdjust(AtomInteger);
|
||||
AtomInternalCompilerError = AtomAdjust(AtomInternalCompilerError);
|
||||
AtomIs = AtomAdjust(AtomIs);
|
||||
AtomKey = AtomAdjust(AtomKey);
|
||||
AtomLDLibraryPath = AtomAdjust(AtomLDLibraryPath);
|
||||
AtomLONGINT = AtomAdjust(AtomLONGINT);
|
||||
AtomLOOP = AtomAdjust(AtomLOOP);
|
||||
AtomLoopStream = AtomAdjust(AtomLoopStream);
|
||||
AtomLT = AtomAdjust(AtomLT);
|
||||
AtomLastExecuteWithin = AtomAdjust(AtomLastExecuteWithin);
|
||||
AtomLeash = AtomAdjust(AtomLeash);
|
||||
AtomLeast = AtomAdjust(AtomLeast);
|
||||
AtomLength = AtomAdjust(AtomLength);
|
||||
AtomList = AtomAdjust(AtomList);
|
||||
AtomLine = AtomAdjust(AtomLine);
|
||||
AtomLive = AtomAdjust(AtomLive);
|
||||
AtomLoadAnswers = AtomAdjust(AtomLoadAnswers);
|
||||
AtomLocal = AtomAdjust(AtomLocal);
|
||||
AtomLocalSp = AtomAdjust(AtomLocalSp);
|
||||
AtomLocalTrie = AtomAdjust(AtomLocalTrie);
|
||||
AtomMax = AtomAdjust(AtomMax);
|
||||
AtomMaximum = AtomAdjust(AtomMaximum);
|
||||
AtomMaxArity = AtomAdjust(AtomMaxArity);
|
||||
AtomMaxFiles = AtomAdjust(AtomMaxFiles);
|
||||
AtomMegaClause = AtomAdjust(AtomMegaClause);
|
||||
AtomMetaCall = AtomAdjust(AtomMetaCall);
|
||||
AtomMfClause = AtomAdjust(AtomMfClause);
|
||||
AtomMin = AtomAdjust(AtomMin);
|
||||
AtomMinimum = AtomAdjust(AtomMinimum);
|
||||
AtomMinus = AtomAdjust(AtomMinus);
|
||||
AtomModify = AtomAdjust(AtomModify);
|
||||
AtomModule = AtomAdjust(AtomModule);
|
||||
AtomMost = AtomAdjust(AtomMost);
|
||||
AtomMulti = AtomAdjust(AtomMulti);
|
||||
AtomMultiFile = AtomAdjust(AtomMultiFile);
|
||||
AtomMultiple = AtomAdjust(AtomMultiple);
|
||||
AtomMutable = AtomAdjust(AtomMutable);
|
||||
AtomMutableVariable = AtomAdjust(AtomMutableVariable);
|
||||
AtomMutex = AtomAdjust(AtomMutex);
|
||||
AtomMyddasDB = AtomAdjust(AtomMyddasDB);
|
||||
AtomMyddasGoal = AtomAdjust(AtomMyddasGoal);
|
||||
AtomMyddasHost = AtomAdjust(AtomMyddasHost);
|
||||
AtomMyddasPass = AtomAdjust(AtomMyddasPass);
|
||||
AtomMyddasUser = AtomAdjust(AtomMyddasUser);
|
||||
AtomMyddasVersionName = AtomAdjust(AtomMyddasVersionName);
|
||||
AtomNan = AtomAdjust(AtomNan);
|
||||
AtomNb = AtomAdjust(AtomNb);
|
||||
AtomNbTerm = AtomAdjust(AtomNbTerm);
|
||||
AtomNew = AtomAdjust(AtomNew);
|
||||
AtomNewLine = AtomAdjust(AtomNewLine);
|
||||
AtomNl = AtomAdjust(AtomNl);
|
||||
AtomNoEffect = AtomAdjust(AtomNoEffect);
|
||||
AtomNoMemory = AtomAdjust(AtomNoMemory);
|
||||
AtomNone = AtomAdjust(AtomNone);
|
||||
AtomNonEmptyList = AtomAdjust(AtomNonEmptyList);
|
||||
AtomNot = AtomAdjust(AtomNot);
|
||||
AtomNotImplemented = AtomAdjust(AtomNotImplemented);
|
||||
AtomNotLessThanZero = AtomAdjust(AtomNotLessThanZero);
|
||||
AtomNotNewline = AtomAdjust(AtomNotNewline);
|
||||
AtomNotZero = AtomAdjust(AtomNotZero);
|
||||
AtomNumber = AtomAdjust(AtomNumber);
|
||||
AtomOff = AtomAdjust(AtomOff);
|
||||
AtomOffline = AtomAdjust(AtomOffline);
|
||||
AtomOn = AtomAdjust(AtomOn);
|
||||
AtomOnline = AtomAdjust(AtomOnline);
|
||||
AtomOpen = AtomAdjust(AtomOpen);
|
||||
AtomOperatingSystemError = AtomAdjust(AtomOperatingSystemError);
|
||||
AtomOperatingSystemSupport = AtomAdjust(AtomOperatingSystemSupport);
|
||||
AtomOperator = AtomAdjust(AtomOperator);
|
||||
AtomOperatorPriority = AtomAdjust(AtomOperatorPriority);
|
||||
AtomOperatorSpecifier = AtomAdjust(AtomOperatorSpecifier);
|
||||
AtomOpt = AtomAdjust(AtomOpt);
|
||||
AtomOtherwise = AtomAdjust(AtomOtherwise);
|
||||
AtomOutOfAttvarsError = AtomAdjust(AtomOutOfAttvarsError);
|
||||
AtomOutOfAuxspaceError = AtomAdjust(AtomOutOfAuxspaceError);
|
||||
AtomOutOfHeapError = AtomAdjust(AtomOutOfHeapError);
|
||||
AtomOutOfRange = AtomAdjust(AtomOutOfRange);
|
||||
AtomOutOfStackError = AtomAdjust(AtomOutOfStackError);
|
||||
AtomOutOfTrailError = AtomAdjust(AtomOutOfTrailError);
|
||||
AtomOutput = AtomAdjust(AtomOutput);
|
||||
AtomParameter = AtomAdjust(AtomParameter);
|
||||
AtomPrologCommonsDir = AtomAdjust(AtomPrologCommonsDir);
|
||||
AtomPast = AtomAdjust(AtomPast);
|
||||
AtomPastEndOfStream = AtomAdjust(AtomPastEndOfStream);
|
||||
AtomPermissionError = AtomAdjust(AtomPermissionError);
|
||||
AtomPi = AtomAdjust(AtomPi);
|
||||
AtomPipe = AtomAdjust(AtomPipe);
|
||||
AtomPlus = AtomAdjust(AtomPlus);
|
||||
AtomPointer = AtomAdjust(AtomPointer);
|
||||
AtomPortray = AtomAdjust(AtomPortray);
|
||||
AtomPredicateIndicator = AtomAdjust(AtomPredicateIndicator);
|
||||
AtomPrimitive = AtomAdjust(AtomPrimitive);
|
||||
AtomPrintMessage = AtomAdjust(AtomPrintMessage);
|
||||
AtomPrivateProcedure = AtomAdjust(AtomPrivateProcedure);
|
||||
AtomProcedure = AtomAdjust(AtomProcedure);
|
||||
AtomProfile = AtomAdjust(AtomProfile);
|
||||
AtomProlog = AtomAdjust(AtomProlog);
|
||||
AtomQly = AtomAdjust(AtomQly);
|
||||
AtomQuery = AtomAdjust(AtomQuery);
|
||||
AtomQueue = AtomAdjust(AtomQueue);
|
||||
AtomQuiet = AtomAdjust(AtomQuiet);
|
||||
AtomRadix = AtomAdjust(AtomRadix);
|
||||
AtomRandom = AtomAdjust(AtomRandom);
|
||||
AtomRange = AtomAdjust(AtomRange);
|
||||
AtomRDiv = AtomAdjust(AtomRDiv);
|
||||
AtomRead = AtomAdjust(AtomRead);
|
||||
AtomReadOnly = AtomAdjust(AtomReadOnly);
|
||||
AtomReadWrite = AtomAdjust(AtomReadWrite);
|
||||
AtomReadutil = AtomAdjust(AtomReadutil);
|
||||
AtomReconsult = AtomAdjust(AtomReconsult);
|
||||
AtomRecordedP = AtomAdjust(AtomRecordedP);
|
||||
AtomRecordedWithKey = AtomAdjust(AtomRecordedWithKey);
|
||||
AtomRedefineWarnings = AtomAdjust(AtomRedefineWarnings);
|
||||
AtomRedoFreeze = AtomAdjust(AtomRedoFreeze);
|
||||
AtomRefoundVar = AtomAdjust(AtomRefoundVar);
|
||||
AtomRelativeTo = AtomAdjust(AtomRelativeTo);
|
||||
AtomRepeat = AtomAdjust(AtomRepeat);
|
||||
AtomRepeatSpace = AtomAdjust(AtomRepeatSpace);
|
||||
AtomReposition = AtomAdjust(AtomReposition);
|
||||
AtomRepresentationError = AtomAdjust(AtomRepresentationError);
|
||||
AtomReset = AtomAdjust(AtomReset);
|
||||
AtomResize = AtomAdjust(AtomResize);
|
||||
AtomResourceError = AtomAdjust(AtomResourceError);
|
||||
AtomRestoreRegs = AtomAdjust(AtomRestoreRegs);
|
||||
AtomRetryCounter = AtomAdjust(AtomRetryCounter);
|
||||
AtomRTree = AtomAdjust(AtomRTree);
|
||||
AtomSafe = AtomAdjust(AtomSafe);
|
||||
AtomSafeCallCleanup = AtomAdjust(AtomSafeCallCleanup);
|
||||
AtomSame = AtomAdjust(AtomSame);
|
||||
AtomSemic = AtomAdjust(AtomSemic);
|
||||
AtomShiftCountOverflow = AtomAdjust(AtomShiftCountOverflow);
|
||||
AtomSigAlarm = AtomAdjust(AtomSigAlarm);
|
||||
AtomSigBreak = AtomAdjust(AtomSigBreak);
|
||||
AtomSigCreep = AtomAdjust(AtomSigCreep);
|
||||
AtomSigDebug = AtomAdjust(AtomSigDebug);
|
||||
AtomSigDelayCreep = AtomAdjust(AtomSigDelayCreep);
|
||||
AtomSigFPE = AtomAdjust(AtomSigFPE);
|
||||
AtomSigHup = AtomAdjust(AtomSigHup);
|
||||
AtomSigInt = AtomAdjust(AtomSigInt);
|
||||
AtomSigIti = AtomAdjust(AtomSigIti);
|
||||
AtomSigPending = AtomAdjust(AtomSigPending);
|
||||
AtomSigPipe = AtomAdjust(AtomSigPipe);
|
||||
AtomSigStackDump = AtomAdjust(AtomSigStackDump);
|
||||
AtomSigStatistics = AtomAdjust(AtomSigStatistics);
|
||||
AtomSigTrace = AtomAdjust(AtomSigTrace);
|
||||
AtomSigUsr1 = AtomAdjust(AtomSigUsr1);
|
||||
AtomSigUsr2 = AtomAdjust(AtomSigUsr2);
|
||||
AtomSigVTAlarm = AtomAdjust(AtomSigVTAlarm);
|
||||
AtomSigWakeUp = AtomAdjust(AtomSigWakeUp);
|
||||
AtomSilent = AtomAdjust(AtomSilent);
|
||||
AtomSingle = AtomAdjust(AtomSingle);
|
||||
AtomSingleVarWarnings = AtomAdjust(AtomSingleVarWarnings);
|
||||
AtomSingleton = AtomAdjust(AtomSingleton);
|
||||
AtomSlash = AtomAdjust(AtomSlash);
|
||||
AtomSocket = AtomAdjust(AtomSocket);
|
||||
AtomSolutions = AtomAdjust(AtomSolutions);
|
||||
AtomSource = AtomAdjust(AtomSource);
|
||||
AtomSourceSink = AtomAdjust(AtomSourceSink);
|
||||
AtomSpy = AtomAdjust(AtomSpy);
|
||||
AtomStack = AtomAdjust(AtomStack);
|
||||
AtomStackFree = AtomAdjust(AtomStackFree);
|
||||
AtomStartupSavedState = AtomAdjust(AtomStartupSavedState);
|
||||
AtomStaticClause = AtomAdjust(AtomStaticClause);
|
||||
AtomStaticProcedure = AtomAdjust(AtomStaticProcedure);
|
||||
AtomStream = AtomAdjust(AtomStream);
|
||||
AtomSWIStream = AtomAdjust(AtomSWIStream);
|
||||
AtomVStream = AtomAdjust(AtomVStream);
|
||||
AtomStreams = AtomAdjust(AtomStreams);
|
||||
AtomStreamOrAlias = AtomAdjust(AtomStreamOrAlias);
|
||||
AtomStreamPos = AtomAdjust(AtomStreamPos);
|
||||
AtomStreamPosition = AtomAdjust(AtomStreamPosition);
|
||||
AtomString = AtomAdjust(AtomString);
|
||||
AtomStyleCheck = AtomAdjust(AtomStyleCheck);
|
||||
AtomSTRING = AtomAdjust(AtomSTRING);
|
||||
AtomSwi = AtomAdjust(AtomSwi);
|
||||
AtomSymbolChar = AtomAdjust(AtomSymbolChar);
|
||||
AtomSyntaxError = AtomAdjust(AtomSyntaxError);
|
||||
AtomSyntaxErrors = AtomAdjust(AtomSyntaxErrors);
|
||||
AtomSyntaxErrorHandler = AtomAdjust(AtomSyntaxErrorHandler);
|
||||
AtomSystem = AtomAdjust(AtomSystem);
|
||||
AtomSystemError = AtomAdjust(AtomSystemError);
|
||||
AtomSystemLibraryDir = AtomAdjust(AtomSystemLibraryDir);
|
||||
AtomTerm = AtomAdjust(AtomTerm);
|
||||
AtomTerms = AtomAdjust(AtomTerms);
|
||||
AtomTermExpansion = AtomAdjust(AtomTermExpansion);
|
||||
AtomText = AtomAdjust(AtomText);
|
||||
AtomTextStream = AtomAdjust(AtomTextStream);
|
||||
AtomThread = AtomAdjust(AtomThread);
|
||||
AtomThreads = AtomAdjust(AtomThreads);
|
||||
AtomThrow = AtomAdjust(AtomThrow);
|
||||
AtomTimeOutSpec = AtomAdjust(AtomTimeOutSpec);
|
||||
AtomTimeoutError = AtomAdjust(AtomTimeoutError);
|
||||
AtomTopLevelGoal = AtomAdjust(AtomTopLevelGoal);
|
||||
AtomTopThreadGoal = AtomAdjust(AtomTopThreadGoal);
|
||||
AtomTraceMetaCall = AtomAdjust(AtomTraceMetaCall);
|
||||
AtomTrail = AtomAdjust(AtomTrail);
|
||||
AtomTrue = AtomAdjust(AtomTrue);
|
||||
AtomTty = AtomAdjust(AtomTty);
|
||||
AtomTtys = AtomAdjust(AtomTtys);
|
||||
AtomTxt = AtomAdjust(AtomTxt);
|
||||
AtomTypeError = AtomAdjust(AtomTypeError);
|
||||
AtomUndefined = AtomAdjust(AtomUndefined);
|
||||
AtomUndefp = AtomAdjust(AtomUndefp);
|
||||
AtomUnderflow = AtomAdjust(AtomUnderflow);
|
||||
AtomUnificationStack = AtomAdjust(AtomUnificationStack);
|
||||
AtomUnique = AtomAdjust(AtomUnique);
|
||||
AtomUnsignedByte = AtomAdjust(AtomUnsignedByte);
|
||||
AtomUnsignedChar = AtomAdjust(AtomUnsignedChar);
|
||||
AtomUser = AtomAdjust(AtomUser);
|
||||
AtomUserErr = AtomAdjust(AtomUserErr);
|
||||
AtomUserIn = AtomAdjust(AtomUserIn);
|
||||
AtomUserOut = AtomAdjust(AtomUserOut);
|
||||
AtomDollarVar = AtomAdjust(AtomDollarVar);
|
||||
AtomVBar = AtomAdjust(AtomVBar);
|
||||
AtomVarBranches = AtomAdjust(AtomVarBranches);
|
||||
AtomVariableNames = AtomAdjust(AtomVariableNames);
|
||||
AtomHiddenVar = AtomAdjust(AtomHiddenVar);
|
||||
AtomVariable = AtomAdjust(AtomVariable);
|
||||
AtomVerbose = AtomAdjust(AtomVerbose);
|
||||
AtomVerboseFileSearch = AtomAdjust(AtomVerboseFileSearch);
|
||||
AtomVersionNumber = AtomAdjust(AtomVersionNumber);
|
||||
AtomVeryVerbose = AtomAdjust(AtomVeryVerbose);
|
||||
AtomWakeUpGoal = AtomAdjust(AtomWakeUpGoal);
|
||||
AtomWarning = AtomAdjust(AtomWarning);
|
||||
AtomWhen = AtomAdjust(AtomWhen);
|
||||
AtomWrite = AtomAdjust(AtomWrite);
|
||||
AtomXml = AtomAdjust(AtomXml);
|
||||
AtomYapHacks = AtomAdjust(AtomYapHacks);
|
||||
AtomZeroDivisor = AtomAdjust(AtomZeroDivisor);
|
||||
FunctorAfInet = FuncAdjust(FunctorAfInet);
|
||||
FunctorAfLocal = FuncAdjust(FunctorAfLocal);
|
||||
FunctorAfUnix = FuncAdjust(FunctorAfUnix);
|
||||
FunctorAltNot = FuncAdjust(FunctorAltNot);
|
||||
FunctorArg = FuncAdjust(FunctorArg);
|
||||
FunctorArrayEntry = FuncAdjust(FunctorArrayEntry);
|
||||
FunctorArrow = FuncAdjust(FunctorArrow);
|
||||
FunctorDoubleArrow = FuncAdjust(FunctorDoubleArrow);
|
||||
FunctorAssert1 = FuncAdjust(FunctorAssert1);
|
||||
FunctorAssert = FuncAdjust(FunctorAssert);
|
||||
FunctorAtFoundOne = FuncAdjust(FunctorAtFoundOne);
|
||||
FunctorAtom = FuncAdjust(FunctorAtom);
|
||||
FunctorAtt1 = FuncAdjust(FunctorAtt1);
|
||||
FunctorAttGoal = FuncAdjust(FunctorAttGoal);
|
||||
FunctorBraces = FuncAdjust(FunctorBraces);
|
||||
FunctorCall = FuncAdjust(FunctorCall);
|
||||
FunctorCatch = FuncAdjust(FunctorCatch);
|
||||
FunctorChangeModule = FuncAdjust(FunctorChangeModule);
|
||||
FunctorChars = FuncAdjust(FunctorChars);
|
||||
FunctorChars1 = FuncAdjust(FunctorChars1);
|
||||
FunctorCleanCall = FuncAdjust(FunctorCleanCall);
|
||||
FunctorClist = FuncAdjust(FunctorClist);
|
||||
FunctorCodes = FuncAdjust(FunctorCodes);
|
||||
FunctorCodes1 = FuncAdjust(FunctorCodes1);
|
||||
FunctorComma = FuncAdjust(FunctorComma);
|
||||
FunctorCommentHook = FuncAdjust(FunctorCommentHook);
|
||||
FunctorContext2 = FuncAdjust(FunctorContext2);
|
||||
FunctorConsistencyError = FuncAdjust(FunctorConsistencyError);
|
||||
FunctorCreep = FuncAdjust(FunctorCreep);
|
||||
FunctorCsult = FuncAdjust(FunctorCsult);
|
||||
FunctorCurrentModule = FuncAdjust(FunctorCurrentModule);
|
||||
FunctorCutBy = FuncAdjust(FunctorCutBy);
|
||||
FunctorDBREF = FuncAdjust(FunctorDBREF);
|
||||
FunctorDiff = FuncAdjust(FunctorDiff);
|
||||
FunctorDoLogUpdClause = FuncAdjust(FunctorDoLogUpdClause);
|
||||
FunctorDoLogUpdClause0 = FuncAdjust(FunctorDoLogUpdClause0);
|
||||
FunctorDoLogUpdClauseErase = FuncAdjust(FunctorDoLogUpdClauseErase);
|
||||
FunctorDoStaticClause = FuncAdjust(FunctorDoStaticClause);
|
||||
FunctorDollarVar = FuncAdjust(FunctorDollarVar);
|
||||
FunctorDomainError = FuncAdjust(FunctorDomainError);
|
||||
FunctorDot = FuncAdjust(FunctorDot);
|
||||
FunctorDot10 = FuncAdjust(FunctorDot10);
|
||||
FunctorDot11 = FuncAdjust(FunctorDot11);
|
||||
FunctorDot12 = FuncAdjust(FunctorDot12);
|
||||
FunctorDot2 = FuncAdjust(FunctorDot2);
|
||||
FunctorDot3 = FuncAdjust(FunctorDot3);
|
||||
FunctorDot4 = FuncAdjust(FunctorDot4);
|
||||
FunctorDot5 = FuncAdjust(FunctorDot5);
|
||||
FunctorDot6 = FuncAdjust(FunctorDot6);
|
||||
FunctorDot7 = FuncAdjust(FunctorDot7);
|
||||
FunctorDot8 = FuncAdjust(FunctorDot8);
|
||||
FunctorDot9 = FuncAdjust(FunctorDot9);
|
||||
FunctorDoubleSlash = FuncAdjust(FunctorDoubleSlash);
|
||||
FunctorEmptySquareBrackets = FuncAdjust(FunctorEmptySquareBrackets);
|
||||
FunctorEmptyCurlyBrackets = FuncAdjust(FunctorEmptyCurlyBrackets);
|
||||
FunctorEq = FuncAdjust(FunctorEq);
|
||||
FunctorError = FuncAdjust(FunctorError);
|
||||
FunctorEvaluationError = FuncAdjust(FunctorEvaluationError);
|
||||
FunctorExecute2InMod = FuncAdjust(FunctorExecute2InMod);
|
||||
FunctorExecuteInMod = FuncAdjust(FunctorExecuteInMod);
|
||||
FunctorExecuteWithin = FuncAdjust(FunctorExecuteWithin);
|
||||
FunctorExistenceError = FuncAdjust(FunctorExistenceError);
|
||||
FunctorExoClause = FuncAdjust(FunctorExoClause);
|
||||
FunctorFunctor = FuncAdjust(FunctorFunctor);
|
||||
FunctorGAtom = FuncAdjust(FunctorGAtom);
|
||||
FunctorGAtomic = FuncAdjust(FunctorGAtomic);
|
||||
FunctorGCompound = FuncAdjust(FunctorGCompound);
|
||||
FunctorGFloat = FuncAdjust(FunctorGFloat);
|
||||
FunctorGFormatAt = FuncAdjust(FunctorGFormatAt);
|
||||
FunctorGInteger = FuncAdjust(FunctorGInteger);
|
||||
FunctorGNumber = FuncAdjust(FunctorGNumber);
|
||||
FunctorGPrimitive = FuncAdjust(FunctorGPrimitive);
|
||||
FunctorGVar = FuncAdjust(FunctorGVar);
|
||||
FunctorGeneratePredInfo = FuncAdjust(FunctorGeneratePredInfo);
|
||||
FunctorGoalExpansion2 = FuncAdjust(FunctorGoalExpansion2);
|
||||
FunctorGoalExpansion = FuncAdjust(FunctorGoalExpansion);
|
||||
FunctorHandleThrow = FuncAdjust(FunctorHandleThrow);
|
||||
FunctorHat = FuncAdjust(FunctorHat);
|
||||
FunctorId = FuncAdjust(FunctorId);
|
||||
FunctorIs = FuncAdjust(FunctorIs);
|
||||
FunctorLastExecuteWithin = FuncAdjust(FunctorLastExecuteWithin);
|
||||
FunctorList = FuncAdjust(FunctorList);
|
||||
FunctorLOOP = FuncAdjust(FunctorLOOP);
|
||||
FunctorMegaClause = FuncAdjust(FunctorMegaClause);
|
||||
FunctorMetaCall = FuncAdjust(FunctorMetaCall);
|
||||
FunctorMinus = FuncAdjust(FunctorMinus);
|
||||
FunctorModule = FuncAdjust(FunctorModule);
|
||||
FunctorMultiFileClause = FuncAdjust(FunctorMultiFileClause);
|
||||
FunctorMutable = FuncAdjust(FunctorMutable);
|
||||
FunctorMutex = FuncAdjust(FunctorMutex);
|
||||
FunctorNotImplemented = FuncAdjust(FunctorNotImplemented);
|
||||
FunctorNBQueue = FuncAdjust(FunctorNBQueue);
|
||||
FunctorNot = FuncAdjust(FunctorNot);
|
||||
FunctorOr = FuncAdjust(FunctorOr);
|
||||
FunctorPermissionError = FuncAdjust(FunctorPermissionError);
|
||||
FunctorPlus = FuncAdjust(FunctorPlus);
|
||||
FunctorPortray = FuncAdjust(FunctorPortray);
|
||||
FunctorPrintMessage = FuncAdjust(FunctorPrintMessage);
|
||||
FunctorProcedure = FuncAdjust(FunctorProcedure);
|
||||
FunctorPrologConstraint = FuncAdjust(FunctorPrologConstraint);
|
||||
FunctorQuery = FuncAdjust(FunctorQuery);
|
||||
FunctorRecordedWithKey = FuncAdjust(FunctorRecordedWithKey);
|
||||
FunctorRDiv = FuncAdjust(FunctorRDiv);
|
||||
FunctorRedoFreeze = FuncAdjust(FunctorRedoFreeze);
|
||||
FunctorRepresentationError = FuncAdjust(FunctorRepresentationError);
|
||||
FunctorResourceError = FuncAdjust(FunctorResourceError);
|
||||
FunctorRestoreRegs = FuncAdjust(FunctorRestoreRegs);
|
||||
FunctorRestoreRegs1 = FuncAdjust(FunctorRestoreRegs1);
|
||||
FunctorSafe = FuncAdjust(FunctorSafe);
|
||||
FunctorSafeCallCleanup = FuncAdjust(FunctorSafeCallCleanup);
|
||||
FunctorSame = FuncAdjust(FunctorSame);
|
||||
FunctorSlash = FuncAdjust(FunctorSlash);
|
||||
FunctorStaticClause = FuncAdjust(FunctorStaticClause);
|
||||
FunctorStream = FuncAdjust(FunctorStream);
|
||||
FunctorStreamEOS = FuncAdjust(FunctorStreamEOS);
|
||||
FunctorStreamPos = FuncAdjust(FunctorStreamPos);
|
||||
FunctorString1 = FuncAdjust(FunctorString1);
|
||||
FunctorStyleCheck = FuncAdjust(FunctorStyleCheck);
|
||||
FunctorSyntaxError = FuncAdjust(FunctorSyntaxError);
|
||||
FunctorShortSyntaxError = FuncAdjust(FunctorShortSyntaxError);
|
||||
FunctorTermExpansion = FuncAdjust(FunctorTermExpansion);
|
||||
FunctorThreadRun = FuncAdjust(FunctorThreadRun);
|
||||
FunctorThrow = FuncAdjust(FunctorThrow);
|
||||
FunctorTimeoutError = FuncAdjust(FunctorTimeoutError);
|
||||
FunctorTraceMetaCall = FuncAdjust(FunctorTraceMetaCall);
|
||||
FunctorTypeError = FuncAdjust(FunctorTypeError);
|
||||
FunctorUMinus = FuncAdjust(FunctorUMinus);
|
||||
FunctorUPlus = FuncAdjust(FunctorUPlus);
|
||||
FunctorVBar = FuncAdjust(FunctorVBar);
|
||||
FunctorHiddenVar = FuncAdjust(FunctorHiddenVar);
|
1506
H/tatoms.h
Normal file
1506
H/tatoms.h
Normal file
File diff suppressed because it is too large
Load Diff
444924
OPTYap/Terminal Saved Output
Normal file
444924
OPTYap/Terminal Saved Output
Normal file
File diff suppressed because one or more lines are too long
2
YAP.config
Normal file
2
YAP.config
Normal file
@ -0,0 +1,2 @@
|
||||
// Add predefined macros for your project here. For example:
|
||||
// #define THE_ANSWER 42
|
1
YAP.creator
Normal file
1
YAP.creator
Normal file
@ -0,0 +1 @@
|
||||
[General]
|
196
YAP.creator.user
Normal file
196
YAP.creator.user
Normal file
@ -0,0 +1,196 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 3.6.0, 2016-01-23T20:38:43. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{a0de746c-c885-4e01-9456-e8e37fff153e}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="int">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap"/>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{372e928c-645c-4a2e-be60-0afb86ba4bb0}</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/vsc/git/yap-6.3/qt</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<valuelist type="QVariantList" key="GenericProjectManager.GenericMakeStep.BuildTargets">
|
||||
<value type="QString">all</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="GenericProjectManager.GenericMakeStep.Clean">false</value>
|
||||
<value type="QString" key="GenericProjectManager.GenericMakeStep.MakeArguments"></value>
|
||||
<value type="QString" key="GenericProjectManager.GenericMakeStep.MakeCommand"></value>
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">GenericProjectManager.GenericMakeStep</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<valuelist type="QVariantList" key="GenericProjectManager.GenericMakeStep.BuildTargets">
|
||||
<value type="QString">clean</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="GenericProjectManager.GenericMakeStep.Clean">true</value>
|
||||
<value type="QString" key="GenericProjectManager.GenericMakeStep.MakeArguments"></value>
|
||||
<value type="QString" key="GenericProjectManager.GenericMakeStep.MakeCommand"></value>
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">GenericProjectManager.GenericMakeStep</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Default</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Default</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">GenericProjectManager.GenericBuildConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value>
|
||||
<value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value>
|
||||
<value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
|
||||
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
|
||||
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
|
||||
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
|
||||
<value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
|
||||
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
|
||||
<value type="int">0</value>
|
||||
<value type="int">1</value>
|
||||
<value type="int">2</value>
|
||||
<value type="int">3</value>
|
||||
<value type="int">4</value>
|
||||
<value type="int">5</value>
|
||||
<value type="int">6</value>
|
||||
<value type="int">7</value>
|
||||
<value type="int">8</value>
|
||||
<value type="int">9</value>
|
||||
<value type="int">10</value>
|
||||
<value type="int">11</value>
|
||||
<value type="int">12</value>
|
||||
<value type="int">13</value>
|
||||
<value type="int">14</value>
|
||||
</valuelist>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
|
||||
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
|
||||
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
|
||||
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="int">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">18</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">18</value>
|
||||
</data>
|
||||
</qtcreator>
|
95
YAP.includes
Normal file
95
YAP.includes
Normal file
@ -0,0 +1,95 @@
|
||||
.
|
||||
BEAM
|
||||
build
|
||||
build/library/system
|
||||
build/os
|
||||
build/packages/bdd
|
||||
build/packages/raptor
|
||||
build/packages/real
|
||||
build/packages/swig/java
|
||||
C
|
||||
console/LGPL
|
||||
console/Qt/build-untitled-Desktop_Qt_5_4_2_clang_64bit-Debug
|
||||
console/Qt/untitled
|
||||
console/terminal
|
||||
Debug
|
||||
Debug/library/system
|
||||
Debug/os
|
||||
Debug/packages/bdd
|
||||
Debug/packages/raptor
|
||||
Debug/packages/real
|
||||
Debug/packages/swig/java
|
||||
H
|
||||
H/heap
|
||||
include
|
||||
JIT/HPP
|
||||
library/dialect/bprolog/fli
|
||||
library/dialect/swi/fli
|
||||
library/dialect/swi/os
|
||||
library/dialect/swi/os/libtai
|
||||
library/dialect/swi/os/windows
|
||||
library/lammpi
|
||||
library/regex
|
||||
library/rltree
|
||||
library/system
|
||||
library/system/crypto
|
||||
library/tries
|
||||
mxe
|
||||
mxe/library/system
|
||||
mxe/os
|
||||
mxe/packages/raptor
|
||||
mxe/packages/real
|
||||
OPTYap
|
||||
os
|
||||
packages/bdd
|
||||
packages/bdd/simplecudd
|
||||
packages/bdd/simplecudd_lfi
|
||||
packages/CLPBN/horus
|
||||
packages/CLPBN/horus/unit_tests
|
||||
packages/cplint
|
||||
packages/cplint/approx/simplecuddLPADs
|
||||
packages/cuda
|
||||
packages/jpl/jpl/src/c
|
||||
packages/jpl/src/c
|
||||
packages/myddas
|
||||
packages/myddas/mysql
|
||||
packages/myddas/postgres
|
||||
packages/prism/src/c/core
|
||||
packages/prism/src/c/mp
|
||||
packages/prism/src/c/up
|
||||
packages/raptor
|
||||
packages/real
|
||||
packages/swi-minisat2/C
|
||||
packages/swig/android/jni/sqlite
|
||||
packages/swig/android/jni/sqlite/nativehelper
|
||||
packages/swig/java
|
||||
packages/udi
|
||||
packages/udi/b+tree
|
||||
packages/udi/rtree
|
||||
packages/udi/uthash
|
||||
packages/yap-lbfgs/liblbfgs-1.10/include
|
||||
packages/yap-lbfgs/liblbfgs-1.10/lib
|
||||
Release
|
||||
Release/library/system
|
||||
Release/os
|
||||
Release/packages/bdd
|
||||
Release/packages/raptor
|
||||
Release/packages/real
|
||||
Release/packages/swig/java
|
||||
swi/console
|
||||
Threads
|
||||
Threads/library/system
|
||||
Threads/os
|
||||
Threads/packages/bdd
|
||||
Threads/packages/raptor
|
||||
Threads/packages/real
|
||||
utf8proc
|
||||
utf8proc/bench
|
||||
utf8proc/test
|
||||
xcode
|
||||
xcode/library/system
|
||||
xcode/os
|
||||
xcode/packages/bdd
|
||||
xcode/packages/raptor
|
||||
xcode/packages/real
|
||||
xcode/packages/swig/java
|
2
docs/ERRS
Normal file
2
docs/ERRS
Normal file
@ -0,0 +1,2 @@
|
||||
make[1]: *** No rule to make target `docs/CMakeFiles/doc.dir/rule'. Stop.
|
||||
make: *** [docs/CMakeFiles/doc.dir/rule] Error 2
|
BIN
docs/doxygen_entrydb_80995.tmp
Normal file
BIN
docs/doxygen_entrydb_80995.tmp
Normal file
Binary file not shown.
BIN
docs/doxygen_objdb_80995.tmp
Normal file
BIN
docs/doxygen_objdb_80995.tmp
Normal file
Binary file not shown.
BIN
docs/favicon_16x16.ico
Executable file
BIN
docs/favicon_16x16.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
docs/favicon_32x32.ico
Executable file
BIN
docs/favicon_32x32.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
docs/favicon_64x64.ico
Executable file
BIN
docs/favicon_64x64.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
263
docs/make.bat
Normal file
263
docs/make.bat
Normal file
@ -0,0 +1,263 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
|
||||
set I18NSPHINXOPTS=%SPHINXOPTS% source
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. texinfo to make Texinfo files
|
||||
echo. gettext to make PO message catalogs
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. xml to make Docutils-native XML files
|
||||
echo. pseudoxml to make pseudoxml-XML files for display purposes
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
echo. coverage to run coverage check of the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
|
||||
REM Check if sphinx-build is available and fallback to Python version if any
|
||||
%SPHINXBUILD% 1>NUL 2>NUL
|
||||
if errorlevel 9009 goto sphinx_python
|
||||
goto sphinx_ok
|
||||
|
||||
:sphinx_python
|
||||
|
||||
set SPHINXBUILD=python -m sphinx.__init__
|
||||
%SPHINXBUILD% 2> nul
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.http://sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:sphinx_ok
|
||||
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\yap.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\yap.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latexpdf" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
cd %BUILDDIR%/latex
|
||||
make all-pdf
|
||||
cd %~dp0
|
||||
echo.
|
||||
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latexpdfja" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
cd %BUILDDIR%/latex
|
||||
make all-pdf-ja
|
||||
cd %~dp0
|
||||
echo.
|
||||
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "texinfo" (
|
||||
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "gettext" (
|
||||
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "coverage" (
|
||||
%SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Testing of coverage in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/coverage/python.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "xml" (
|
||||
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The XML files are in %BUILDDIR%/xml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pseudoxml" (
|
||||
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
303
docs/source/conf.py
Normal file
303
docs/source/conf.py
Normal file
@ -0,0 +1,303 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# yap documentation build configuration file, created by
|
||||
# sphinx-quickstart on Tue Jan 5 11:01:36 2016.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its
|
||||
# containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys
|
||||
import os
|
||||
import shlex
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.doctest',
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.todo',
|
||||
'sphinx.ext.coverage',
|
||||
'sphinx.ext.mathjax',
|
||||
'sphinx.ext.ifconfig',
|
||||
'sphinx.ext.viewcode',
|
||||
'sphinx.ext.pngmath',
|
||||
'breathe'
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'yap'
|
||||
copyright = u'2016, Vitor Santos Costa'
|
||||
author = u'Vitor Santos Costa'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = u'4.6.3'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = u'4.6.3'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = []
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all
|
||||
# documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||
#keep_warnings = False
|
||||
|
||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = True
|
||||
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'alabaster'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#html_extra_path = []
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Language to be used for generating the HTML full-text search index.
|
||||
# Sphinx supports the following languages:
|
||||
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
|
||||
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
|
||||
#html_search_language = 'en'
|
||||
|
||||
# A dictionary with options for the search language support, empty by default.
|
||||
# Now only 'ja' uses this config value
|
||||
#html_search_options = {'type': 'default'}
|
||||
|
||||
# The name of a javascript file (relative to the configuration directory) that
|
||||
# implements a search results scorer. If empty, the default will be used.
|
||||
#html_search_scorer = 'scorer.js'
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'yapdoc'
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'yap.tex', u'yap Documentation',
|
||||
u'Vitor Santos Costa', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'yap', u'yap Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output -------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'yap', u'yap Documentation',
|
||||
author, 'yap', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#texinfo_show_urls = 'footnote'
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#texinfo_no_detailmenu = False
|
||||
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
intersphinx_mapping = {'https://docs.python.org/': None}
|
||||
|
||||
breathe_projects = { "yap": "/Users/vsc/git/yap-6.3/Release/docs/xml/" }
|
||||
breathe_default_project = "yap"
|
||||
|
10
docs/source/conf.py.in
Normal file
10
docs/source/conf.py.in
Normal file
@ -0,0 +1,10 @@
|
||||
extensions = [
|
||||
breathe_projects = { "yap": "/Users/vsc/git/yap-6.3/Release/doc/xml/" }i
|
||||
breathe_default_project = "yap"
|
||||
.. doxygenindex::
|
||||
.. doxygenfunction::
|
||||
.. doxygenstruct::
|
||||
.. doxygenenum::
|
||||
.. doxygentypedef::
|
||||
.. doxygenclass::
|
||||
|
29
docs/source/index.rst
Normal file
29
docs/source/index.rst
Normal file
@ -0,0 +1,29 @@
|
||||
.. yap documentation master file, created by
|
||||
sphinx-quickstart on Tue Jan 5 11:01:36 2016.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to yap's documentation!
|
||||
===============================
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. doxygenindex::
|
||||
.. doxygenfunction::
|
||||
.. doxygenstruct::
|
||||
.. doxygenenum::
|
||||
.. doxygentypedef::
|
||||
.. doxygenclass::
|
||||
|
||||
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
BIN
docs/yap.icns
Executable file
BIN
docs/yap.icns
Executable file
Binary file not shown.
BIN
docs/yap.ico
Executable file
BIN
docs/yap.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 274 KiB |
3
docs/yap.yap
Normal file
3
docs/yap.yap
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
:- module( prolog, [] ).
|
||||
|
2
library/Untitled
Normal file
2
library/Untitled
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
:- include('pl/error').
|
2573
nbproject/configurations.xml
Normal file
2573
nbproject/configurations.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
nbproject/private/CodeAssistancePathMapper.properties
Normal file
1
nbproject/private/CodeAssistancePathMapper.properties
Normal file
@ -0,0 +1 @@
|
||||
# Automatic path mapper. CRC = 1
|
0
nbproject/private/Default.properties
Normal file
0
nbproject/private/Default.properties
Normal file
28078
nbproject/private/configurations.xml
Normal file
28078
nbproject/private/configurations.xml
Normal file
File diff suppressed because it is too large
Load Diff
40
nbproject/private/launcher.properties
Normal file
40
nbproject/private/launcher.properties
Normal file
@ -0,0 +1,40 @@
|
||||
# Launchers File syntax:
|
||||
#
|
||||
# [Must-have property line]
|
||||
# launcher1.runCommand=<Run Command>
|
||||
# [Optional extra properties]
|
||||
# launcher1.displayName=<Display Name, runCommand by default>
|
||||
# launcher1.buildCommand=<Build Command, Build Command specified in project properties by default>
|
||||
# launcher1.runDir=<Run Directory, ${PROJECT_DIR} by default>
|
||||
# launcher1.symbolFiles=<Symbol Files loaded by debugger, ${OUTPUT_PATH} by default>
|
||||
# launcher1.env.<Environment variable KEY>=<Environment variable VALUE>
|
||||
# (If this value is quoted with ` it is handled as a native command which execution result will become the value)
|
||||
# [Common launcher properties]
|
||||
# common.runDir=<Run Directory>
|
||||
# (This value is overwritten by a launcher specific runDir value if the latter exists)
|
||||
# common.env.<Environment variable KEY>=<Environment variable VALUE>
|
||||
# (Environment variables from common launcher are merged with launcher specific variables)
|
||||
# common.symbolFiles=<Symbol Files loaded by debugger>
|
||||
# (This value is overwritten by a launcher specific symbolFiles value if the latter exists)
|
||||
#
|
||||
# In runDir, symbolFiles and env fields you can use these macroses:
|
||||
# ${PROJECT_DIR} - project directory absolute path
|
||||
# ${OUTPUT_PATH} - linker output path (relative to project directory path)
|
||||
# ${OUTPUT_BASENAME}- linker output filename
|
||||
# ${TESTDIR} - test files directory (relative to project directory path)
|
||||
# ${OBJECTDIR} - object files directory (relative to project directory path)
|
||||
# ${CND_DISTDIR} - distribution directory (relative to project directory path)
|
||||
# ${CND_BUILDDIR} - build directory (relative to project directory path)
|
||||
# ${CND_PLATFORM} - platform name
|
||||
# ${CND_CONF} - configuration name
|
||||
# ${CND_DLIB_EXT} - dynamic library extension
|
||||
#
|
||||
# All the project launchers must be listed in the file!
|
||||
#
|
||||
# launcher1.runCommand=...
|
||||
# launcher2.runCommand=...
|
||||
# ...
|
||||
# common.runDir=...
|
||||
# common.env.KEY=VALUE
|
||||
|
||||
# launcher1.runCommand=<type your run command here>
|
13
nbproject/private/private.xml
Normal file
13
nbproject/private/private.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||
<code-assistance-data xmlns="http://www.netbeans.org/ns/make-project-private/1">
|
||||
<code-model-enabled>true</code-model-enabled>
|
||||
</code-assistance-data>
|
||||
<data xmlns="http://www.netbeans.org/ns/make-project-private/1">
|
||||
<activeConfTypeElem>0</activeConfTypeElem>
|
||||
<activeConfIndexElem>0</activeConfIndexElem>
|
||||
</data>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group/>
|
||||
</open-files>
|
||||
</project-private>
|
26
nbproject/project.xml
Normal file
26
nbproject/project.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.cnd.makeproject</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/make-project/1">
|
||||
<name>yap-6.3</name>
|
||||
<c-extensions>c,i</c-extensions>
|
||||
<cpp-extensions>cc,cpp,cxx</cpp-extensions>
|
||||
<header-extensions>h,hh,hpp,icc,moc</header-extensions>
|
||||
<sourceEncoding>UTF-8</sourceEncoding>
|
||||
<make-dep-projects/>
|
||||
<sourceRootList>
|
||||
<sourceRootElem>.</sourceRootElem>
|
||||
</sourceRootList>
|
||||
<confList>
|
||||
<confElem>
|
||||
<name>Default</name>
|
||||
<type>0</type>
|
||||
</confElem>
|
||||
</confList>
|
||||
<formatting>
|
||||
<project-formatting-style>false</project-formatting-style>
|
||||
</formatting>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
28
os/charsio.c
28
os/charsio.c
@ -112,24 +112,25 @@ Int Yap_peek(int sno) {
|
||||
return ch;
|
||||
}
|
||||
#endif
|
||||
ocharcount = s->charcount;
|
||||
/* buffer the character */
|
||||
if (s->encoding == LOCAL_encoding) {
|
||||
ch = fgetwc(s->file);
|
||||
ungetwc(ch, s->file);
|
||||
return ch;
|
||||
} else {
|
||||
ocharcount = s->charcount;
|
||||
olinecount = s->linecount;
|
||||
olinepos = s->linepos;
|
||||
ch = s->stream_wgetc(sno);
|
||||
s->och = ch;
|
||||
if (ch == EOFCHAR) {
|
||||
ch = s->stream_wgetc(sno);
|
||||
if (ch == EOFCHAR) {
|
||||
s->stream_getc = EOFPeek;
|
||||
s->stream_wgetc = EOFWPeek;
|
||||
s->status |= Push_Eof_Stream_f;
|
||||
return ch;
|
||||
}
|
||||
s->charcount = ocharcount;
|
||||
s->linecount = olinecount;
|
||||
s->linepos = olinepos;
|
||||
/* buffer the character */
|
||||
if (s->encoding == LOCAL_encoding) {
|
||||
ungetwc(ch, s->file);
|
||||
} else if (s->encoding == ENC_OCTET || s->encoding == ENC_ISO_LATIN1 ||
|
||||
|
||||
}
|
||||
if (s->encoding == ENC_OCTET || s->encoding == ENC_ISO_LATIN1 ||
|
||||
s->encoding == ENC_ISO_ASCII) {
|
||||
ungetc(ch, s->file);
|
||||
} else if (s->encoding == ENC_ISO_UTF8) {
|
||||
@ -185,7 +186,10 @@ Int Yap_peek(int sno) {
|
||||
ungetc(ch / 256, s->file);
|
||||
ungetc(ch % 256, s->file);
|
||||
}
|
||||
return ch;
|
||||
s->charcount = ocharcount;
|
||||
s->linecount = olinecount;
|
||||
s->linepos = olinepos;
|
||||
return ch;
|
||||
}
|
||||
|
||||
static Int dopeek_byte(int sno) {
|
||||
|
0
os/iopreds.c:1351 in C-function do_open
Normal file
0
os/iopreds.c:1351 in C-function do_open
Normal file
0
os/iopreds.c:1352 in C-function do_open
Normal file
0
os/iopreds.c:1352 in C-function do_open
Normal file
0
os/iopreds.c:1374 in C-function do_open
Normal file
0
os/iopreds.c:1374 in C-function do_open
Normal file
0
os/iopreds.c:1376 in C-function do_open
Normal file
0
os/iopreds.c:1376 in C-function do_open
Normal file
0
os/iopreds.c:1379 in C-function do_open
Normal file
0
os/iopreds.c:1379 in C-function do_open
Normal file
0
os/iopreds.c:1382 in C-function do_open
Normal file
0
os/iopreds.c:1382 in C-function do_open
Normal file
0
os/iopreds.c:1413 in C-function do_open
Normal file
0
os/iopreds.c:1413 in C-function do_open
Normal file
73
packages/jpl/src/c/hacks.c
Normal file
73
packages/jpl/src/c/hacks.c
Normal file
@ -0,0 +1,73 @@
|
||||
/*
|
||||
%T jni_SetByteArrayElement(+term, +term, +term)
|
||||
*/
|
||||
static foreign_t
|
||||
jni_SetByteArrayElement(
|
||||
term_t ta1, // +Arg1
|
||||
term_t ta2, // +Arg2
|
||||
term_t ta3 // +Arg3
|
||||
)
|
||||
{
|
||||
jboolean r; // Prolog exit/fail outcome
|
||||
jbyteArray p1;
|
||||
int i2;
|
||||
jbyte p4;
|
||||
JNIEnv *env;
|
||||
atom_t a; /* " */
|
||||
functor_t fn; /* temp for conversion macros */
|
||||
term_t a1; /* " */
|
||||
int i; /* " */
|
||||
|
||||
if ( !jni_ensure_jvm() )
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
r =
|
||||
JNI_term_to_byte_jarray(ta1,p1)
|
||||
&& JNI_term_to_jint(ta2,i2)
|
||||
&& JNI_term_to_jbyte(ta3,p4)
|
||||
&& ( (*env)->SetByteArrayRegion(env,p1,(jsize)i2,1,&p4) , TRUE );
|
||||
|
||||
return jni_check_exception(env) && r;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
%T jni_SetByteArrayElement(+term, +term, +term)
|
||||
*/
|
||||
static foreign_t
|
||||
jni_SetDoubleArrayElement(
|
||||
term_t ta1, // +Arg1
|
||||
term_t ta2, // +Arg2
|
||||
term_t ta3 // +Arg3
|
||||
)
|
||||
{
|
||||
jboolean r; // Prolog exit/fail outcome
|
||||
void *p1;
|
||||
jint i2;
|
||||
jdouble p4;
|
||||
JNIEnv *env;
|
||||
atom_t a; /* " */
|
||||
functor_t fn; /* temp for conversion macros */
|
||||
term_t a1; /* " */
|
||||
int i; /* " */
|
||||
int64_t i64;
|
||||
|
||||
if ( !jni_ensure_jvm() )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
r =
|
||||
JNI_term_to_double_jarray(ta1,p1)
|
||||
&& JNI_term_to_jint(ta2,i2)
|
||||
&& JNI_term_to_jdouble(ta3,p4)
|
||||
&& ( (*env)->SetDoubleArrayRegion(env,(jdoubleArray)p1,(jsize)i2,1,&p4) , TRUE );
|
||||
|
||||
return jni_check_exception(env) && r;
|
||||
|
||||
}
|
||||
|
BIN
packages/swig/docs/icons/yap_16x16x32.png
Executable file
BIN
packages/swig/docs/icons/yap_16x16x32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 755 B |
11
packages/swig/swig.iml
Normal file
11
packages/swig/swig.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/android" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/java" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -192,13 +192,19 @@ compose_message(myddas_version(Version), _Leve) -->
|
||||
compose_message(yes, _Level) --> !,
|
||||
[ 'yes'- [] ].
|
||||
compose_message(Term, Level) -->
|
||||
%{writeln(Term)},
|
||||
location(Term, Level),
|
||||
%{writeln(location)},
|
||||
( { Level == error } -> display_consulting( Level ) ; { Level == warning } ),
|
||||
[nl],
|
||||
main_message( Term, Level ),
|
||||
{ '$show_consult_level'(LC) },
|
||||
main_message( Term, Level, LC ),
|
||||
%{writeln(main)},
|
||||
c_goal( Term, Level ),
|
||||
%{writeln(caller)},
|
||||
caller( Term, Level ),
|
||||
extra_info( Term, Level ),
|
||||
%{writeln(extra)},
|
||||
extra_info( Term, Level ),
|
||||
!,
|
||||
[nl,nl].
|
||||
compose_message(Term, Level) -->
|
||||
@ -210,7 +216,7 @@ compose_message(Term, Level) -->
|
||||
location(error(syntax_error(syntax_error(_,between(_,LN,_),FileName,_))), _ ) -->
|
||||
!,
|
||||
[ '~a:~d:0: ' - [FileName,LN] ] .
|
||||
location(error(style_check(style_check(_,LN,FileName,_ ) ), _), _ ) -->
|
||||
location(error(style_check(style_check(_,LN,FileName,_ ) ),_), _ ) -->
|
||||
% { stream_position_data( line_count, LN) },
|
||||
!,
|
||||
[ '~a:~d:0: ' - [FileName,LN] ] .
|
||||
@ -220,7 +226,7 @@ location( error(_,Term), Level ) -->
|
||||
{ lists:memberchk([p|p(M,Na,Ar,_File,_FilePos)], Term ) },
|
||||
[ '~a:~d:0: ~a in ~a:~q/~d:'-[F0, L,Level,M,Na,Ar] ],
|
||||
[nl].
|
||||
location( error(_,Term), Level ) -->
|
||||
location( error(_,Term), Level ) -->
|
||||
{ lists:memberchk([p|p(M,Na,Ar,File,FilePos)], Term ) }, !,
|
||||
[ '~a:~d:0: ~a in ~a:~q/~d:'-[File, FilePos,Level,M,Na,Ar] ],
|
||||
[nl].
|
||||
@ -232,7 +238,6 @@ main_message( error(syntax_error(syntax_error(Msg,between(L0,LM,LF),_Stream,Term
|
||||
!,
|
||||
['~*|!!! syntax error: ~s' - [LC,Msg]],
|
||||
[nl],
|
||||
% [prefix(' ')],
|
||||
( syntax_error_term( between(L0,LM,LF), Term )
|
||||
->
|
||||
[]
|
||||
@ -242,15 +247,16 @@ main_message( error(syntax_error(syntax_error(Msg,between(L0,LM,LF),_Stream,Term
|
||||
).
|
||||
main_message(error(style_check(style_check(singleton(SVs),_Pos,_File,P)),_), _, LC) -->
|
||||
!,
|
||||
% {writeln(ci)},
|
||||
{ clause_to_indicator(P, I) },
|
||||
[ '~*|!!! singleton variable~*c ~s in ~q.' - [ LC, NVs, 0's, SVsL, I] ],
|
||||
{ svs(SVs,SVs,SVsL),
|
||||
( SVs = [_] -> NVs = 0 ; NVs = 1 )
|
||||
}.
|
||||
main_message(error(style_check(style_check(multiple(N,A,Mod,I0),_Pos,File,_P)),_),_, LC) -->
|
||||
main_message(error(style_check(style_check(multiple(N,A,Mod,I0),_Pos,File,_P)),_), _, LC) -->
|
||||
!,
|
||||
[ '~*|!!! ~a redefines ~q from ~a.' - [LC,File, Mod:N/A, I0] ].
|
||||
main_message(error(style_check(style_check(discontiguous(N,A,Mod),_S,_W,_P)),_,LC) ,_)-->
|
||||
main_message(error(style_check(style_check(discontiguous(N,A,Mod),_S,_W,_P)),_) ,_, LC≈)-->
|
||||
!,
|
||||
[ '~*|!!! discontiguous definition for ~p.' - [LC,Mod:N/A] ].
|
||||
main_message(error(consistency_error(Who)), _Source, LC) -->
|
||||
|
68
qt/CMakeCache.txt
Normal file
68
qt/CMakeCache.txt
Normal file
@ -0,0 +1,68 @@
|
||||
# This is the CMakeCache file.
|
||||
# For build in directory: /Users/vsc/git/yap-6.3/qt
|
||||
# It was generated by CMake: /usr/local/Cellar/cmake/3.4.1/bin/cmake
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//No help, variable specified on the command line.
|
||||
CMAKE_BUILD_TYPE:UNINITIALIZED=Debug
|
||||
|
||||
//Program used to build from build.ninja files.
|
||||
CMAKE_MAKE_PROGRAM:FILEPATH=CMAKE_MAKE_PROGRAM-NOTFOUND
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=YAP
|
||||
|
||||
//Value Computed by CMake
|
||||
YAP_BINARY_DIR:STATIC=/Users/vsc/git/yap-6.3/qt
|
||||
|
||||
//Value Computed by CMake
|
||||
YAP_SOURCE_DIR:STATIC=/Users/vsc/git/yap-6.3
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=/Users/vsc/git/yap-6.3/qt
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=4
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.4.1/bin/cmake
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.4.1/bin/cpack
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.4.1/bin/ctest
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=CodeBlocks
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Ninja
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=/Users/vsc/git/yap-6.3
|
||||
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
|
||||
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.4.1/share/cmake
|
||||
|
@ -1,3 +1,16 @@
|
||||
mod( '$char_type' , '/Users/vsc/git/yap-6.3/os/chartypes.yap' ).
|
||||
mod( '$swi' , '/Users/vsc/git/yap-6.3/pl/swi.yap' ).
|
||||
mod( '$messages' , '/Users/vsc/git/yap-6.3/pl/messages.yap' ).
|
||||
mod( '$history' , '/Users/vsc/git/yap-6.3/pl/history.pl' ).
|
||||
mod( '$hacks' , '/Users/vsc/git/yap-6.3/pl/hacks.yap' ).
|
||||
mod( prolog , '/Users/vsc/git/yap-6.3/pl/error.yap' ).
|
||||
mod( dialect , '/Users/vsc/git/yap-6.3/pl/dialect.yap' ).
|
||||
mod( '$db_load' , '/Users/vsc/git/yap-6.3/pl/dbload.yap' ).
|
||||
mod( '$coroutining' , '/Users/vsc/git/yap-6.3/pl/corout.yap' ).
|
||||
mod( '$attributes' , '/Users/vsc/git/yap-6.3/pl/attributes.yap' ).
|
||||
mod( ytest , '/Users/vsc/git/yap-6.3/library/ytest.yap' ).
|
||||
sys //2.
|
||||
sys //2.
|
||||
sys //2.
|
||||
sys //2.
|
||||
sys //2.
|
||||
|
162
utils/analysis/graphs.yap
Normal file
162
utils/analysis/graphs.yap
Normal file
@ -0,0 +1,162 @@
|
||||
|
||||
pl_graphs(Dir - Mod) :-
|
||||
atom( Dir ),
|
||||
format(' ************* GRAPH: ~a ***********************/~n', [Dir]),
|
||||
atom_concat([Dir,'/*'], Pattern),
|
||||
expand_file_name( Pattern, Files ),
|
||||
member( File, Files ),
|
||||
( ( sub_atom(File,_,_,0,'.yap') ; sub_atom(File,_,_,0,'.pl') ) ->
|
||||
build_graph( File , Mod )
|
||||
;
|
||||
exists_directory( File ),
|
||||
\+ atom_concat(_, '/.', File),
|
||||
\+ atom_concat(_, '/..', File),
|
||||
\+ atom_concat(_, '/.git', File),
|
||||
pl_graphs( File - Mod )
|
||||
),
|
||||
fail.
|
||||
pl_graphs(_).
|
||||
|
||||
%%
|
||||
%% @pred build_graph( File, Mod)
|
||||
% adds a node to the file graph and marks which files are modules
|
||||
%
|
||||
% main side-effect facts like edge( F0-Mod:File )
|
||||
% exported( F-M , N/A ) or exported(F- M. Op ),
|
||||
% module_on ( M, File )
|
||||
% pred ( M :N/A )
|
||||
%
|
||||
build_graph(F, Mod) :-
|
||||
% writeln(F),
|
||||
preprocess_file( F, PF ),
|
||||
catch( open(PF, read, S, [script(true)]), _, fail ),
|
||||
repeat,
|
||||
nb_getval( current_module, MR ),
|
||||
catch(read_term( S, T, [term_position(Pos),module(MR),comments(Cs)] ), Throw, error(Throw) ),
|
||||
(
|
||||
T == end_of_file
|
||||
->
|
||||
!,% also, clo ops defined in the module M, if M \= Mod
|
||||
% ( sub_atom(F,_,_,_,'/matrix.yap') -> start_low_level_trace ; nospyall ),
|
||||
close(S)
|
||||
;
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
maplist( comment, Cs ),
|
||||
nb_setval( line, Line ),
|
||||
nb_getval( current_module, MC0 ),
|
||||
( Mod == prolog -> MC = prolog ; MC = MC0 ),
|
||||
get_graph( T, F, Pos, MC ),
|
||||
fail
|
||||
).
|
||||
|
||||
|
||||
get_graph( V , _F, _Pos, _M ) :-
|
||||
var( V ),
|
||||
!,
|
||||
error( instantiation_error ).
|
||||
get_graph( T, _F, _Pos, _M0 ) :-
|
||||
var(T),
|
||||
!.
|
||||
get_graph( M:T, F, _Pos, _M0 ) :- !,
|
||||
get_graph( T, F, _Pos, M ).
|
||||
get_graph( ( M:H :- B), F, _Pos, M0 ) :-
|
||||
!,
|
||||
get_graph( (H :- M0:B), F, _Pos, M ).
|
||||
get_graph( ( M:H --> B), F, _Pos, M0 ) :-
|
||||
!,
|
||||
get_graph( ( H --> M0:B), F, _Pos, M ).
|
||||
get_graph( ( A, _ --> B), F, _Pos, M ) :-
|
||||
get_graph( ( A --> B), F, _Pos, M ).
|
||||
get_graph( (H --> B), F, _Pos, M ) :-
|
||||
!,
|
||||
functor( H, N, Ar),
|
||||
Ar2 is Ar+2,
|
||||
add_deps( B, M, M:N/Ar2, F, _Pos, 2 ).
|
||||
get_graph( (H :- B), F, _Pos, M ) :-
|
||||
!,
|
||||
functor( H, N, Ar),
|
||||
add_deps( B, M, M:N/Ar, F, _Pos, 0 ).
|
||||
%% switches to new file n
|
||||
get_graph( (:-include( Fs ) ), F, _Pos, M ) :-
|
||||
!,
|
||||
source_graphs( M, F, Fs ).
|
||||
get_graph( (?- _ ), _F, _Pos, _M ) :- !.
|
||||
get_graph( (:- _ ), _F, _Pos, _M ) :- !.
|
||||
|
||||
source_graphs( M, F, Fs ) :-
|
||||
maplist( source_graph( M, F ), Fs ), !.
|
||||
source_graphs( M, F, Fs ) :-
|
||||
search_file( Fs, F, pl, NF ),
|
||||
build_graph( NF , M ), !.
|
||||
|
||||
add_deps(V, _M, _P, _F, _Pos, _) :-
|
||||
var(V), !.
|
||||
add_deps(M1:G, _M, _P, _F, _Pos,L) :-
|
||||
!,
|
||||
always_strip_module(M1:G, M2, G2),
|
||||
add_deps(G2, M2, _P, _F, _Pos, L).
|
||||
add_deps((A,B), M, P, F, _Pos, L) :-
|
||||
!,
|
||||
add_deps(A, M, P, F, _Pos, L),
|
||||
add_deps(B, M, P, F, _Pos, L).
|
||||
add_deps((A;B), M, P, F, _Pos, L) :- !,
|
||||
add_deps(A, M, P, F, _Pos, L),
|
||||
add_deps(B, M, P, F, _Pos, L).
|
||||
add_deps((A|B), M, P, F, _Pos, L) :- !,
|
||||
add_deps(A, M, P, F, _Pos, L),
|
||||
add_deps(B, M, P, F, _Pos, L).
|
||||
add_deps((A->B), M, P, F, _Pos, L) :- !,
|
||||
add_deps(A, M, P, F, _Pos, L),
|
||||
add_deps(B, M, P, F, _Pos, L).
|
||||
add_deps((A*->B), M, P, F, _Pos, L) :- !,
|
||||
add_deps(A, M, P, F, _Pos, L),
|
||||
add_deps(B, M, P, F, _Pos, L).
|
||||
add_deps(once(A), M, P, F, _Pos, L) :- !,
|
||||
add_deps(A, M, P, F, _Pos, L).
|
||||
add_deps({A}, M, P, F, _Pos, 2) :- !,
|
||||
add_deps(A, M, P, F, _Pos, 0).
|
||||
add_deps([_|_], M, P, F, Pos, 2) :-
|
||||
!,
|
||||
put_dep( (F-M:P :- prolog:'C'/3 ), Pos ).
|
||||
add_deps(String, _M, _P, _F, _Pos, _) :- string(String), !.
|
||||
add_deps([], _M, _P, _F, _Pos, 2) :- !.
|
||||
add_deps(!, _M, _P, _F, _Pos, _) :- !.
|
||||
add_deps(true, _M, _P, _F, _Pos, 0) :- !.
|
||||
add_deps(false, _M, _P, _F, _Pos, 0) :- !.
|
||||
add_deps(fail, _M, _P, _F, _Pos, 0) :- !.
|
||||
add_deps(repeat, _M, _P, _F, _Pos, 0) :- !.
|
||||
add_deps(A, M, P, F, Pos, L) :-
|
||||
% we're home, M:N/Ar -> P=M1:N1/A1
|
||||
functor(A, N, Ar0),
|
||||
Ar is Ar0+L,
|
||||
put_dep( ( F-M:P :- F-M:N/Ar ), Pos ).
|
||||
|
||||
put_dep( (Target :- F0-M:Goal ), Pos ) :-
|
||||
exported( ( F0-M:Goal :- F1-M1:N/Ar ) ), !,
|
||||
%follow ancestor chain
|
||||
ancestor( ( F1-M1:N/Ar :- FA-MA:NA/Ar ) ),
|
||||
put_dep( ( Target :- FA-MA:NA/Ar ), Pos ).
|
||||
% the base case, copying from the same module ( but maybe not same file 0.
|
||||
put_dep( ( Target :- _F-M:N/Ar ) , _ ) :-
|
||||
m_exists(M:N/Ar, F0),
|
||||
!,
|
||||
assert_new( edge( ( Target :- F0-M:N/Ar ) ) ).
|
||||
% prolog is visible ( but maybe not same file ).
|
||||
put_dep( ( Target :- _F-_prolog:N/Ar ), _ ) :-
|
||||
m_exists(prolog:N/Ar, F0),
|
||||
!,
|
||||
assert_new( edge( ( Target :- F0-prolog:N/Ar ) ) ).
|
||||
put_dep( ( _Target :- _F-Mod:_N/_Ar ), _Pos) :-
|
||||
var( Mod ), !.
|
||||
put_dep( ( Target :- F-Mod:N/Ar ), Pos) :-
|
||||
atom( Mod ),
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
assert_new( undef( (Target :- F-Mod:N/Ar ), Line) ).
|
||||
|
||||
ancestor( ( Younger :- Older) ) :-
|
||||
exported( ( Mid :- Older ) ), !,
|
||||
ancestor( ( Younger :- Mid) ).
|
||||
ancestor( (Older :- Older) ).
|
||||
|
||||
m_exists(P, F) :- private( F, P ), !.
|
||||
m_exists(P, F) :- public( F, P ).
|
698
utils/analysis/load.yap
Normal file
698
utils/analysis/load.yap
Normal file
@ -0,0 +1,698 @@
|
||||
/***********************************************************
|
||||
|
||||
load a program into a graph, but do not actually consult it.
|
||||
|
||||
***********************************************************/
|
||||
|
||||
load( D, _OMAP ) :-
|
||||
working_directory(_, D),
|
||||
fail.
|
||||
load( _, _Map ) :-
|
||||
% from libraries outside the current directories
|
||||
assert( node( attributes, woken_att_do/4, 'library/atts.yap', prolog ) ),
|
||||
fail.
|
||||
load( _ , Dirs ) :-
|
||||
dirs( Dirs ),
|
||||
%%% phase 1: find modules
|
||||
nb_setval( current_module, user ),
|
||||
nb_setval( private, false ),
|
||||
nb_setval( file_entry, user:user ),
|
||||
init_loop( Dirs ),
|
||||
maplist( pl_interfs, Dirs ),
|
||||
%%% phase 2: find C-code predicates
|
||||
maplist( c_preds, Dirs ).
|
||||
|
||||
dirs( Roots ) :-
|
||||
member( Root-_, Roots ),
|
||||
absolute_file_name( Root, FRoot ),
|
||||
rdir( FRoot ),
|
||||
fail.
|
||||
dirs( _Roots ).
|
||||
|
||||
rdir( FRoot ) :-
|
||||
absolute_file_name( FRoot, [glob(*), solutions(all), file_errors(fail)], File ),
|
||||
writeln(File),
|
||||
\+ doskip( File ),
|
||||
catch( file_property( File, type(directory) ), _, fail ),
|
||||
assert_new( dir( File ) ),
|
||||
assert_new( sub_dir( FRoot, File ) ),
|
||||
rdir( File ),
|
||||
fail.
|
||||
rdir(_).
|
||||
|
||||
c_preds(Dir - Mod) :-
|
||||
atom( Dir ),
|
||||
absolute_file_name( Dir, [glob(*), solutions(all), file_errors(fail)], File ),
|
||||
( ( sub_atom(File,_,_,0,'.c')
|
||||
;
|
||||
sub_atom(File,_,_,0,'.i')
|
||||
;
|
||||
sub_atom(File,_,_,0,'.C')
|
||||
;
|
||||
sub_atom(File,_,_,0,'.cpp')
|
||||
;
|
||||
sub_atom(File,_,_,0,'.icc')
|
||||
;
|
||||
sub_atom(File,_,_,0,'.h')
|
||||
) ->
|
||||
\+ doskip( File ),
|
||||
c_file( File , Mod )
|
||||
;
|
||||
exists_directory( File ),
|
||||
\+ doskip( File ),
|
||||
c_preds( File - Mod )
|
||||
),
|
||||
fail.
|
||||
c_preds(_).
|
||||
|
||||
|
||||
c_file(F, _Mod) :-
|
||||
consulted( F, _ ),
|
||||
!.
|
||||
c_file(F, Mod) :-
|
||||
% writeln(F),
|
||||
assert( consulted( F, Mod ) ),
|
||||
nb_setval( current_module, Mod ),
|
||||
open(F, read, S, [alias(c_file)]),
|
||||
repeat,
|
||||
read_line_to_string( S, String ),
|
||||
( String == end_of_file
|
||||
->
|
||||
!,
|
||||
close(S)
|
||||
;
|
||||
sub_string(String, _, _, _, `PL_extension`),
|
||||
%writeln(Fields),
|
||||
c_ext(S, Mod, F),
|
||||
fail
|
||||
;
|
||||
split_string(String, `,; ()\t\"\'`, Fields), %'
|
||||
%writeln(Fields),
|
||||
line_count(S, Lines),
|
||||
c_line(Fields , Mod, F:Lines),
|
||||
fail
|
||||
).
|
||||
|
||||
c_line([`}`], Mod, _) :- !,
|
||||
nb_setval( current_module, Mod ).
|
||||
c_line(Line, _Mod, _) :-
|
||||
append( _, [ `CurrentModule`, `=`, M|_], Line),
|
||||
system_mod(M, _Mod, Mod, _),
|
||||
nb_setval( current_module, Mod ).
|
||||
c_line(Line, Mod, F: LineP) :-
|
||||
break_line( Line, N/A, Fu),
|
||||
assert( node( Mod, N/A, F-LineP, Fu ) ),
|
||||
handle_pred( Mod, N, A, F ).
|
||||
|
||||
c_ext( S, Mod, F ) :-
|
||||
repeat,
|
||||
read_line_to_string( S, String ),
|
||||
(
|
||||
String == end_of_file
|
||||
->
|
||||
!
|
||||
;
|
||||
sub_string( String, _, _, _, `NULL` )
|
||||
->
|
||||
!
|
||||
;
|
||||
split_string(String, `,; (){}\t\"\'`, [`FRG`, NS,AS,FS|_]),
|
||||
atom_string(N,NS),
|
||||
atom_string(Fu,FS),
|
||||
number_string(A, AS),
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
assert( node( Mod , N/A, F-Line, Fu ) ),
|
||||
handle_pred( Mod, N, A, F )
|
||||
;
|
||||
split_string(String, `,; (){}\t\"\'`, [NS,AS,FS|_]),
|
||||
atom_string(N,NS),
|
||||
atom_string(Fu,FS),
|
||||
number_string(A, AS),
|
||||
stream_property( S, position( Pos ) ), writeln( Pos ),
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
Line0 is Line-1,
|
||||
assert( node( Mod, N/A, F-Line0, Fu ) ),
|
||||
handle_pred( Mod, N, A, F )
|
||||
).
|
||||
|
||||
|
||||
break_line( Line, N/A, c(Fu)) :-
|
||||
take_line( Line, NS, AS, FS ), !,
|
||||
atom_string(N,NS),
|
||||
atom_string(Fu,FS),
|
||||
number_string(A, AS).
|
||||
break_line( Line, N/A, swi(Fu)) :-
|
||||
take_line( Line, NS, AS, FS ), !,
|
||||
atom_string(N,NS),
|
||||
number_string(A, AS),
|
||||
atomic_concat([`pl_`,FS,`_`,A,`_va`], Fu).
|
||||
break_line( Line, N/A, bp(Fu)) :-
|
||||
take_line( Line, NS, AS, FS ), !,
|
||||
atom_string(N,NS),
|
||||
number_string(A, AS),
|
||||
atomic_concat([`pc_`,FS,`_`,A], Fu).
|
||||
break_line( Line, N/A, c(FuE, FuB)) :-
|
||||
take_line( Line, NS, AS, FSE, FSB ), !,
|
||||
atom_string(N,NS),
|
||||
atom_string(FuE,FSE),
|
||||
atom_string(FuB,FSB),
|
||||
number_string(A, AS).
|
||||
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `Yap_InitCPred`, NS, AS, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `Yap_InitAsmPred`, NS, AS, _, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `Yap_InitCmpPred`, NS, AS, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `Yap_InitCmpPred`, NS, AS, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `YAP_UserCPredicate`, NS, FS, AS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `PRED`, NS0, AS, FS|_], Line), !,
|
||||
append( [`pl_`, NS0, AS, `_va`], NS ).
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `PRED_IMPL`, NS0, AS, FS|_], Line), !,
|
||||
append( [`pl_`, NS0, AS, `_va`], NS ).
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `PL_register_foreign`, NS, AS, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `PRED_DEF`, NS0, AS, FS|_], Line), !,
|
||||
append( [`pl_`, NS0, AS, `_va`], NS ).
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `FRG`, NS, AS, FS|_], Line), !.
|
||||
% from odbc
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `NDET`, NS, AS, FS|_], Line), !.
|
||||
take_line( Line, NS, AS, FS ) :-
|
||||
append( _, [ `DET`, NS, AS, FS|_], Line), !.
|
||||
|
||||
|
||||
take_line( Line, AS, FS ) :-
|
||||
append( _, [ `REGISTER_CPRED`, FS, AS], Line), !.
|
||||
|
||||
|
||||
take_line( Line, NS, AS, FSE, FSB ) :-
|
||||
append( _, [ `Yap_InitCPredBack`, NS, AS, _, FSE, FSB|_], Line), !.
|
||||
|
||||
system_mod(`ATTRIBUTES_MODULE`, _, attributes, user ).
|
||||
system_mod(`HACKS_MODULE`, _, '$hacks' , sys ).
|
||||
system_mod(`USER_MODULE`, _, user, user ).
|
||||
system_mod(`DBLOAD_MODULE`, _, '$db_load', sys ).
|
||||
system_mod(`GLOBALS_MODULE`, _, globals, sys ).
|
||||
system_mod(`ARG_MODULE`, _, arg, sys ).
|
||||
system_mod(`PROLOG_MODULE`, _ , prolog, sys ).
|
||||
system_mod(`RANGE_MODULE`, _, range, user ).
|
||||
system_mod(`SWI_MODULE`, _, swi, sys ).
|
||||
system_mod(`OPERATING_SYSTEM_MODULE`, _, system , sys ).
|
||||
system_mod(`TERMS_MODULE`, _, terms , sys).
|
||||
system_mod(`SYSTEM_MODULE`, _, system, sys ).
|
||||
system_mod(`IDB_MODULE`, _, idb, user ).
|
||||
system_mod(`CHARSIO_MODULE`, _, charsio, sys ).
|
||||
system_mod(`cm`, M, M, user ).
|
||||
|
||||
call_c_files( File, Mod, _Fun, [CFile] ) :-
|
||||
search_file( CFile, File, c, F ),
|
||||
c_file(F, Mod).
|
||||
call_c_files( File, Mod, _Fun, CFile ) :-
|
||||
CFile \= [_|_],
|
||||
search_file( CFile, File, c, F ),
|
||||
c_file(F, Mod).
|
||||
|
||||
%
|
||||
|
||||
:- dynamic undo/3.
|
||||
|
||||
directive(G, F, M) :-
|
||||
% asserta( directive(G, F, M) ),
|
||||
( G = set_prolog_flag(F,V)
|
||||
->
|
||||
prolog_flag(F, O, V),
|
||||
asserta( undo( set_prolog_flag(F, O), F, M)),
|
||||
set_prolog_flag(F, V)
|
||||
;
|
||||
G = yap_flag(F,V)
|
||||
->
|
||||
prolog_flag(F, O, V),
|
||||
asserta( undo( yap_flag(F, O), F, M)),
|
||||
yap_flag(F, V)
|
||||
;
|
||||
G = op(A,B,O)
|
||||
->
|
||||
(current_op(OA,OB,O) -> true ; OA = 0, OB = fx ),
|
||||
asserta( undo( op(OA,OB,O), F, M)),
|
||||
op( A, B, O)
|
||||
;
|
||||
assert(M:G, R),
|
||||
asserta( undo(erase(R), F, M))
|
||||
).
|
||||
|
||||
clean_up(F, M) :-
|
||||
undo( G , F, M),
|
||||
call( G ),
|
||||
fail.
|
||||
clean_up(_,_).
|
||||
|
||||
%
|
||||
%
|
||||
%
|
||||
%
|
||||
pl_interfs(Dir - Mod) :-
|
||||
\+ doskip( Dir ),
|
||||
format('% ************* ~a\n', [Dir]),
|
||||
nb_setval( current_module, Mod ),
|
||||
atom( Dir ),
|
||||
directory_files( Dir , Files),
|
||||
member( File, Files ),
|
||||
atom_concat([Dir,'/',File], Path),
|
||||
( ( sub_atom(File,_,_,0,'.yap') ; sub_atom(File,_,_,0,'.pl') ; sub_atom(File,_,_,0,'.ypp') ) ->
|
||||
absolute_file_name( Path, APath ),
|
||||
pl_interface( APath , Mod )
|
||||
;
|
||||
exists_directory( Path ),
|
||||
\+ atom_concat(_, '/.', Path),
|
||||
\+ atom_concat(_, '/..', Path),
|
||||
\+ atom_concat(_, '/.git', Path),
|
||||
absolute_file_name( Path, APath ),
|
||||
\+ doskip( APath ),
|
||||
pl_interfs( APath - Mod )
|
||||
),
|
||||
fail.
|
||||
pl_interfs(_).
|
||||
|
||||
%%
|
||||
% pl_interface( File, Mod)
|
||||
% adds a node to the file graph and marks which files are modules
|
||||
%
|
||||
% main side-effect facts like edge( F0-Mod:File )
|
||||
% exported( ( FMNATarget :- FMNASource ) ) ou exported(F-M, Op ),
|
||||
% module_on ( M, File )
|
||||
%
|
||||
pl_interface(F, _Mod) :-
|
||||
module_on( F , _M, _Is),
|
||||
!.
|
||||
pl_interface(F, Mod) :-
|
||||
consulted(F, Mod ),
|
||||
!.
|
||||
pl_interface(F, Mod) :-
|
||||
format('------------------------- ~a~n',[F]),
|
||||
% ( sub_atom(F,_,_,_,'matrix.yap') -> spy get_interf ; true ),
|
||||
% ( sub_atom( F, _, _, 0, 'gecode.yap' ) -> spy user_deps; true ),
|
||||
%( F = '/Users/vsc/git/yap-6.3/library/ytest.yap' -> spy get_interface/3 ; true ),
|
||||
assert_new(consulted(F, Mod ) ),
|
||||
nb_getval( private, Default ),
|
||||
nb_setval( private, false ),
|
||||
nb_getval( file_entry, OF:OMod ),
|
||||
nb_setval( file_entry, F:Mod ),
|
||||
preprocess_file( F, PF ),
|
||||
catch( open(PF, read, S, [script(true)]) , _, fail ),
|
||||
repeat,
|
||||
nb_getval( current_module, MR ),
|
||||
catch( read_term( S, T, [module( MR ),term_position(Pos)] ), Throw, error( Throw)), %( sub_atom(F,_,_,_,'e.y
|
||||
writeln(T),
|
||||
( T == end_of_file
|
||||
->
|
||||
!,
|
||||
close(S),
|
||||
clean_up( MR, F ),
|
||||
(
|
||||
c_dep( F, Fc),
|
||||
c_file( Fc, MR ),
|
||||
fail
|
||||
;
|
||||
build_graph( F, MR ),
|
||||
fail
|
||||
% cleanup
|
||||
;
|
||||
module_on( F , _M, _Is)
|
||||
->
|
||||
|
||||
% also, close ops defined in the module M, if M \= Mod
|
||||
nb_setval( current_module, Mod ),
|
||||
nb_setval( private, Default ),
|
||||
nb_setval( file_entry, OF:OMod )
|
||||
;
|
||||
true
|
||||
)
|
||||
;
|
||||
nb_getval( current_module, MC0 ),
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
nb_setval( line, Line ),
|
||||
( Mod == prolog -> MC = prolog ; MC = MC0 ),
|
||||
get_interface( T, F, MC ),
|
||||
fail
|
||||
).
|
||||
|
||||
get_interface( T, _F, _M0 ) :-
|
||||
% ( T = (:- op(_,_,_)) -> trace ; true ),
|
||||
var(T),
|
||||
!.
|
||||
%% switches to new file n
|
||||
get_interface( (:- D ), F, M ) :-
|
||||
!,
|
||||
get_directive( D, F, M ).
|
||||
get_interface( (?- _ ), _F, _M ) :-
|
||||
!.
|
||||
get_interface( T, F, M0 ) :-
|
||||
always_strip_module( M0:T, M, NT),
|
||||
(
|
||||
NT = goal_expansion(_,_) ;
|
||||
NT = goal_expansion(_,_,_);
|
||||
NT = term_expansion( _, _ )
|
||||
),
|
||||
!,
|
||||
directive(NT, F, M).
|
||||
get_interf( ( M:H :- _B), F, _M ) :-
|
||||
!,
|
||||
get_interface( H, F, M ).
|
||||
% not the time t
|
||||
get_interface( (H :- _B), F, M ) :-
|
||||
!,
|
||||
get_interface( H, F, M ).
|
||||
get_interface( G , F, M ) :-
|
||||
functor( G, N, A),
|
||||
handle_pred( M, N, A, F ).
|
||||
|
||||
get_directive( V , _F, _M ) :-
|
||||
var( V ),
|
||||
!.
|
||||
get_directive( module( NM0, Is ), F, _M ) :-
|
||||
!,
|
||||
(NM0 = system(_) -> NM = prolog ; NM = NM0 ),
|
||||
assert(module_file( F, NM ) ),
|
||||
nb_setval( current_module, NM ),
|
||||
assert( module_on( F , NM, Is) ),
|
||||
maplist( public(F, NM), Is ),
|
||||
nb_setval( private, true ).
|
||||
|
||||
get_directive( reexport( Loc, Is ), F, M ) :-
|
||||
!,
|
||||
% find the file
|
||||
search_file( Loc, F, prolog, NF ),
|
||||
include_files( F, M, Is, NF ),
|
||||
% extend the interface.rg
|
||||
retract( module_on( F , M, Is0) ),
|
||||
append( Is0, Is, NIs ),
|
||||
assert( module_on( F , M, NIs) ),
|
||||
maplist( public(F, M), NIs ).
|
||||
get_directive( use_module( Loc, Is ), F, M ) :- !,
|
||||
!,
|
||||
include_files( F, M, Is, Loc ).
|
||||
get_directive( use_module( Loc ), F, M ) :- !,
|
||||
!,
|
||||
include_files( F, M, Loc ).
|
||||
% nb_getval(current_module,MM), writeln(NM:MM:M).
|
||||
get_directive( use_module( Loc, Is, _ ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Is, Loc ).
|
||||
get_directive( consult( Files ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( reconsult( Files ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( ensure_loaded( Files ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( include( Files ), F, M ) :-
|
||||
!,
|
||||
source_files( F, M, Files ).
|
||||
get_directive( load_files( Files , [_|_] ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( bootstrap( Files ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( ( G -> _ ; _ ) , F, M) :-
|
||||
!,
|
||||
get_directive( G , F, M).
|
||||
get_directive( catch( G , _, _ ) , F, M) :-
|
||||
!,
|
||||
get_directive( G , F, M).
|
||||
get_directive( initialization( G , now ) , F, M) :-
|
||||
!,
|
||||
get_directive( G , F, M).
|
||||
get_directive( load_files( Files , [_|_] ), F, M ) :-
|
||||
!,
|
||||
include_files( F, M, Files ).
|
||||
get_directive( [] , _F0, _M ) :- !.
|
||||
get_directive( [F1|Fs] , F, M ) :-
|
||||
strip_module( M:F, M1, F1),
|
||||
!,
|
||||
include_files( F, M1, F1 ),
|
||||
get_directive( Fs , F, M ).
|
||||
% don't actually use \this one.
|
||||
get_directive( load_foreign_files(Fs, _, Fun), F, M ) :-
|
||||
!,
|
||||
call_c_files( F, M, Fun, Fs ).
|
||||
get_directive( load_foreign_library(F), F0, M ) :-
|
||||
!,
|
||||
always_strip_module(M:F, M1, F1),
|
||||
call_c_files( F0, M1, '', F1 ).
|
||||
get_directive( load_foreign_library(F,Fun), F0, M ) :-
|
||||
!,
|
||||
always_strip_module(M:F, M1, F1),
|
||||
call_c_files( F0, M1, Fun, F1 ).
|
||||
get_directive( use_foreign_library(F), F0, M ) :-
|
||||
!,
|
||||
always_strip_module(M:F, M1, F1),
|
||||
call_c_files( F0, M1, '', F1 ).
|
||||
get_directive( system_module( _NM, _Publics, _Hiddens), _F, _M ) :-
|
||||
!.
|
||||
get_directive( style_checker( _ ), _F, _M ) :-
|
||||
!.
|
||||
get_directive( dynamic( T ), F, M ) :-
|
||||
!,
|
||||
declare_functors( T, F, M ).
|
||||
get_directive( multifile( T ), F, M ) :- % public?
|
||||
!,
|
||||
declare_functors( T, F, M ).
|
||||
get_directive( meta_predicate( T ), F, M ) :-!,
|
||||
declare_terms( T, F, M ), % public?
|
||||
!.
|
||||
get_directive( '$install_meta_predicate'( H, M), F, __M ) :-
|
||||
!,
|
||||
declare_functors( H, F, M ).
|
||||
get_directive( thread_local( T ), F, M ) :-
|
||||
!,
|
||||
declare_functors( T, F, M ).
|
||||
get_directive( op( X, Y, Z), F, M ) :-
|
||||
!,
|
||||
always_strip_module(M:Z, M1, Z1),
|
||||
directive(op( X, Y, Z1), F, M1).
|
||||
get_directive( record( Records ), F, M ) :-
|
||||
!,
|
||||
handle_record( Records, F, M).
|
||||
get_directive( set_prolog_flag(dollar_as_lower_case,On), F, M ) :-
|
||||
!,
|
||||
directive(set_prolog_flag(dollar_as_lower_case,On), F, M).
|
||||
|
||||
% support SWI package record
|
||||
handle_record( (Records1, Records2), F, M ) :-
|
||||
!,
|
||||
handle_record( Records1, F, M ),
|
||||
handle_record( Records2, F, M ).
|
||||
handle_record( Record, F, M ) :-
|
||||
Record =.. [Constructor|Fields],
|
||||
atom_concat(Constructor, '_data', Data),
|
||||
handle_pred( M, Data, 3, F),
|
||||
atom_concat(default_, Constructor, New),
|
||||
handle_pred( M, New, 1, F),
|
||||
atom_concat(is_, Constructor, Is),
|
||||
handle_pred( M, Is, 1, F),
|
||||
atom_concat(make_, Constructor, Make),
|
||||
handle_pred( M, Make, 2, F),
|
||||
handle_pred( M, Make, 3, F),
|
||||
atom_concat([set_, Constructor,'_fields'], Sets),
|
||||
handle_pred( M, Sets, 3, F),
|
||||
handle_pred( M, Sets, 4, F),
|
||||
atom_concat([set_, Constructor,'_field'], Set),
|
||||
handle_pred( M, Set, 3, F),
|
||||
maplist( handle_record_field( Constructor, F, M) , Fields ).
|
||||
|
||||
handle_record_field( Constructor, F, M, Name:_=_ ) :-
|
||||
!,
|
||||
handle_record_field_name( Constructor, F, M, Name).
|
||||
handle_record_field( Constructor, F, M, Name:_ ) :-
|
||||
!,
|
||||
handle_record_field_name( Constructor, F, M, Name).
|
||||
handle_record_field( Constructor, F, M, Name=_ ) :-
|
||||
!,
|
||||
handle_record_field_name( Constructor, F, M, Name).
|
||||
handle_record_field( Constructor, F, M, Name ) :-
|
||||
handle_record_field_name( Constructor, F, M, Name).
|
||||
|
||||
handle_record_field_name( Constructor, F, M, Name) :-
|
||||
atom_concat([ Constructor,'_', Name], Val),
|
||||
handle_pred( M, Val, 2, F),
|
||||
atom_concat([ set_, Name, '_of_', Constructor ], Set),
|
||||
handle_pred( M, Set, 3, F),
|
||||
handle_pred( M, Set, 2, F),
|
||||
atom_concat([ nb_set_, Name, '_of_', Constructor ], Set),
|
||||
handle_pred( M, Set, 3, F),
|
||||
handle_pred( M, Set, 2, F).
|
||||
|
||||
handle_pred( M, N, A, F ) :-
|
||||
(
|
||||
system_mod( _, _, M, sys )
|
||||
->
|
||||
(
|
||||
atom_concat('$',_,N)
|
||||
->
|
||||
private( F, M, N/A )
|
||||
;
|
||||
public( F, M, N/A )
|
||||
)
|
||||
;
|
||||
( nb_getval( private, false )
|
||||
->
|
||||
public( F, M, N/A )
|
||||
;
|
||||
private( F, M, N/A )
|
||||
)
|
||||
).
|
||||
|
||||
handle_op( F, M, Op ) :-
|
||||
directive( Op, F, M ).
|
||||
|
||||
exported( NF, F, NM, M, op(X,Y,Z)) :-
|
||||
!,
|
||||
public( NF , NM:op(X,Y,Z) ),
|
||||
handle_op( F, M , op(X,Y,Z) ).
|
||||
exported( NF, F, NM, M, N/A) :- !,
|
||||
% sink no more
|
||||
retractall( exported(( _ :- F-M:N/A) ) ),
|
||||
assert_new( exported( (F-M:N/A :- NF-NM:N/A )) ).
|
||||
exported( NF, F, NM, M, N/A as NN) :- !,
|
||||
% sink no more
|
||||
retractall( exported(( _ :- F-M:N/A) ) ),
|
||||
assert_new( exported( ( F-M:NN/A :- NF-NM:N/A ) ) ).
|
||||
exported( NF, F, NM, M, N//A) :- !,
|
||||
A2 is A+2,
|
||||
% sink no more
|
||||
retractall( exported(( _ :- F-M:N/A2) ) ),
|
||||
assert_new( exported( (F-M:N/A2 :- NF-NM:N/A2) ) ).
|
||||
exported( NF, F, NM, M, N//A as NN) :- !,
|
||||
A2 is A+2,
|
||||
% sink no more
|
||||
retractall( exported(( _ :- F-M:N/A2) ) ),
|
||||
assert_new( exported( ( F-M:NN/A2 :- NF-NM:N/A2 )) ).
|
||||
|
||||
import_publics( F, ProducerMod, ConsumerMod ) :-
|
||||
public(F, ProducerMod:op(X,Y,Z) ),
|
||||
handle_op( F, ConsumerMod, op(X,Y,Z) ),
|
||||
fail.
|
||||
import_publics( _F, _ProducerMod, _ConsumerMod ).
|
||||
|
||||
all_imported( ProducerFile, ConsumerFile, ProducerMod, ConsumerMod ) :-
|
||||
public(ProducerFile, ProducerMod:op(X,Y,Z) ),
|
||||
handle_op( ConsumerFile, ConsumerMod, op(X,Y,Z) ),
|
||||
fail.
|
||||
all_imported( ProducerFile, ConsumerFile, ProducerMod, ConsumerMod ) :-
|
||||
public(ProducerFile, ProducerMod:N/A ),
|
||||
exported( ProducerFile, ConsumerFile, ProducerMod, ConsumerMod, N/A ),
|
||||
fail.
|
||||
all_imported( _ProducerFile, _ConsumerFile, _ProducerMod, _ConsumerMod ).
|
||||
|
||||
|
||||
include_files( F, M, Files ) :-
|
||||
include_files( F, M, _Is, Files ).
|
||||
|
||||
include_files( F, M, Is, Files ) :-
|
||||
maplist( include_files( F, M, Is ), Files ),
|
||||
!.
|
||||
include_files( F, M, Is, -Files ) :-
|
||||
!,
|
||||
include_files( F, M, Is, Files).
|
||||
include_files( F, M, Is, Files ) :-
|
||||
!,
|
||||
always_strip_module(M:Files, M1, NFiles),
|
||||
include_file( F, M1, Is, NFiles ).
|
||||
|
||||
include_file( F, M, Is, Loc ) :-
|
||||
is_list( Loc ), !,
|
||||
maplist( include_file( F, M, Is), Loc ).
|
||||
include_file( F, M, Is0, Loc ) :-
|
||||
nb_getval( private, Private ), % find the file
|
||||
once( search_file( Loc, F, prolog, NF ) ),
|
||||
% depth visit
|
||||
pl_interface(NF, M),
|
||||
% should verify Is in _Is
|
||||
% link b
|
||||
( module_on(NF, NM, Is)
|
||||
->
|
||||
( var(Is0) -> Is = Is0 ; true ),
|
||||
maplist( exported( NF, F, NM, M), Is0 )
|
||||
;
|
||||
all_imported( NF, F, NM, M)
|
||||
),
|
||||
nb_setval( private, Private ).
|
||||
|
||||
source_files( F, M, Files ) :-
|
||||
maplist( source_files( F, M ), Files ),
|
||||
!.
|
||||
source_files( F, M, Loc ) :-
|
||||
source_file( F, M, Loc ).
|
||||
|
||||
source_file( F, M, Loc ) :-
|
||||
once( search_file( Loc, F, prolog, NF ) ),
|
||||
% depth visit
|
||||
pl_source(NF, F, M). % should verify Is in _Is
|
||||
|
||||
pl_source(F, F0, Mod) :-
|
||||
%writeln( -F ),
|
||||
preprocess_file( F, PF ),
|
||||
catch( open(PF, read, S, []) , _, fail ),
|
||||
repeat,
|
||||
nb_getval( current_module, MR ),
|
||||
%( sub_atom(F,_,_,_,'examples/matrix.yap') -> spy get_interf ; nospyall ),
|
||||
catch( read_term( S, T, [module( MR ),term_position(Pos)] ), Throw, error( Throw)),
|
||||
(
|
||||
T == end_of_file
|
||||
->
|
||||
!,
|
||||
close(S)
|
||||
;
|
||||
nb_getval( current_module, MC0 ),
|
||||
stream_position_data( line_count, Pos, Line ),
|
||||
nb_setval( line, Line ),
|
||||
( Mod == prolog -> MC = prolog ; MC = MC0 ),
|
||||
get_interface( T, F0, MC ),
|
||||
fail
|
||||
).
|
||||
|
||||
declare_functors( T, _F, _M1) :- var(T), !,
|
||||
error( unbound_variable ).
|
||||
declare_functors( M:T, F, _M1) :- !,
|
||||
declare_functors( T, F, M).
|
||||
declare_functors( (T1,T2), F, M1) :- !,
|
||||
declare_functors( T1, F, M1),
|
||||
declare_functors( T2, F, M1).
|
||||
declare_functors( Ts, F, M1) :-
|
||||
maplist( declare_functor( F, M1), Ts ), !.
|
||||
declare_functors( T, F, M1) :-
|
||||
declare_functor( F, M1, T).
|
||||
|
||||
declare_functor(File, M, N/A) :-
|
||||
handle_pred( M, N, A, File ).
|
||||
|
||||
declare_terms( T, _F, _M1) :- var(T), !,
|
||||
error( unbound_variable ).
|
||||
declare_terms( M:T, F, _M1) :- !,
|
||||
declare_functors( T, F, M).
|
||||
declare_terms( (N1,N2), F, M) :-
|
||||
number(N1),
|
||||
number(N2),
|
||||
!,
|
||||
declare_term( F, M, (N1,N2)).
|
||||
declare_terms( (T1,T2), F, M1) :- !,
|
||||
declare_terms( T1, F, M1),
|
||||
declare_terms( T2, F, M1).
|
||||
declare_terms( Ts, F, M1) :-
|
||||
maplist( declare_term( F, M1), Ts ), !.
|
||||
declare_terms( T, F, M1) :-
|
||||
declare_term( F, M1, T).
|
||||
|
||||
declare_term(F, M, S) :-
|
||||
functor(S, N, A),
|
||||
handle_pred( M, N, A, F ).
|
@ -57,10 +57,12 @@ inline( []/0 ).
|
||||
%
|
||||
|
||||
main :-
|
||||
trace,
|
||||
init,
|
||||
fail.
|
||||
main :-
|
||||
unix(argv([D])),
|
||||
trace,
|
||||
Dirs = ['C'-prolog,
|
||||
'os'-prolog,
|
||||
'pl'-prolog,
|
||||
@ -91,8 +93,8 @@ distribute( Root, File-Class, Path-Class) :-
|
||||
atom_concat([Root, /, File], Path ).
|
||||
|
||||
init :-
|
||||
retractall(dir(_)),
|
||||
retractall(s8Sadir(_)),
|
||||
retractall(dir(_)),
|
||||
retractall(s8Sadir(_)),
|
||||
retractall(edge(_)),
|
||||
retractall(private(_,_)),
|
||||
retractall(public(_,_)),
|
||||
@ -101,7 +103,8 @@ init :-
|
||||
retractall(module_on(_,_,_)),
|
||||
retractall(op_export(_,_,_)),
|
||||
retractall(exported(_)),
|
||||
retractall(do_comment(_,_,_,_,_)).
|
||||
retractall(do_comment(_,_,_,_,_)),
|
||||
fail.
|
||||
init :-
|
||||
user_c_dep(A,B),
|
||||
do_user_c_dep(A,B),
|
||||
@ -205,7 +208,7 @@ remove_escapes([A|Cs], [A|NCs]) :-
|
||||
remove_escapes(Cs, NCs).
|
||||
remove_escapes( [], [] ).
|
||||
|
||||
always_strip_module(V, M, V1) :-
|
||||
always_strip_module(V, M, V1) :-
|
||||
fully_strip_module(V, M, V1).
|
||||
|
||||
c_links :-
|
||||
@ -311,16 +314,16 @@ prolog_file_type(c, '.i').
|
||||
% handle some special cases.
|
||||
%
|
||||
search_file( library(boot/F) , LocF, Type, FN ) :- !,
|
||||
search_file( '..'/pl/F , LocF, Type, FN ).
|
||||
search_file( '..'/pl/F , LocF, Type, FN ).
|
||||
%try to use your base
|
||||
search_file( F0, LocF, Type, FN ) :-
|
||||
filename(F0, F),
|
||||
file_directory_name(LocF, LOC),
|
||||
file_directory_name(F, D),
|
||||
file_directory_name(LocF, LOC),
|
||||
file_directory_name(F, D),
|
||||
file_base_name(F, F1),
|
||||
candidate_dir(LOC, '/', D, Left),
|
||||
absolute_file_name(F1, [
|
||||
relative_to(Left),
|
||||
relative_to(Left),
|
||||
file_type(Type),file_errors(fail),
|
||||
access(read) ], FN ).
|
||||
search_file( Loc , F, _FN ) :-
|
||||
@ -352,7 +355,7 @@ candidate_dir_down(Loc, _Source, D, Loc) :-
|
||||
candidate_dir( Loc, _Source, D, OLoc) :-
|
||||
sub_dir(NLoc, Loc),
|
||||
candidate_dir_down(NLoc, Source, D, OLoc).
|
||||
|
||||
|
||||
match('.', _Loc) :- !.
|
||||
match(D, Loc) :-
|
||||
file_base_name( D, B),
|
||||
@ -360,10 +363,10 @@ match(D, Loc) :-
|
||||
file_directory_name( D, ND),
|
||||
file_directory_name( D, NLoc),
|
||||
match(ND, NLoc).
|
||||
|
||||
|
||||
|
||||
|
||||
filename(A, A) :- atom(A), !.
|
||||
filename(A/B, NAB) :-
|
||||
filename(A/B, NAB) :-
|
||||
filename(A, NA),
|
||||
filename(B, NB),
|
||||
atom_concat([NA,'/', NB], NAB).
|
||||
|
0
utils/tmp/foreigns.c
Normal file
0
utils/tmp/foreigns.c
Normal file
0
utils/tmp/foreigns.yap
Normal file
0
utils/tmp/foreigns.yap
Normal file
Reference in New Issue
Block a user