Changeset 70b53ec
- Timestamp:
- Oct 26, 2003, 2:52:25 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e3d9c77
- Parents:
- 25dd31a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
history.c
r10b866d r70b53ec 3 3 static const char fileIdent[] = "$Id$"; 4 4 5 void owl_history_init(owl_history *h) { 5 void owl_history_init(owl_history *h) 6 { 6 7 owl_list_create(&(h->hist)); 7 8 h->cur=0; /* current position in history */ … … 10 11 } 11 12 12 char *owl_history_get_prev(owl_history *h) { 13 char *owl_history_get_prev(owl_history *h) 14 { 13 15 14 16 if (!h) return NULL; … … 26 28 } 27 29 28 char *owl_history_get_next(owl_history *h) { 30 char *owl_history_get_next(owl_history *h) 31 { 29 32 if (!h) return NULL; 30 33 if (owl_list_get_size(&(h->hist))==0) return(NULL); … … 37 40 } 38 41 39 void owl_history_store(owl_history *h, char *line) { 42 void owl_history_store(owl_history *h, char *line) 43 { 40 44 int size; 41 45 … … 58 62 } 59 63 60 void owl_history_set_partial(owl_history *h) { 64 void owl_history_set_partial(owl_history *h) 65 { 61 66 if (!h) return; 62 67 h->partial=1; 63 68 } 64 69 65 void owl_history_reset(owl_history *h) { 70 void owl_history_reset(owl_history *h) 71 { 66 72 if (!h) return; 67 73 h->cur=0; … … 70 76 } 71 77 72 int owl_history_is_touched(owl_history *h) { 78 int owl_history_is_touched(owl_history *h) 79 { 73 80 if (!h) return(0); 74 81 if (h->touched) return(1);
Note: See TracChangeset
for help on using the changeset viewer.