view 3rdparty/packages/ed/unmkpat.c @ 1734:b992196e2ac9

Dragon updates by Phill
author boisy
date Sat, 27 Nov 2004 15:24:02 +0000
parents bef1844de0dc
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;
        }
  }
}