"Fossies" - the Fresh Open Source Software Archive

Member "irods-4.2.8/plugins/rule_engines/irods_rule_engine_plugin-irods_rule_language/include/cache.proto.hpp" (14 May 2020, 1195 Bytes) of package /linux/misc/irods-4.2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* For copyright information please refer to files in the COPYRIGHT directory
    2  */
    3 #ifndef CACHE_PROTO_HPP
    4 #define CACHE_PROTO_HPP
    5 
    6 typedef const void * ( CacheCopyFuncType )( unsigned char *, unsigned char **, unsigned char **, const void *, Hashtable *, int );
    7 
    8 #endif
    9 
   10 #define RE_STRUCT_FUNC(T) CONCAT(copy, T)
   11 
   12 #define RE_STRUCT_FUNC_TYPE CacheCopyFuncType
   13 
   14 #define RE_STRUCT_FUNC_PROTO(T) \
   15         T* RE_STRUCT_FUNC(T)(unsigned char *buf, unsigned char **p, unsigned char **pointers, T *ptr, Hashtable *objectMap, int generatePtrDesc)
   16 
   17 #define RE_STRUCT_FUNC_PROTO_NO_BUF(T) \
   18         T* RE_STRUCT_FUNC(T)(unsigned char *, unsigned char **p, unsigned char **pointers, T *ptr, Hashtable *objectMap, int generatePtrDesc)
   19 
   20 #define RE_STRUCT_FUNC_PROTO_NO_BUF_PTR_DESC(T) \
   21         T* RE_STRUCT_FUNC(T)(unsigned char *, unsigned char **p, unsigned char **pointers, T *ptr, Hashtable *objectMap, int)
   22 
   23 /* #define COPY_FUNC_BEGIN(T) \
   24      COPY_FUNC_PROTO(T) {  \
   25           allocateInBuffer(T, ecopy, e); */
   26 
   27 #define RE_STRUCT_GENERIC_FUNC_PROTO(T, cpfn) \
   28         T* RE_STRUCT_FUNC(T)(unsigned char *buf, unsigned char **p, unsigned char **pointers, T *ptr, RE_STRUCT_FUNC_TYPE *cpfn, Hashtable *objectMap, int generatePtrDesc)