*** empty log message ***

This commit is contained in:
2005-05-22 15:24:57 +00:00
parent 997da1dc11
commit b7e57633d3
2 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: class.c,v 1.1 2005-05-22 15:03:20 bacon Exp $
* $Id: class.c,v 1.2 2005-05-22 15:24:57 bacon Exp $
*/
#include <xp/stx/class.h>
@ -43,11 +43,14 @@ xp_stx_word_t xp_stx_new_class (xp_stx_t* stx, const xp_stx_char_t* name)
xp_stx_word_t xp_stx_lookup_class (xp_stx_t* stx, const xp_stx_char_t* name)
{
xp_stx_word_t link;
xp_stx_word_t link, value;
link = xp_stx_hash_lookup_symbol (stx, stx->smalltalk, name);
if (link == stx->nil) return stx->nil;
return XP_STX_AT(stx,link,XP_STX_PAIRLINK_VALUE);
value = XP_STX_AT(stx,link,XP_STX_PAIRLINK_VALUE);
if (XP_STX_CLASS(stx,value) != stx->class_metaclass) stx->nil;
return value;
}