Add floatnum_delete().

svn path=/trunk/yasm/; revision=258
0.3
Peter Johnson 23 years ago
parent 17a9427734
commit 55c7822fa5
  1. 7
      libyasm/floatnum.c
  2. 1
      libyasm/floatnum.h
  3. 7
      src/floatnum.c
  4. 1
      src/floatnum.h

@ -475,6 +475,13 @@ floatnum_new(char *str)
return flt;
}
void
floatnum_delete(floatnum *flt)
{
BitVector_Destroy(flt->mantissa);
free(flt);
}
int
floatnum_get_int(unsigned long *ret_val, const floatnum *flt)
{

@ -41,6 +41,7 @@ typedef struct floatnum_s {
} floatnum;
floatnum *floatnum_new(char *str);
void floatnum_delete(floatnum *flt);
/* The get functions return nonzero if flt can't fit into that size format. */

@ -475,6 +475,13 @@ floatnum_new(char *str)
return flt;
}
void
floatnum_delete(floatnum *flt)
{
BitVector_Destroy(flt->mantissa);
free(flt);
}
int
floatnum_get_int(unsigned long *ret_val, const floatnum *flt)
{

@ -41,6 +41,7 @@ typedef struct floatnum_s {
} floatnum;
floatnum *floatnum_new(char *str);
void floatnum_delete(floatnum *flt);
/* The get functions return nonzero if flt can't fit into that size format. */

Loading…
Cancel
Save