/[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.1 by blp, Sun Aug 7 04:39:28 2005 UTC revision 1.2 by blp, Tue Oct 25 04:28:17 2005 UTC
# Line 89  mv_add_value (struct missing_values *mv, Line 89  mv_add_value (struct missing_values *mv,
89     missing values.  (Long string variables never accept missing     missing values.  (Long string variables never accept missing
90     values.) */     values.) */
91  bool  bool
92  mv_add_str (struct missing_values *mv, const unsigned char s[])  mv_add_str (struct missing_values *mv, const char s[])
93  {  {
94    assert (mv->width > 0);    assert (mv->width > 0);
95    return mv_add_value (mv, (union value *) s);    return mv_add_value (mv, (union value *) s);
# Line 223  using_element (unsigned type, int idx) Line 223  using_element (unsigned type, int idx)
223     NEW_WIDTH (inclusive) and OLD_WIDTH (exclusive),     NEW_WIDTH (inclusive) and OLD_WIDTH (exclusive),
224     false otherwise. */     false otherwise. */
225  static bool  static bool
226  can_resize_string (const unsigned char *s, int old_width, int new_width)  can_resize_string (const char *s, int old_width, int new_width)
227  {  {
228    int i;    int i;
229    
# Line 302  mv_is_num_missing (const struct missing_ Line 302  mv_is_num_missing (const struct missing_
302     MV must be a set of string missing values.     MV must be a set of string missing values.
303     S[] must contain exactly as many characters as MV's width. */     S[] must contain exactly as many characters as MV's width. */
304  bool  bool
305  mv_is_str_missing (const struct missing_values *mv,  mv_is_str_missing (const struct missing_values *mv, const char s[])
                    const unsigned char s[])  
306  {  {
307    return mv_is_str_user_missing (mv, s);    return mv_is_str_user_missing (mv, s);
308  }  }
# Line 348  mv_is_num_user_missing (const struct mis Line 347  mv_is_num_user_missing (const struct mis
347     S[] must contain exactly as many characters as MV's width. */     S[] must contain exactly as many characters as MV's width. */
348  bool  bool
349  mv_is_str_user_missing (const struct missing_values *mv,  mv_is_str_user_missing (const struct missing_values *mv,
350                          const unsigned char s[])                          const char s[])
351  {  {
352    const union value *v = mv->values;    const union value *v = mv->values;
353    assert (mv->width > 0);    assert (mv->width > 0);

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

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