Mercurial > hg > Members > kono > nitros9-code
annotate 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 |
rev | line source |
---|---|
994 | 1 /* unmkpat.c */ |
2 #include <stdio.h> | |
3 #include "tools.h" | |
4 | |
5 /* Free up the memory usde for token string */ | |
6 unmakepat(head) | |
7 TOKEN *head; | |
8 { | |
9 | |
10 register TOKEN *old_head; | |
11 | |
12 while (head) { | |
13 switch (head->tok) { | |
14 case CCL: | |
15 case NCCL: | |
16 free(head->bitmap); | |
17 /* Fall through to default */ | |
18 | |
19 default: | |
20 old_head = head; | |
21 head = head->next; | |
22 free((char *) old_head); | |
23 break; | |
24 } | |
25 } | |
26 } |