X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=panel%2Fp_user.c;h=9eec8ba11672b0f15471c0641d39d6f1ce867627;hp=28b6526bb41c6c84ac6587a29c9444a30d56deae;hb=a6eb34d7fec8170a8715f9e53ca2f96452dd30dd;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/panel/p_user.c b/panel/p_user.c index 28b6526b..9eec8ba1 100644 --- a/panel/p_user.c +++ b/panel/p_user.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2005,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 * @@ -36,20 +37,21 @@ */ #include "panel.priv.h" -MODULE_ID("$Id: p_user.c,v 1.3 1998/02/11 12:14:01 tom Exp $") +MODULE_ID("$Id: p_user.c,v 1.10 2020/05/24 01:40:20 anonymous.maarten Exp $") -int -set_panel_userptr(PANEL *pan, NCURSES_CONST void *uptr) +PANEL_EXPORT(int) +set_panel_userptr(PANEL * pan, NCURSES_CONST void *uptr) { - if(!pan) - return(ERR); + T((T_CALLED("set_panel_userptr(%p,%p)"), (void *)pan, (NCURSES_CONST void *)uptr)); + if (!pan) + returnCode(ERR); pan->user = uptr; - return(OK); + returnCode(OK); } -NCURSES_CONST void* -panel_userptr(const PANEL *pan) +PANEL_EXPORT(NCURSES_CONST void *) +panel_userptr(const PANEL * pan) { - return(pan ? pan->user : (NCURSES_CONST void *)0); + T((T_CALLED("panel_userptr(%p)"), (const void *)pan)); + returnCVoidPtr(pan ? pan->user : (NCURSES_CONST void *)0); } -