X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffld_stat.c;h=487a21dc9642d7edf620b7a5f63f2f33a6065b8a;hp=3e6f1921677d8b4ae204699e6673e79cdbf5ceee;hb=refs%2Ftags%2Fv6.2;hpb=ba39fbc2e0cee4681395df4079d9e61c27262132 diff --git a/form/fld_stat.c b/form/fld_stat.c index 3e6f1921..487a21dc 100644 --- a/form/fld_stat.c +++ b/form/fld_stat.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2010,2012 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 +33,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fld_stat.c,v 1.13 2012/03/11 00:37:16 tom Exp $") +MODULE_ID("$Id: fld_stat.c,v 1.15 2020/02/02 23:34:34 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -51,9 +52,9 @@ set_field_status(FIELD *field, bool status) Normalize_Field(field); if (status) - field->status |= _CHANGED; + SetStatus(field, _CHANGED); else - field->status &= (unsigned short)(~_CHANGED); + ClrStatus(field, _CHANGED); RETURN(E_OK); }