srcprop.h 2.0 KB

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