Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Rename the reserved argument from "opt" to "op...
details: https://anonhg.NetBSD.org/src/rev/701c0809c544
branches: trunk
changeset: 446093:701c0809c544
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Nov 23 11:15:14 2018 +0000
description:
Rename the reserved argument from "opt" to "opts" to match SUS text.
diffstat:
lib/libcurses/attributes.c | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
diffs (136 lines):
diff -r 89236ac33807 -r 701c0809c544 lib/libcurses/attributes.c
--- a/lib/libcurses/attributes.c Fri Nov 23 11:11:59 2018 +0000
+++ b/lib/libcurses/attributes.c Fri Nov 23 11:15:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: attributes.c,v 1.27 2018/11/23 11:11:59 uwe Exp $ */
+/* $NetBSD: attributes.c,v 1.28 2018/11/23 11:15:14 uwe Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: attributes.c,v 1.27 2018/11/23 11:11:59 uwe Exp $");
+__RCSID("$NetBSD: attributes.c,v 1.28 2018/11/23 11:15:14 uwe Exp $");
#endif /* not lint */
#include "curses.h"
@@ -49,9 +49,9 @@
*/
/* ARGSUSED */
int
-attr_get(attr_t *attr, short *pair, void *opt)
+attr_get(attr_t *attr, short *pair, void *opts)
{
- return wattr_get(stdscr, attr, pair, opt);
+ return wattr_get(stdscr, attr, pair, opts);
}
/*
@@ -60,9 +60,9 @@
*/
/* ARGSUSED */
int
-attr_on(attr_t attr, void *opt)
+attr_on(attr_t attr, void *opts)
{
- return wattr_on(stdscr, attr, opt);
+ return wattr_on(stdscr, attr, opts);
}
/*
@@ -71,9 +71,9 @@
*/
/* ARGSUSED */
int
-attr_off(attr_t attr, void *opt)
+attr_off(attr_t attr, void *opts)
{
- return wattr_off(stdscr, attr, opt);
+ return wattr_off(stdscr, attr, opts);
}
/*
@@ -82,9 +82,9 @@
*/
/* ARGSUSED */
int
-attr_set(attr_t attr, short pair, void *opt)
+attr_set(attr_t attr, short pair, void *opts)
{
- return wattr_set(stdscr, attr, pair, opt);
+ return wattr_set(stdscr, attr, pair, opts);
}
/*
@@ -93,9 +93,9 @@
*/
/* ARGSUSED */
int
-color_set(short pair, void *opt)
+color_set(short pair, void *opts)
{
- return wcolor_set(stdscr, pair, opt);
+ return wcolor_set(stdscr, pair, opts);
}
/*
@@ -137,7 +137,7 @@
*/
/* ARGSUSED */
int
-wattr_get(WINDOW *win, attr_t *attr, short *pair, void *opt)
+wattr_get(WINDOW *win, attr_t *attr, short *pair, void *opts)
{
#ifdef DEBUG
__CTRACE(__CTRACE_ATTR, "wattr_get: win %p\n", win);
@@ -159,9 +159,9 @@
* Test and set wide attributes on window
*/
int
-wattr_on(WINDOW *win, attr_t attr, void *opt)
+wattr_on(WINDOW *win, attr_t attr, void *opts)
{
- if (__predict_false(opt != NULL))
+ if (__predict_false(opts != NULL))
return ERR;
return __wattr_on(win, attr);
@@ -175,9 +175,9 @@
* which attributes should really be set in refresh.c:makech().
*/
int
-wattr_off(WINDOW *win, attr_t attr, void *opt)
+wattr_off(WINDOW *win, attr_t attr, void *opts)
{
- if (__predict_false(opt != NULL))
+ if (__predict_false(opts != NULL))
return ERR;
return __wattr_off(win, attr);
@@ -189,13 +189,13 @@
* Set wide attributes and color pair on window
*/
int
-wattr_set(WINDOW *win, attr_t attr, short pair, void *opt)
+wattr_set(WINDOW *win, attr_t attr, short pair, void *opts)
{
#ifdef DEBUG
__CTRACE(__CTRACE_ATTR, "wattr_set: win %p, attr %08x, pair %d\n",
win, attr, pair);
#endif
- if (__predict_false(opt != NULL))
+ if (__predict_false(opts != NULL))
return ERR;
/*
@@ -215,7 +215,7 @@
*/
/* ARGSUSED */
int
-wcolor_set(WINDOW *win, short pair, void *opt)
+wcolor_set(WINDOW *win, short pair, void *opts)
{
#ifdef DEBUG
__CTRACE(__CTRACE_COLOR, "wolor_set: win %p, pair %d\n", win, pair);
Home |
Main Index |
Thread Index |
Old Index