Skip to content

Commit 84c535a

Browse files
committed
Problem: local hooks from Zproject were removed
Solution: regenerate from the latest Zproject version to add back autoconf and CMake project-local hooks and fix the CMake CI build.
1 parent 5e6c125 commit 84c535a

14 files changed

+28
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ install(TARGETS czmq
204204
RUNTIME DESTINATION bin # .dll file
205205
)
206206

207+
include(${CMAKE_CURRENT_SOURCE_DIR}/src/CMakeLists-local.txt) # Optional project-local hook
208+
207209
########################################################################
208210
# pkgconfig
209211
########################################################################

bindings/ruby/lib/czmq/ffi/zactor.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zdir.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zdir_patch.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zfile.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zframe.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zhash.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zhashx.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/ziflist.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zlist.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zloop.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zmsg.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

bindings/ruby/lib/czmq/ffi/zsock.rb

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __ptr
3838
raise DestroyedError unless @ptr
3939
@ptr
4040
end
41+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
42+
alias_method :to_ptr, :__ptr
4143
# Nullify internal pointer and return pointer pointer
4244
def __ptr_give_ref
4345
raise DestroyedError unless @ptr

configure.ac

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ AC_PROG_SED
5656
AC_PROG_AWK
5757
PKG_PROG_PKG_CONFIG
5858

59+
AX_PROJECT_LOCAL_HOOK # Optional project-local hook (acinclude.m4)
60+
5961
# Code coverage
6062
AC_ARG_WITH(gcov, [AS_HELP_STRING([--with-gcov=yes/no],
6163
[With GCC Code Coverage reporting.])],

0 commit comments

Comments
 (0)