| 1 |
#ifndef names_h |
| 2 |
#define names_h |
| 3 |
/* |
| 4 |
Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. |
| 5 |
Portions Copyright 2011-2016 David Anderson. All Rights Reserved. |
| 6 |
|
| 7 |
This program is free software; you can redistribute it and/or |
| 8 |
modify it under the terms of version 2 of the GNU General |
| 9 |
Public License as published by the Free Software Foundation. |
| 10 |
|
| 11 |
This program is distributed in the hope that it would be |
| 12 |
useful, but WITHOUT ANY WARRANTY; without even the implied |
| 13 |
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 |
PURPOSE. |
| 15 |
|
| 16 |
Further, this software is distributed without any warranty |
| 17 |
that it is free of the rightful claim of any third person |
| 18 |
regarding infringement or the like. Any license provided |
| 19 |
herein, whether implied or otherwise, applies only to this |
| 20 |
software file. Patent licenses, if any, provided herein |
| 21 |
do not apply to combinations of this program with other |
| 22 |
software, or any other product whatsoever. |
| 23 |
|
| 24 |
You should have received a copy of the GNU General Public |
| 25 |
License along with this program; if not, write the Free |
| 26 |
Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
| 27 |
Boston MA 02110-1301, USA. |
| 28 |
|
| 29 |
*/ |
| 30 |
|
| 31 |
/* makename.h |
| 32 |
$Revision: 1.3 $ |
| 33 |
$Date: 2004/10/28 22:26:58 $ |
| 34 |
|
| 35 |
This is for putting strings into stable storage. |
| 36 |
|
| 37 |
Effectively an strdup() wrapper. |
| 38 |
|
| 39 |
Rarely called. |
| 40 |
|
| 41 |
It leaks memory, (the memory |
| 42 |
is never freed) but that seems unimportant since |
| 43 |
use of this is very rare. |
| 44 |
*/ |
| 45 |
|
| 46 |
#ifdef __cplusplus |
| 47 |
extern "C" { |
| 48 |
#endif /* __cplusplus */ |
| 49 |
|
| 50 |
char * makename(const char *); /* Makes a copy of the string in |
| 51 |
a malloc area. Can never return 0. */ |
| 52 |
|
| 53 |
/* Destroy all makename data. Do just before exit. */ |
| 54 |
void makename_destructor(void); |
| 55 |
|
| 56 |
#ifdef __cplusplus |
| 57 |
} |
| 58 |
#endif /* __cplusplus */ |
| 59 |
|
| 60 |
#endif /* MAKENAME_H */ |