This is taskblocks.c in view mode; [Download] [Up]
#include "taskblocks.h" std_task_block * STB_new() { std_task_block *result; int i; result = (std_task_block *) malloc(sizeof(std_task_block)); result->semops = (struct sembuf *) malloc(sizeof(struct sembuf)); result->actions = SASnew(1); return result; } player_task_block * PTB_new() { player_task_block *result; int i; result = (player_task_block *) malloc(sizeof(player_task_block)); result->semops = (struct sembuf *) malloc(sizeof(struct sembuf)); result->actions = SASnew(1); return result; } ipc_task_block * ITB_new() { ipc_task_block *result; int i; result = (ipc_task_block *) malloc(sizeof(ipc_task_block)); result->semops = (struct sembuf *) malloc(sizeof(struct sembuf)); for (i=0; i<8; i++) result->smpteok[i] = NO; result->actions = SASnew(1); return result; }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.