Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/ed/unmkpat.c @ 994:bef1844de0dc
The ED editor ported from Minix
author | roug |
---|---|
date | Sun, 23 Feb 2003 21:11:37 +0000 |
parents | |
children |
line wrap: on
line source
/* unmkpat.c */ #include <stdio.h> #include "tools.h" /* Free up the memory usde for token string */ unmakepat(head) TOKEN *head; { register TOKEN *old_head; while (head) { switch (head->tok) { case CCL: case NCCL: free(head->bitmap); /* Fall through to default */ default: old_head = head; head = head->next; free((char *) old_head); break; } } }