dtcalc: remove some pointless macroing of function names to uppercase versionss

This commit is contained in:
Peter Howkins
2020-11-26 23:00:18 +00:00
parent e4024b0bf9
commit aef196c6ca
6 changed files with 105 additions and 122 deletions

View File

@@ -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 ;
}