X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Freturn.h;fp=ioncore%2Freturn.h;h=6870f18ea9eb9bb83a016b085fc5db3ffe41bee7;hp=0000000000000000000000000000000000000000;hb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;hpb=8366314611bf30a0f31d25bf5f5023186fa87692 diff --git a/ioncore/return.h b/ioncore/return.h new file mode 100644 index 0000000..6870f18 --- /dev/null +++ b/ioncore/return.h @@ -0,0 +1,34 @@ +/* + * ion/ioncore/return.h + * + * Copyright (c) Tuomo Valkonen 1999-2007. + * + * Ion is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + */ + +#ifndef ION_IONCORE_RETURN_H +#define ION_IONCORE_RETURN_H + +#include "region.h" +#include "pholder.h" + +/* Note: 'ph' is under the control of this 'return' module after succesfully + * (true return value) having been passed to this function and must no + * longer be destroyed by other code unless removed with unset_get. + */ +extern bool region_do_set_return(WRegion *reg, WPHolder *ph); + +/*extern WPHolder *region_set_return(WRegion *reg);*/ + +extern WPHolder *region_get_return(WRegion *reg); + +extern void region_unset_return(WRegion *reg); + +extern WPHolder *region_unset_get_return(WRegion *reg); + +extern WPHolder *region_make_return_pholder(WRegion *reg); + +#endif /* ION_IONCORE_RETURN_H */