dtcalc: remove some pointless macroing of function names to uppercase versionss
This commit is contained in:
@@ -36,18 +36,14 @@
|
||||
#include <stdlib.h>
|
||||
#include "ds_common.h"
|
||||
|
||||
#define FREE (void) free
|
||||
#define STRCPY (void) strcpy
|
||||
|
||||
|
||||
void
|
||||
read_str(char **str, char *value)
|
||||
{
|
||||
if (*str != NULL) FREE(*str) ;
|
||||
if (*str != NULL) free(*str) ;
|
||||
if (value != NULL && strlen(value))
|
||||
{
|
||||
*str = (char *) malloc((unsigned) (strlen(value) + 1)) ;
|
||||
STRCPY(*str, value) ;
|
||||
strcpy(*str, value) ;
|
||||
}
|
||||
else *str = NULL ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user