lib.h 768 B

123456789101112131415161718192021222324252627282930
  1. // -*- C++ -*-
  2. // Declarations/definitions of miscellaneous libgroff functions etc.,
  3. // not declared in any other header file.
  4. extern const char *our_itoa(int);
  5. extern char *strsave(const char *s);
  6. extern int interpret_lf_args(const char *p);
  7. extern char illegal_char_table[];
  8. inline int illegal_input_char(int c)
  9. {
  10. return c >= 0 && illegal_char_table[c];
  11. }
  12. /* ad_delete deletes an array of objects with destructors; a_delete deletes
  13. an array of objects without destructors */
  14. #ifdef ARRAY_DELETE_NEEDS_SIZE
  15. /* for 2.0 systems */
  16. #define ad_delete(size) delete [size]
  17. #define a_delete delete
  18. #else /* not ARRAY_DELETE_NEEDS_SIZE */
  19. /* for ARM systems */
  20. #define ad_delete(size) delete []
  21. #define a_delete delete []
  22. #endif /* not ARRAY_DELETE_NEEDS_SIZE */