home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name EDZAPKEY -- Free the entire edit key list.
- *
- * Synopsis edzapkey();
- *
- * Description This procedure frees all memory associated with the
- * edit key list and resets the root pointer to NULL.
- *
- * Returns Nothing.
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
-
- #include <butil.h>
- #include <bedit.h>
-
-
- void edzapkey()
- {
- ED_LIST *p_current_item, *p_next_item;
-
- p_current_item = b_pkey_root;
- while (p_current_item != NIL)
- {
- p_next_item = p_current_item->pnext;
- p_current_item->pnext = NIL;
- p_current_item->pprev = NIL;
- free(p_current_item->edit_key.edit_actions.pactions);
- free(p_current_item);
- p_current_item = p_next_item;
- }
-
- b_pkey_root = NIL;
- }