Smaller updates:

constant use of longjmp
conflict with python headers
win32 support
dll support
This commit is contained in:
Vitor Santos Costa
2017-02-20 15:28:46 +00:00
parent 55879dbd6c
commit 65ff3ed471
131 changed files with 8125 additions and 5154 deletions

View File

@@ -57,7 +57,8 @@ else (WIN32)
endif()
install(TARGETS libxml2
LIBRARY DESTINATION ${dlls}
LIBRARY DESTINATION ${libdir}
RUNTIME DESTINATION ${dlls}
ARCHIVE DESTINATION ${dlls}
)
endif(WIN32)
@@ -113,7 +114,8 @@ IF (RAPTOR_FOUND)
set_target_properties (raptor PROPERTIES PREFIX "")
install(TARGETS raptor
LIBRARY DESTINATION ${dlls}
LIBRARY DESTINATION ${dlls}
RUNTIME DESTINATION ${dlls}
ARCHIVE DESTINATION ${dlls}
)

View File

@@ -28,7 +28,7 @@
#include "raptor2.h"
#endif
void raptor_yap_init(void);
X_API void raptor_yap_init(void);
raptor_world *world;
@@ -58,7 +58,7 @@ static YAP_Atom term_load(const raptor_term *term) {
case RAPTOR_TERM_TYPE_UNKNOWN:
default:
raptor_log_error_formatted(term->world, RAPTOR_LOG_LEVEL_ERROR, NULL,
raptor_log_error_formatted(term->world, RAPTOR_LOG_LEVEL_ERROR, NULL,
"Triple has unsupported term type %d",
term->type);
break;
@@ -159,7 +159,7 @@ static inline void raptor_yap_halt(int exit, void *world) {
raptor_free_world((raptor_world *)world);
}
void raptor_yap_init(void) {
X_API void raptor_yap_init(void) {
world = raptor_new_world();
YAP_HaltRegisterHook(raptor_yap_halt, (void *)world);

View File

@@ -28,7 +28,7 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
void libxml2_yap_init (void);
X_API void libxml2_yap_init (void);
struct exo_aux {
YAP_Functor functor;
@@ -159,7 +159,7 @@ load_xml ( void )
extern Int YAP_UserCPredicate(const char *, Int f(void), int arity);
void libxml2_yap_init (void)
X_API void libxml2_yap_init (void)
{
YAP_UserCPredicate("load_xml", load_xml, 2);
YAP_UserCPredicate("load_xml2", load_xml, 2);