summaryrefslogtreecommitdiff
path: root/form/fld_max.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-01-31 22:26:04 +0000
committer <>2015-02-09 14:16:45 +0000
commitf6d73a10a980bc78969c3af93665cbe7d06c3646 (patch)
tree83f9bf86268881f01478c2a7f8f5186b2c8db3d3 /form/fld_max.c
parent280cceada215debbf561bcec9780630ddad28b37 (diff)
downloadncurses-f6d73a10a980bc78969c3af93665cbe7d06c3646.tar.gz
Imported from /home/lorry/working-area/delta_ncurses/ncurses-5.9-20150131.tgz.ncurses-5.9-20150131
Diffstat (limited to 'form/fld_max.c')
-rw-r--r--form/fld_max.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/form/fld_max.c b/form/fld_max.c
index 5ce918e..6c7fe72 100644
--- a/form/fld_max.c
+++ b/form/fld_max.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2004,2010 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -32,7 +32,7 @@
#include "form.priv.h"
-MODULE_ID("$Id: fld_max.c,v 1.10 2010/01/23 21:14:36 tom Exp $")
+MODULE_ID("$Id: fld_max.c,v 1.13 2013/08/24 22:59:28 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -62,13 +62,13 @@ set_max_field(FIELD *field, int maxgrow)
RETURN(E_BAD_ARGUMENT);
}
field->maxgrow = maxgrow;
- field->status &= ~_MAY_GROW;
- if (!(field->opts & O_STATIC))
+ ClrStatus(field, _MAY_GROW);
+ if (!((unsigned)field->opts & O_STATIC))
{
if ((maxgrow == 0) ||
(single_line_field && (field->dcols < maxgrow)) ||
(!single_line_field && (field->drows < maxgrow)))
- field->status |= _MAY_GROW;
+ SetStatus(field, _MAY_GROW);
}
}
RETURN(E_OK);