source: golgotha/src/i4/window/win_evt.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.1 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#include "window/win_evt.hh"
10#include "string/string.hh"
11#include "memory/malloc.hh"
12
13void i4_drag_info_struct::copy_to(i4_drag_info_struct &drag_struct)
14{
15  drag_struct.t_filenames=t_filenames;
16  if (t_filenames)
17  {
18    drag_struct.filenames=(i4_str **)i4_malloc(sizeof(i4_str *) * t_filenames, "");
19    for (int i=0; i<t_filenames; i++)
20      drag_struct.filenames[i]=new i4_str(*filenames[i]);
21  } else drag_struct.filenames=0;
22
23}
24
25i4_drag_info_struct::~i4_drag_info_struct()
26{
27  if (t_filenames)
28  {
29    for (int i=0; i<t_filenames; i++)
30      delete filenames[i];
31    i4_free(filenames);
32  }
33}
Note: See TracBrowser for help on using the repository browser.