]> git.lyx.org Git - lyx.git/blob - sigc++/adaptor.cc
more FILMagain stuff
[lyx.git] / sigc++ / adaptor.cc
1 /* 
2  * Copyright 1999 Karl Nelson <kenelson@ece.ucdavis.edu>
3  * 
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  * 
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  * 
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 #include <sigc++/bind.h>
19
20 #ifdef SIGC_CXX_NAMESPACES
21 namespace SigC
22 {
23 #endif //SIGC_CXX_NAMESPACES
24
25 void AdaptorSlot_::copy_callback(SlotData* sdata,AdaptorNode* node)
26   {
27    sdata->list_.insert_direct(sdata->list_.begin(),node);
28
29    int i;
30    char *p1=(char*)&(node->data_),*p2=(char*)&(sdata->data_);
31    for (i=0;i<sizeof(Callback_)/sizeof(char);i++)
32      { *p1=*p2; p1++; p2++; }
33   }
34
35
36 #ifdef SIGC_CXX_NAMESPACES
37 } // namespace
38 #endif