- Timestamp:
- Jun 25, 2011, 3:24:36 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 83a079a
- Parents:
- 43744ce
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 02:41:18)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 03:24:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
history.c
r43744ce r9923144 5 5 owl_list_create(&(h->hist)); 6 6 h->cur=0; /* current position in history */ 7 h->touched=0; /* whether we've gone into history */8 7 h->partial=0; /* is the 0th element is partially composed? */ 9 8 } … … 13 12 14 13 if (!h) return NULL; 15 h->touched=1;16 14 17 15 if (owl_list_get_size(&(h->hist))==0) return(NULL); … … 76 74 if (!h) return; 77 75 h->cur=0; 78 h->touched=0;79 76 h->partial=0; 80 77 } … … 83 80 { 84 81 if (!h) return(0); 85 if (h->touched) return(1); 86 return(0); 82 return h->cur > 0; 87 83 }
Note: See TracChangeset
for help on using the changeset viewer.