X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffrm_win.c;h=5f3bc3c658f77fe1a67f23dc5aa486859083a322;hp=468e2fa27893240ee01678d7571881288ba762ef;hb=3934889cc6b0f45cf218c88df7f35634d250c9e5;hpb=7a6bbc8cf41c5186d46accc3d08622dc86526b34 diff --git a/form/frm_win.c b/form/frm_win.c index 468e2fa2..5f3bc3c6 100644 --- a/form/frm_win.c +++ b/form/frm_win.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2004,2009 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2009,2010 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: frm_win.c,v 1.14 2009/04/18 18:38:57 tom Exp $") +MODULE_ID("$Id: frm_win.c,v 1.18 2020/05/24 01:40:20 anonymous.maarten Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -43,10 +44,10 @@ MODULE_ID("$Id: frm_win.c,v 1.14 2009/04/18 18:38:57 tom Exp $") | Return Values : E_OK - success | E_POSTED - form is posted +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(int) +FORM_EXPORT(int) set_form_win(FORM *form, WINDOW *win) { - T((T_CALLED("set_form_win(%p,%p)"), form, win)); + T((T_CALLED("set_form_win(%p,%p)"), (void *)form, (void *)win)); if (form && (form->status & _POSTED)) RETURN(E_POSTED); @@ -55,7 +56,7 @@ set_form_win(FORM *form, WINDOW *win) #if NCURSES_SP_FUNCS FORM *f = Normalize_Form(form); - f->win = win ? win : Get_Form_Screen(f)->_stdscr; + f->win = win ? win : StdScreen(Get_Form_Screen(f)); RETURN(E_OK); #else Normalize_Form(form)->win = win; @@ -72,17 +73,17 @@ set_form_win(FORM *form, WINDOW *win) | | Return Values : The pointer to the Window or stdscr if there is none. +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(WINDOW *) +FORM_EXPORT(WINDOW *) form_win(const FORM *form) { WINDOW *result; const FORM *f; - T((T_CALLED("form_win(%p)"), form)); + T((T_CALLED("form_win(%p)"), (const void *)form)); f = Normalize_Form(form); #if NCURSES_SP_FUNCS - result = (f->win ? f->win : Get_Form_Screen(f)->_stdscr); + result = (f->win ? f->win : StdScreen(Get_Form_Screen(f))); #else result = (f->win ? f->win : stdscr); #endif