- Timestamp:
- Jun 25, 2011, 2:23:06 AM (13 years ago)
- Children:
- 32c331d
- Parents:
- 35849fe
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 03:04:01)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 02:23:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
history.c
r35849fe r7c80ea42 5 5 owl_list_create(&(h->hist)); 6 6 h->cur=0; /* current position in history */ 7 h->partial =0;/* is the 0th element is partially composed? */7 h->partial = false; /* is the 0th element is partially composed? */ 8 8 } 9 9 … … 36 36 } 37 37 38 void owl_history_store(owl_history *h, const char *line )38 void owl_history_store(owl_history *h, const char *line, bool partial) 39 39 { 40 40 int size; … … 58 58 /* add the new line */ 59 59 owl_list_prepend_element(&(h->hist), g_strdup(line)); 60 } 61 62 void owl_history_set_partial(owl_history *h) 63 { 64 if (!h) return; 65 h->partial=1; 60 h->partial = partial; 66 61 } 67 62 … … 74 69 g_free(owl_list_get_element(&(h->hist), 0)); 75 70 owl_list_remove_element(&(h->hist), 0); 76 h->partial = 0;71 h->partial = false; 77 72 } 78 73
Note: See TracChangeset
for help on using the changeset viewer.