/[pspp]/pspp/src/missing-values.c
ViewVC logotype

Diff of /pspp/src/missing-values.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by blp, Tue Oct 25 04:28:17 2005 UTC revision 1.3 by blp, Sat Oct 29 23:35:55 2005 UTC
# Line 107  mv_add_num (struct missing_values *mv, d Line 107  mv_add_num (struct missing_values *mv, d
107    
108  /* Attempts to add range [LOW, HIGH] to the set of numeric  /* Attempts to add range [LOW, HIGH] to the set of numeric
109     missing values MV.  Returns true if successful, false if MV     missing values MV.  Returns true if successful, false if MV
110     has no room for a range. */     has no room for a range, or if LOW > HIGH. */
111  bool  bool
112  mv_add_num_range (struct missing_values *mv, double low, double high)  mv_add_num_range (struct missing_values *mv, double low, double high)
113  {  {
114    assert (mv->width == 0);    assert (mv->width == 0);
115      if (low > high)
116        return false;
117    switch (mv->type)    switch (mv->type)
118      {      {
119      case MV_NONE:      case MV_NONE:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26