X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=menu%2Fm_pattern.c;h=6fbef236f2e6aa67c858f8f07ccea3789d8957cd;hb=1f474475aab29bc166012819129d46c70320efdc;hp=469a00215813dc0109ee5da4dd3d1d1a8777f142;hpb=04d942c3d98cf0a929c6afb17be8c10d4ae39af0;p=ncurses.git diff --git a/menu/m_pattern.c b/menu/m_pattern.c index 469a0021..6fbef236 100644 --- a/menu/m_pattern.c +++ b/menu/m_pattern.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020 Thomas E. Dickey * + * Copyright 2020,2021 Thomas E. Dickey * * Copyright 1998-2006,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -38,12 +38,12 @@ #include "menu.priv.h" -MODULE_ID("$Id: m_pattern.c,v 1.18 2020/05/24 01:40:20 anonymous.maarten Exp $") +MODULE_ID("$Id: m_pattern.c,v 1.20 2021/06/17 21:20:30 tom Exp $") /*--------------------------------------------------------------------------- -| Facility : libnmenu +| Facility : libnmenu | Function : char *menu_pattern(const MENU *menu) -| +| | Description : Return the value of the pattern buffer. | | Return Values : NULL - if there is no pattern buffer allocated @@ -52,7 +52,7 @@ MODULE_ID("$Id: m_pattern.c,v 1.18 2020/05/24 01:40:20 anonymous.maarten Exp $") | PatternString - as expected +--------------------------------------------------------------------------*/ MENU_EXPORT(char *) -menu_pattern(const MENU * menu) +menu_pattern(const MENU *menu) { static char empty[] = ""; @@ -61,9 +61,9 @@ menu_pattern(const MENU * menu) } /*--------------------------------------------------------------------------- -| Facility : libnmenu +| Facility : libnmenu | Function : int set_menu_pattern(MENU *menu, const char *p) -| +| | Description : Set the match pattern for a menu and position to the | first item that matches. | @@ -74,7 +74,7 @@ menu_pattern(const MENU * menu) | E_NO_MATCH - no item matches pattern +--------------------------------------------------------------------------*/ MENU_EXPORT(int) -set_menu_pattern(MENU * menu, const char *p) +set_menu_pattern(MENU *menu, const char *p) { ITEM *matchitem; int matchpos;