srcprop.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* classes: h_files */
  2. #ifndef SCM_SRCPROP_H
  3. #define SCM_SRCPROP_H
  4. /* Copyright (C) 1995,1996,2000,2001, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public License
  8. * as published by the Free Software Foundation; either version 3 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301 USA
  20. */
  21. #include "libguile/__scm.h"
  22. /* {Source properties}
  23. */
  24. #define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
  25. #define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
  26. SCM_API scm_t_bits scm_tc16_srcprops;
  27. SCM_API SCM scm_sym_filename;
  28. SCM_API SCM scm_sym_copy;
  29. SCM_API SCM scm_sym_line;
  30. SCM_API SCM scm_sym_column;
  31. SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
  32. SCM_API SCM scm_source_property (SCM obj, SCM key);
  33. SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
  34. SCM_API SCM scm_source_properties (SCM obj);
  35. SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
  36. SCM_INTERNAL int scm_i_has_source_properties (SCM obj);
  37. SCM_INTERNAL void scm_i_set_source_properties_x (SCM obj, long line, int col,
  38. SCM fname);
  39. SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
  40. SCM_INTERNAL void scm_init_srcprop (void);
  41. #endif /* SCM_SRCPROP_H */
  42. /*
  43. Local Variables:
  44. c-file-style: "gnu"
  45. End:
  46. */