X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffld_page.c;h=c6fb37c84000690e945910970b56d1a852860f4c;hp=8d5c8cbf73ba1ea60a9793a4fba1cd936832f3b9;hb=89730563d0a660d4ddd83d28660dc23c6d3f0bed;hpb=ba39fbc2e0cee4681395df4079d9e61c27262132;ds=sidebyside diff --git a/form/fld_page.c b/form/fld_page.c index 8d5c8cbf..c6fb37c8 100644 --- a/form/fld_page.c +++ b/form/fld_page.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_page.c,v 1.11 2012/03/11 00:37:16 tom Exp $") +MODULE_ID("$Id: fld_page.c,v 1.13 2020/02/02 23:34:34 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -54,9 +55,9 @@ set_new_page(FIELD *field, bool new_page_flag) RETURN(E_CONNECTED); if (new_page_flag) - field->status |= _NEWPAGE; + SetStatus(field, _NEWPAGE); else - field->status &= (unsigned short) (~_NEWPAGE); + ClrStatus(field, _NEWPAGE); RETURN(E_OK); }