This is depth.c in view mode; [Download] [Up]
/* SCHEME->C */
#include <objects.h>
DEFSTRING( t1674, "VISUALP", 7 );
DEFSTATICTSCP( c1649 );
DEFSTRING( t1675,
"Argument not an unsigned 8-bit INTEGER: ~s", 42 );
DEFSTATICTSCP2( c1627, t1675 );
DEFSTRING( t1676, "INTEGER->CHAR", 13 );
DEFSTATICTSCP( c1626 );
DEFSTRING( t1677, "DEPTHP", 6 );
DEFSTATICTSCP( c1598 );
static void init_constants()
{
c1649 = STRINGTOSYMBOL( U_TX( ADR( t1674 ) ) );
CONSTANTEXP( ADR( c1649 ) );
c1626 = STRINGTOSYMBOL( U_TX( ADR( t1676 ) ) );
CONSTANTEXP( ADR( c1626 ) );
c1598 = STRINGTOSYMBOL( U_TX( ADR( t1677 ) ) );
CONSTANTEXP( ADR( c1598 ) );
}
DEFTSCP( depth_make_2ddepth_v );
DEFSTRING( t1678, "MAKE-DEPTH", 10 );
EXTERNTSCPP( sc_cons );
EXTERNTSCP( sc_cons_v );
EXTERNTSCPP( sc_make_2dstring );
EXTERNTSCP( sc_make_2dstring_v );
EXTERNTSCPP( scrt2__3c_2dtwo );
EXTERNTSCP( scrt2__3c_2dtwo_v );
EXTERNTSCPP( scrt2__3e_2dtwo );
EXTERNTSCP( scrt2__3e_2dtwo_v );
EXTERNTSCPP( scrt6_error );
EXTERNTSCP( scrt6_error_v );
TSCP depth_make_2ddepth( )
{
TSCP X4, X3, X2, X1;
X3 = BOOLEAN( NEQ( TSCPTAG( _TSCP( 0 ) ), FIXNUMTAG ) );
if ( TRUE( X3 ) ) goto L1685;
if ( BITAND( BITOR( INT( _TSCP( 0 ) ),
INT( _TSCP( 0 ) ) ),
3 ) ) goto L1686;
X4 = BOOLEAN( LT( INT( _TSCP( 0 ) ),
INT( _TSCP( 0 ) ) ) );
goto L1687;
L1686:
X4 = scrt2__3c_2dtwo( _TSCP( 0 ), _TSCP( 0 ) );
L1687:
if ( TRUE( X4 ) ) goto L1685;
if ( BITAND( BITOR( INT( _TSCP( 0 ) ),
INT( _TSCP( 1020 ) ) ),
3 ) ) goto L1694;
if ( GT( INT( _TSCP( 0 ) ), INT( _TSCP( 1020 ) ) ) ) goto L1685;
goto L1701;
L1694:
if ( FALSE( scrt2__3e_2dtwo( _TSCP( 0 ), _TSCP( 1020 ) ) )
) goto L1701;
L1685:
scrt6_error( c1626,
c1627, CONS( _TSCP( 0 ), EMPTYLIST ) );
L1701:
X1 = sc_make_2dstring( _TSCP( 48 ),
CONS( FIX_CHAR( _TSCP( 0 ) ),
EMPTYLIST ) );
return( sc_cons( c1598, X1 ) );
}
DEFTSCP( depth_depth_2ddepth_v );
DEFSTRING( t1702, "DEPTH-DEPTH", 11 );
EXTERNTSCPP( scrt4_c_2dint_2dref );
EXTERNTSCP( scrt4_c_2dint_2dref_v );
EXTERNTSCPP( xlibtypes_chk_2ddepthp );
EXTERNTSCP( xlibtypes_chk_2ddepthp_v );
TSCP depth_depth_2ddepth( x1630 )
TSCP x1630;
{
TSCP X1;
X1 = xlibtypes_chk_2ddepthp( x1630 );
return( scrt4_c_2dint_2dref( X1, _TSCP( 0 ) ) );
}
DEFTSCP( depth_depth_2ddepth_21_v );
DEFSTRING( t1704, "DEPTH-DEPTH!", 12 );
EXTERNTSCPP( scrt4_c_2dint_2dset_21 );
EXTERNTSCP( scrt4_c_2dint_2dset_21_v );
TSCP depth_depth_2ddepth_21( x1633, y1634 )
TSCP x1633, y1634;
{
TSCP X1;
X1 = xlibtypes_chk_2ddepthp( x1633 );
return( scrt4_c_2dint_2dset_21( X1, _TSCP( 0 ), y1634 ) );
}
DEFTSCP( depth_depth_2dnvisuals_v );
DEFSTRING( t1706, "DEPTH-NVISUALS", 14 );
TSCP depth_depth_2dnvisuals( x1637 )
TSCP x1637;
{
TSCP X1;
X1 = xlibtypes_chk_2ddepthp( x1637 );
return( scrt4_c_2dint_2dref( X1, _TSCP( 16 ) ) );
}
DEFTSCP( depth_depth_2dnvisuals_21_v );
DEFSTRING( t1708, "DEPTH-NVISUALS!", 15 );
TSCP depth_depth_2dnvisuals_21( x1641, y1642 )
TSCP x1641, y1642;
{
TSCP X1;
X1 = xlibtypes_chk_2ddepthp( x1641 );
return( scrt4_c_2dint_2dset_21( X1, _TSCP( 16 ), y1642 ) );
}
DEFTSCP( depth_depth_2dvisuals_v );
DEFSTRING( t1710, "DEPTH-VISUALS", 13 );
EXTERNTSCPP( scrt4_c_2dunsigned_2dref );
EXTERNTSCP( scrt4_c_2dunsigned_2dref_v );
TSCP depth_depth_2dvisuals( x1645 )
TSCP x1645;
{
TSCP X2, X1;
X1 = xlibtypes_chk_2ddepthp( x1645 );
X2 = scrt4_c_2dunsigned_2dref( X1, _TSCP( 32 ) );
return( sc_cons( c1649, X2 ) );
}
DEFTSCP( depth_depth_2dvisuals_21_v );
DEFSTRING( t1713, "DEPTH-VISUALS!", 14 );
EXTERNTSCPP( scrt4_c_2dunsigned_2dset_21 );
EXTERNTSCP( scrt4_c_2dunsigned_2dset_21_v );
EXTERNTSCPP( xlibtypes_chk_2dvisualp );
EXTERNTSCP( xlibtypes_chk_2dvisualp_v );
TSCP depth_depth_2dvisuals_21( x1653, y1654 )
TSCP x1653, y1654;
{
TSCP X2, X1;
X1 = xlibtypes_chk_2ddepthp( x1653 );
X2 = xlibtypes_chk_2dvisualp( y1654 );
return( scrt4_c_2dunsigned_2dset_21( X1, _TSCP( 32 ), X2 ) );
}
static void init_modules( compiler_version )
char *compiler_version;
{
xlibtypes__init();
scrt4__init();
scrt6__init();
scrt2__init();
MAXDISPLAY( 0 );
}
void depth__init()
{
static int init = 0;
if (init) return;
init = 1;
INITHEAP( 0, 0, 0, 0 );
init_constants();
init_modules( "(depth SCHEME->C COMPILER 28sep90jfb)" );
INITIALIZEVAR( U_TX( ADR( t1678 ) ),
ADR( depth_make_2ddepth_v ),
MAKEPROCEDURE( 0,
0,
depth_make_2ddepth, EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1702 ) ),
ADR( depth_depth_2ddepth_v ),
MAKEPROCEDURE( 1,
0,
depth_depth_2ddepth, EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1704 ) ),
ADR( depth_depth_2ddepth_21_v ),
MAKEPROCEDURE( 2,
0,
depth_depth_2ddepth_21,
EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1706 ) ),
ADR( depth_depth_2dnvisuals_v ),
MAKEPROCEDURE( 1,
0,
depth_depth_2dnvisuals,
EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1708 ) ),
ADR( depth_depth_2dnvisuals_21_v ),
MAKEPROCEDURE( 2,
0,
depth_depth_2dnvisuals_21,
EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1710 ) ),
ADR( depth_depth_2dvisuals_v ),
MAKEPROCEDURE( 1,
0,
depth_depth_2dvisuals, EMPTYLIST ) );
INITIALIZEVAR( U_TX( ADR( t1713 ) ),
ADR( depth_depth_2dvisuals_21_v ),
MAKEPROCEDURE( 2,
0,
depth_depth_2dvisuals_21,
EMPTYLIST ) );
return;
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.