… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
22 | */ |
22 | */ |
23 | |
23 | |
24 | /* |
24 | /* |
25 | * General convenience functions for crossfire. |
25 | * General convenience functions for crossfire. |
26 | */ |
26 | */ |
… | |
… | |
543 | strcpy (input, tmp); |
543 | strcpy (input, tmp); |
544 | |
544 | |
545 | return; |
545 | return; |
546 | } |
546 | } |
547 | |
547 | |
|
|
548 | ///////////////////////////////////////////////////////////////////////////// |
|
|
549 | |
548 | void *alloc (int s) throw (std::bad_alloc) |
550 | void *alloc (int s) throw (std::bad_alloc) |
549 | { |
551 | { |
550 | void *p = g_slice_alloc (s); |
552 | void *p = g_slice_alloc (s); |
551 | |
553 | |
552 | if (!p) |
554 | if (!p) |