Un-ignored: the dev drive is the ground truth the restoration and emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio content). Kept in-repo for the pod-owner community. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
41 lines
925 B
C++
41 lines
925 B
C++
/*
|
|
File pazhsp.c
|
|
|
|
The paz HSP-demo
|
|
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "pazpl5.h"
|
|
|
|
extern int deal_with( int * client, int me, int total );
|
|
extern int replying, view_id, total_views;
|
|
|
|
#define use_up(type, name) { \
|
|
int i; \
|
|
for (i=0; 1; i++) { \
|
|
if(malloc(sizeof(type))==NULL) \
|
|
printf ( "Failed to malloc %d'th %s, size %d\n", i, name, sizeof(type)); \
|
|
} \
|
|
}
|
|
|
|
int main ( int argc, char *argv[])
|
|
{
|
|
int client=0;
|
|
int me, total;
|
|
|
|
dN_mynode (&me);
|
|
dN_nodes ( &total);
|
|
view_id=me-2;
|
|
total_views=total-2;
|
|
|
|
replying=(me==2);
|
|
|
|
/* use_up(VERTEX, "VERTEX") ; */
|
|
|
|
while (1) {
|
|
client=0;
|
|
if (deal_with ( &client, me, total )) ack_host();
|
|
}
|
|
}
|