NUMf2c.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _NUMf2c_h_
  2. #define _NUMf2c_h_
  3. /* NUMf2c.h -- Standard Fortran to C header file
  4. * Auxiliary f2c routines.
  5. *
  6. * Copyright (C) 1994-2011 David Weenink, 2017 Paul Boersma
  7. *
  8. * This code is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or (at
  11. * your option) any later version.
  12. *
  13. * This code is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #include "melder.h" /* for integer */
  22. double d_sign(double *a, double *b);
  23. /*
  24. returns sign(b)*fabs(a)
  25. */
  26. integer lsame_(const char *ca, const char *cb);
  27. /*
  28. Returns true if ca[0] is the same letter as cb[0] regardless of case.
  29. */
  30. double pow_di(double *ap, integer *bp);
  31. void s_cat(char *lp, const char *rpp[], integer rnp[], integer *np, integer ll);
  32. /* Unless compiled with -DNO_OVERWRITE, this variant of s_cat allows the
  33. * target of a concatenation to appear on its right-hand side (contrary
  34. * to the Fortran 77 Standard, but in accordance with Fortran 90).
  35. */
  36. integer s_cmp(const char *a0, const char *b0, integer la, integer lb);
  37. void s_copy(char *a, char *b, integer la, integer lb);
  38. /* assign strings: a = b (when no null byte at end of string)*/
  39. #endif /* _NUMf2c_h_ */