home *** CD-ROM | disk | FTP | other *** search
- /* module written by G. Gagnon, Mar 24, 1987 */
-
- #include "sb:sb.h"
-
- extern int level;
-
-
- void PrNode(string, node) char *string; struct Node *node;
- {
- static struct StructData structdata[] = {
- { " ln_Succ", "struct Node *", 5, PTRSIZE },
- { " ln_Pred", "struct Node *", 5, PTRSIZE },
- { "-ln_Type", "UBYTE", 4, BYTESIZE },
- { "-ln_Pri", "BYTE", 3, BYTESIZE },
- { " ln_Name", "UBYTE *", 4, PTRSIZE }
- };
- int sum, choice = -1;
- level++;
- while (choice) {
- sum = SetOptionText(string, structdata, (APTR)node, DATASIZE, 0);
- switch (choice = GetChoice(DATASIZE)) {
- case 1:
- if (node->ln_Succ)
- PrNode("Node->ln_Succ", node->ln_Succ);
- break;
- case 2:
- if (node->ln_Pred)
- PrNode("Node->ln_Pred", node->ln_Pred);
- break;
- case 5:
- PrString("ln_Name",node->ln_Name);
- break;
- }
- }
- level--;
- }
-
-
-