Changeset 118c919 for functions.c


Ignore:
Timestamp:
Sep 21, 2010, 5:33:11 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
b120bd3
Parents:
4a41f16
git-author:
David Benjamin <davidben@mit.edu> (09/18/10 17:35:30)
git-committer:
David Benjamin <davidben@mit.edu> (09/21/10 17:33:11)
Message:
Name search argument consider_current

Adding yet another enum for a boolean value is overkill.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r4a41f16 r118c919  
    28942894}
    28952895
    2896 void owl_function_search_helper(int mode, int direction)
     2896void owl_function_search_helper(int consider_current, int direction)
    28972897{
    28982898  /* move to a message that contains the string.  If direction is
     
    29002900   * OWL_DIRECTION_UPWARDS then search backwards.
    29012901   *
    2902    * If mode is OWL_SEARCH_MATCH_CURRENT then it will stay on the
     2902   * If consider_current is true then it will stay on the
    29032903   * current message if it contains the string.
    29042904   */
     
    29172917  }
    29182918
    2919   if (mode == OWL_SEARCH_MATCH_CURRENT) {
     2919  if (consider_current) {
    29202920    start=curmsg;
    29212921  } else if (direction==OWL_DIRECTION_DOWNWARDS) {
Note: See TracChangeset for help on using the changeset viewer.