Change dynwind flag enums to #defines, for greater portability
authorNeil Jerram <neil@ossau.uklinux.net>
Fri, 2 Oct 2009 21:18:52 +0000 (22:18 +0100)
committerNeil Jerram <neil@ossau.uklinux.net>
Fri, 2 Oct 2009 21:20:47 +0000 (22:20 +0100)
commitb25aa0b9373d2798469e0fe999cd915e8beedc4f
treea52083d17cd71cb53c7c0721d1317a1eb4cfbaf3
parent0eb934f1f0e4d607a13cb918f062054556e9694b
Change dynwind flag enums to #defines, for greater portability

Thanks to Inge Gutheil for raising this problem.

* doc/ref/api-control.texi (Dynamic Wind): Remove doc for
  scm_t_dynwind_flags, and change uses of scm_t_dynwind_flags to int.
  Mention possible flags inside doc for scm_dynwind_begin instead.
  Similarly for scm_t_wind_flags.  In this case the doc on possible
  flags is moved to after the four functions that can use them.

* libguile/dynwind.c (scm_dynwind_begin): Change scm_t_dynwind_flags
  to int.
  (scm_dynwind_unwind_handler): Change scm_t_wind_flags to int.
  (scm_dynwind_rewind_handler): Ditto.
  (scm_dynwind_unwind_handler_with_scm): Ditto.
  (scm_dynwind_rewind_handler_with_scm): Ditto.

* libguile/dynwind.h (SCM_F_DYNWIND_REWINDABLE): Use #define instead
  of typedef enum.
  (SCM_F_WIND_EXPLICITLY): Ditto.
  (function declarations): Change scm_t_dynwind_flags and
  scm_t_wind_flags to int.

* test-suite/standalone/test-unwind.c (check_cont_body): Change
  scm_t_dynwind_flags to int.
doc/ref/api-control.texi
libguile/dynwind.c
libguile/dynwind.h
test-suite/standalone/test-unwind.c