view 3rdparty/packages/ed/unmkpat.c @ 1427:b3868abe1fee

Rearrangement of directories and files for making bootable 6809/6309 MV disks
author boisy
date Tue, 02 Dec 2003 22:35:55 +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;
        }
  }
}