pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:1116:
*! @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]. *! *! @seealso
-
*! @[predef::`[]=()], @[lfun::`->=()]
+
*! @[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. *! *! @param context
pike.git/src/program.c:1185:
*! @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]. *! *! @seealso
-
*! @[predef::`->=()], @[::`->=()], @[lfun::`[]=()]
+
*! @[predef::`->=()], @[::`->=()], @[lfun::`[]=()]
,
+
*! @[lfun::_atomic_get_set()]
*/ /*! @decl int lfun::_sizeof() *! *! Size query callback. *! *! Called by @[predef::sizeof()] to determine the number of elements *! in an object. If this function is not present, the number *! of public symbols in the object will be returned. *!
pike.git/src/program.c:1640:
*! *! @seealso *! @[lfun::_m_delete()], @[lfun::_m_clear()] */ /*! @decl mixed lfun::_reverse(mixed ... options) *! *! Called by @[reverse()]. */
+
/* FIXME: lfun::next() */
+
/* FIXME: lfun::index() */
+
/* FIXME: lfun::prev() */
+
+
/*! @decl mixed _atomic_get_set(mixed index, mixed value)
+
*!
+
*! Get and set the value for an index atomically.
+
*!
+
*! @param index
+
*! Index for which to get and set the value.
+
*!
+
*! @param value
+
*! Value to set.
+
*!
+
*! @returns
+
*! Returns the previous value at index @[index].
+
*!
+
*! @seealso
+
*! @[lfun::`->=()], @[lfun::`[]=()], @[atomic_get_set()],
+
*! @[lfun::_m_delete()], @[lfun::`[]()], @[lfun::`->()]
+
*/
+
/**** END FAKE LFUNS ****/ /**** BEGIN MAGIC LFUNS ****/ /*! @decl mixed lfun::`symbol() *! @decl mixed lfun::`->symbol() *! *! Variable retrieval callback (aka "getter"). *! *! @note *! Note that the @expr{symbol@} in the name can be any symbol.