You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
379 B
14 lines
379 B
// Copyright (c) 1993-1999 Microsoft Corporation
|
|
|
|
#include "y2.h"
|
|
|
|
SSIZE_T fdtype( SSIZE_T t )
|
|
{
|
|
/* determine the type of a symbol */
|
|
SSIZE_T v;
|
|
if( t >= NTBASE ) v = nontrst[t-NTBASE].tvalue;
|
|
else v = TYPE( toklev[t] );
|
|
if( v <= 0 ) error( "must specify type for %s", (t>=NTBASE)?nontrst[t-NTBASE].name:
|
|
tokset[t].name );
|
|
return( v );
|
|
}
|