Browse Source

scopyd(), return void

pre-master-46
rlar 8 years ago
parent
commit
3bd9c1c858
  1. 2
      src/frontend/numparam/general.h
  2. 3
      src/frontend/numparam/mystring.c

2
src/frontend/numparam/general.h

@ -11,7 +11,7 @@
char *pscopy(SPICE_DSTRINGPTR s, const char *a, int i, int j);
char *pscopy_up(SPICE_DSTRINGPTR s, const char *a, int i, int j);
bool scopyd(SPICE_DSTRINGPTR a, SPICE_DSTRINGPTR b);
void scopyd(SPICE_DSTRINGPTR a, SPICE_DSTRINGPTR b);
void scopys(SPICE_DSTRINGPTR a, const char *b);
void scopy_up(SPICE_DSTRINGPTR a, const char *str);
void scopy_lower(SPICE_DSTRINGPTR a, const char *str);

3
src/frontend/numparam/mystring.c

@ -109,12 +109,11 @@ cadd(SPICE_DSTRINGPTR dstr_p, char c)
* Create copy of the dynamic string. Dynamic strings are always NULL
* terminated.
* ----------------------------------------------------------------- */
bool
void
scopyd(SPICE_DSTRINGPTR s, SPICE_DSTRINGPTR t) /* returns success flag */
{
spice_dstring_reinit(s);
spice_dstring_append(s, spice_dstring_value(t), -1);
return 1; /* Dstrings expand to any length */
}

Loading…
Cancel
Save