|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T s ┃
Length: 881 (0x371) Types: TextFile Names: »setptr.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen └─ ⟦this⟧ »cph85dist/wirewrap/setptr.c«
/*********************************************************** * setptr - Converts from a signal name to a pointer * * to an entry in the signallist. If the * * signal name isn't already in the signallist, * * then an entry for it is added. * ***********************************************************/ #include "wirewrap.h" struct signallist *setptr(signalname) char *signalname; { int i; struct signallist *localptr; localptr = siglistleader; while (localptr != 0) { if(namecmp(localptr->signalname,signalname)) localptr = localptr->succ; else break; } if(localptr==0) { localptr=(struct signallist *)malloc(sizeof(struct signallist)); for(i=0;i<12;i++)localptr->signalname[i]=signalname[i]; localptr->succ = siglistleader; localptr->special = 0; siglistleader = localptr; } return(localptr); }