root.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* classes: h_files */
  2. #ifndef SCM_ROOT_H
  3. #define SCM_ROOT_H
  4. /* Copyright (C) 1996,1998,2000,2001, 2002, 2006 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
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but 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 02110-1301 USA
  19. */
  20. #include "libguile/__scm.h"
  21. #include "libguile/debug.h"
  22. #include "libguile/throw.h"
  23. #define scm_flo0 scm_sys_protects[0]
  24. #define scm_listofnull scm_sys_protects[1]
  25. #define scm_nullvect scm_sys_protects[2]
  26. #define scm_nullstr scm_sys_protects[3]
  27. #define scm_keyword_obarray scm_sys_protects[4]
  28. #define scm_stand_in_procs scm_sys_protects[5]
  29. #define scm_object_whash scm_sys_protects[6]
  30. #define scm_permobjs scm_sys_protects[7]
  31. #define scm_asyncs scm_sys_protects[8]
  32. #define scm_protects scm_sys_protects[9]
  33. #define scm_properties_whash scm_sys_protects[10]
  34. #define scm_gc_registered_roots scm_sys_protects[11]
  35. #define scm_source_whash scm_sys_protects[12]
  36. #define SCM_NUM_PROTECTS 13
  37. SCM_API SCM scm_sys_protects[];
  38. SCM_API SCM scm_internal_cwdr (scm_t_catch_body body,
  39. void *body_data,
  40. scm_t_catch_handler handler,
  41. void *handler_data,
  42. SCM_STACKITEM *stack_start);
  43. SCM_API SCM scm_call_with_dynamic_root (SCM thunk, SCM handler);
  44. SCM_API SCM scm_dynamic_root (void);
  45. SCM_API SCM scm_apply_with_dynamic_root (SCM proc, SCM a1, SCM args, SCM handler);
  46. SCM_API void scm_init_root (void);
  47. #endif /* SCM_ROOT_H */
  48. /*
  49. Local Variables:
  50. c-file-style: "gnu"
  51. End:
  52. */