srcprop.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef SCM_SRCPROP_H
  2. #define SCM_SRCPROP_H
  3. /* Copyright 1995-1996,2000-2001,2006,2008-2012,2018
  4. Free Software Foundation, Inc.
  5. This file is part of Guile.
  6. Guile is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Guile is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with Guile. If not, see
  16. <https://www.gnu.org/licenses/>. */
  17. #include "libguile/boolean.h"
  18. /* {Source properties}
  19. */
  20. #define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
  21. #define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
  22. SCM_API scm_t_bits scm_tc16_srcprops;
  23. SCM_API SCM scm_sym_filename;
  24. SCM_API SCM scm_sym_copy;
  25. SCM_API SCM scm_sym_line;
  26. SCM_API SCM scm_sym_column;
  27. SCM_API SCM scm_supports_source_properties_p (SCM obj);
  28. SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
  29. SCM_API SCM scm_source_property (SCM obj, SCM key);
  30. SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
  31. SCM_API SCM scm_source_properties (SCM obj);
  32. SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
  33. SCM_INTERNAL int scm_i_has_source_properties (SCM obj);
  34. SCM_INTERNAL void scm_i_set_source_properties_x (SCM obj, long line, int col,
  35. SCM fname);
  36. SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
  37. SCM_INTERNAL void scm_init_srcprop (void);
  38. #endif /* SCM_SRCPROP_H */