Changeset 18303

Show
Ignore:
Timestamp:
08/27/08 15:41:28 (4 months ago)
Author:
frsyuki
Message:

lang/c/mpio: added mp::callback_message and mp::object_destructor

Location:
lang/c/mpio/trunk/mp
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • lang/c/mpio/trunk/mp/Makefile

    r18183 r18303  
    33                  utility.h \ 
    44                  dispatch.h dispatch_impl.h \ 
    5                   io.h io_impl.h ios.h \ 
    6                   state.h \ 
    75                  byte_array.h byte_array_impl.h \ 
    86                  mempool.h mempool_impl.h \ 
     
    119                  buffer.h buffer_impl.h \ 
    1210                  object_callback.h \ 
    13                   object_initializer.h \ 
     11                  callback_message.h \ 
    1412                  async.h async_impl.h \ 
    1513                  serialize.h \ 
     
    4644                                                sublineit.gsub!(/\[MP_ARGS_ITERATOR\]/,      "#{it}" ) ;\ 
    4745                                                if it == 1 ;\ 
    48                                                         sublineit.gsub!(/MP_ARGS_ITERATOR_COLON/, " " ) ;\ 
     46                                                        sublineit.gsub!(/MP_ARGS_ITERATOR_FIRST_COLON/, " " ) ;\ 
    4947                                                else ;\ 
    50                                                         sublineit.gsub!(/MP_ARGS_ITERATOR_COLON/, "," ) ;\ 
     48                                                        sublineit.gsub!(/MP_ARGS_ITERATOR_FIRST_COLON/, "," ) ;\ 
     49                                                end ;\ 
     50                                                if it == n ;\ 
     51                                                        sublineit.gsub!(/MP_ARGS_ITERATOR_LAST_COLON/, " " ) ;\ 
     52                                                else ;\ 
     53                                                        sublineit.gsub!(/MP_ARGS_ITERATOR_LAST_COLON/, "," ) ;\ 
    5154                                                end ;\ 
    5255                                                subresult << sublineit ;\ 
  • lang/c/mpio/trunk/mp/object_callback.pre.h

    r18183 r18303  
    2121 
    2222namespace mp { 
     23 
     24 
     25template <typename T> 
     26static void object_destructor(void* obj) 
     27{ 
     28        reinterpret_cast<T*>(obj)->~T(); 
     29} 
    2330 
    2431 
  • lang/c/mpio/trunk/mp/utility.pre.h

    r18183 r18303  
    1919#ifndef MP_UTILITY_H__ 
    2020#define MP_UTILITY_H__ 
     21 
     22#include <memory> 
    2123 
    2224namespace mp {