2008-06-18
2008-06-18 21:23:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
167da2f1b88a1ad1e4b08aa72a8f7d5721cb1c37
(22 lines)
(+15/-7)
[
Show
| Annotate
]
Branch: 7.9
low_make_callable() now uses the new function call checker (check_splice_call()/new_get_return_type()) rather than the old (check_call()) in the debug code.
Rev: src/constants.c:1.61
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: constants.c,v 1.60 2008/05/11 14:55:53 mast Exp $
+ || $Id: constants.c,v 1.61 2008/06/18 21:23:12 grubba Exp $
*/
#include "global.h"
111: Inside #if defined(PIKE_DEBUG)
f->internal_flags = global_callable_flags;
#ifdef PIKE_DEBUG
{
- struct pike_type *z = check_call(function_type_string, type, 0);
+ struct pike_type *z = NULL;
+ add_ref(type);
+ type = check_splice_call(name, type, 1, mixed_type_string, NULL,
+ CALL_INHIBIT_WARNINGS);
+ if (type) {
+ z = new_get_return_type(type, CALL_INHIBIT_WARNINGS);
+ free_type(type);
+ }
f->may_return_void = (z == void_type_string);
if(!z) Pike_fatal("Function has no valid return type.\n");
free_type(z);