ldmisc.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* ldmisc.h -
  2. Copyright (C) 1991-2022 Free Software Foundation, Inc.
  3. This file is part of the GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef LDMISC_H
  17. #define LDMISC_H
  18. extern void vfinfo (FILE *fp, const char *fmt, va_list arg, bool is_warning);
  19. extern void einfo (const char *, ...);
  20. extern void minfo (const char *, ...);
  21. extern void info_msg (const char *, ...);
  22. extern void lfinfo (FILE *, const char *, ...);
  23. extern void info_assert (const char *, unsigned int);
  24. extern void yyerror (const char *);
  25. extern void *xmalloc (size_t);
  26. extern void *xrealloc (void *, size_t);
  27. extern void xexit (int);
  28. #define ASSERT(x) \
  29. do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0)
  30. #define FAIL() \
  31. do { info_assert(__FILE__,__LINE__); } while (0)
  32. extern void print_space (void);
  33. extern void print_nl (void);
  34. #endif