pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:1084:
*! there is a @[`[..]] in the class. See @[predef::`[..]] for *! details. *! *! @note *! It's assumed that this function is side-effect free. *! *! @seealso *! @[predef::`[]()], @[predef::`[..]] */
-
/*! @decl
void
lfun::`[]=(zero index, zero value, @
-
*! object|void context, int|void access)
+
/*! @decl
mixed
lfun::`[]=(zero index, zero value, @
+
*!
object|void context, int|void access)
*!
-
*!
Index
assignment
callback.
+
*!
Atomic
get
and set index
callback.
*! *! @param index *! Index to change the value of. *! *! @param value *! The new value. *! *! @param context *! Context in the current object to index. *!
pike.git/src/program.c:1115:
*! @value 0 *! @value UNDEFINED *! See only public symbols. *! @value 1 *! See protected symbols as well. *! @endint *! *! This function is to set the value at index @[index] of the current *! object to @[value]. *!
+
*! @returns
+
*! Returns the previous value at index @[index] of the current object.
+
*!
*! @seealso *! @[predef::`[]=()], @[lfun::`->=()], @[lfun::_atomic_get_set()] */ /*! @decl mixed lfun::`->(string index, object|void context, int|void access) *! *! Arrow index callback. *! *! @param index *! Symbol in @[context] to access.
pike.git/src/program.c:1153:
*! Returns the value at @[index] if it exists, and *! @expr{UNDEFINED@} otherwise. *! *! @note *! It's assumed that this function is side-effect free. *! *! @seealso *! @[predef::`->()], @[::`->()] */
-
/*! @decl
void
lfun::`->=(string index, zero value, @
+
/*! @decl
mixed
lfun::`->=(string index, zero value, @
*! object|void context, int|void access) *!
-
*!
Arrow
index
assignment
callback.
+
*!
Atomic
get and set arrow
index callback.
*! *! @param index *! Symbol in @[context] to change the value of. *! *! @param value *! The new value. *! *! @param context *! Context in the current object to index. *!
pike.git/src/program.c:1184:
*! @value 0 *! @value UNDEFINED *! See only public symbols. *! @value 1 *! See protected symbols as well. *! @endint *! *! This function is to set the value at symbol @[index] of the current *! object to @[value]. *!
+
*! @returns
+
*! Returns the previous value at symbol @[index] of the current object.
+
*!
*! @seealso *! @[predef::`->=()], @[::`->=()], @[lfun::`[]=()], *! @[lfun::_atomic_get_set()] */ /*! @decl int lfun::_sizeof() *! *! Size query callback. *! *! Called by @[predef::sizeof()] to determine the number of elements
pike.git/src/program.c:9497:
SET_SVAL(id, T_INT, NUMBER_NUMBER, integer, i); mapping_insert(lfun_ids, &key, &id); } else { free_type(val.u.type); } } #endif lfun_getter_type_string = make_pike_type(tFuncV(tNone, tVoid, tMix));
-
lfun_setter_type_string = make_pike_type(tFuncV(tZero, tVoid, tVoid));
+
lfun_setter_type_string =
+
make_pike_type(
tOr(tDeprecated(
tFuncV(tZero, tVoid, tVoid))
,
+
tFuncV(tZero, tVoid, tMix)))
;
low_init_pike_compiler(); enter_compiler(NULL, 0); exit_compiler(); } void cleanup_program(void) {