From 561431f830d041c30e4c6102bb8fa43462cbc31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 17 Nov 2002 16:31:20 +0100 Subject: [PATCH] Added some documentation of UNDEFINED, this and this_program. Rev: src/program.c:1.457 --- src/program.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/program.c b/src/program.c index 7e6288268c..3ed1c485e8 100644 --- a/src/program.c +++ b/src/program.c @@ -2,11 +2,11 @@ || 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: program.c,v 1.456 2002/11/14 14:48:54 grubba Exp $ +|| $Id: program.c,v 1.457 2002/11/17 15:31:20 grubba Exp $ */ #include "global.h" -RCSID("$Id: program.c,v 1.456 2002/11/14 14:48:54 grubba Exp $"); +RCSID("$Id: program.c,v 1.457 2002/11/17 15:31:20 grubba Exp $"); #include "program.h" #include "object.h" #include "dynamic_buffer.h" @@ -975,6 +975,11 @@ static struct node_s *index_modules(struct pike_string *ident, return 0; } +/*! @decl constant UNDEFINED + *! + *! The undefined value; ie a zero for which @[zero_type()] returns 1. + */ + struct node_s *resolve_identifier(struct pike_string *ident); struct node_s *find_module_identifier(struct pike_string *ident, @@ -1103,6 +1108,22 @@ struct node_s *resolve_identifier(struct pike_string *ident) return 0; } +/*! @decl constant this + *! + *! Builtin constant that evaluates to the current object. + *! + *! @seealso + *! @[this_program], @[this_object()] + */ + +/*! @decl constant this_program + *! + *! Builtin constant that evaluates to the current program. + *! + *! @seealso + *! @[this], @[this_object()] + */ + /* If the identifier is recognized as one of the magic identifiers, * like "this", "this_program" or "`->" when preceded by ::, then a * suitable node is returned, NULL otherwise. inherit_num is -1 when -- GitLab