Changeset 70b53ec for history.c


Ignore:
Timestamp:
Oct 26, 2003, 2:52:25 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e3d9c77
Parents:
25dd31a
Message:
Fixed formatting in history.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • history.c

    r10b866d r70b53ec  
    33static const char fileIdent[] = "$Id$";
    44
    5 void owl_history_init(owl_history *h) {
     5void owl_history_init(owl_history *h)
     6{
    67  owl_list_create(&(h->hist));
    78  h->cur=0;                     /* current position in history */
     
    1011}
    1112
    12 char *owl_history_get_prev(owl_history *h) {
     13char *owl_history_get_prev(owl_history *h)
     14{
    1315
    1416  if (!h) return NULL;
     
    2628}
    2729
    28 char *owl_history_get_next(owl_history *h) {
     30char *owl_history_get_next(owl_history *h)
     31{
    2932  if (!h) return NULL;
    3033  if (owl_list_get_size(&(h->hist))==0) return(NULL);
     
    3740}
    3841
    39 void owl_history_store(owl_history *h, char *line) {
     42void owl_history_store(owl_history *h, char *line)
     43{
    4044  int size;
    4145
     
    5862}
    5963
    60 void owl_history_set_partial(owl_history *h) {
     64void owl_history_set_partial(owl_history *h)
     65{
    6166  if (!h) return;
    6267  h->partial=1;
    6368}
    6469
    65 void owl_history_reset(owl_history *h) {
     70void owl_history_reset(owl_history *h)
     71{
    6672  if (!h) return;
    6773  h->cur=0;
     
    7076}
    7177
    72 int owl_history_is_touched(owl_history *h) {
     78int owl_history_is_touched(owl_history *h)
     79{
    7380  if (!h) return(0);
    7481  if (h->touched) return(1);
Note: See TracChangeset for help on using the changeset viewer.