addch.c (1.20) | addch.c (1.21) |
---|---|
1/* $NetBSD: addch.c,v 1.20 2019/05/20 22:17:41 blymn Exp $ */ | 1/* $NetBSD: addch.c,v 1.21 2019/06/09 07:40:14 blymn Exp $ */ |
2 3/* 4 * Copyright (c) 1981, 1993, 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 19 unchanged lines hidden (view full) --- 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)addch.c 8.2 (Berkeley) 5/4/94"; 36#else | 2 3/* 4 * Copyright (c) 1981, 1993, 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 19 unchanged lines hidden (view full) --- 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)addch.c 8.2 (Berkeley) 5/4/94"; 36#else |
37__RCSID("$NetBSD: addch.c,v 1.20 2019/05/20 22:17:41 blymn Exp $"); | 37__RCSID("$NetBSD: addch.c,v 1.21 2019/06/09 07:40:14 blymn Exp $"); |
38#endif 39#endif /* not lint */ 40 41#include "curses.h" 42#include "curses_private.h" 43 44#ifndef _CURSES_USE_MACROS 45 --- 23 unchanged lines hidden (view full) --- 69/* 70 * mvwaddch -- 71 * Add the character to the given window at the given location. 72 */ 73int 74mvwaddch(WINDOW *win, int y, int x, chtype ch) 75{ 76 | 38#endif 39#endif /* not lint */ 40 41#include "curses.h" 42#include "curses_private.h" 43 44#ifndef _CURSES_USE_MACROS 45 --- 23 unchanged lines hidden (view full) --- 69/* 70 * mvwaddch -- 71 * Add the character to the given window at the given location. 72 */ 73int 74mvwaddch(WINDOW *win, int y, int x, chtype ch) 75{ 76 |
77 if (_cursesi_wmove(win, y, x, 0) == ERR) | 77 if (wmove(win, y, x) == ERR) |
78 return ERR; 79 80 return waddch(win, ch); 81} 82 83#endif 84 85#ifdef HAVE_WCHAR --- 48 unchanged lines hidden --- | 78 return ERR; 79 80 return waddch(win, ch); 81} 82 83#endif 84 85#ifdef HAVE_WCHAR --- 48 unchanged lines hidden --- |