HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plist module
[bpt/emacs.git]
/
src
/
tparam.c
diff --git
a/src/tparam.c
b/src/tparam.c
index
164f61d
..
2c72db3
100644
(file)
--- a/
src/tparam.c
+++ b/
src/tparam.c
@@
-1,6
+1,6
@@
/* Merge parameters into a termcap entry string.
/* Merge parameters into a termcap entry string.
- Copyright (C) 1985, 1987, 1993, 1995, 2000
, 2001, 2002, 2003, 2004,
-
2005, 2006, 2007, 2008 Free
Software Foundation, Inc.
+ Copyright (C) 1985, 1987, 1993, 1995, 2000
-2008, 2013-2014 Free
+ Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-13,9
+13,7
@@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; see the file COPYING. If not, write to
-the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA. */
+along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Emacs config.h may rename various library functions such as malloc. */
#include <config.h>
/* Emacs config.h may rename various library functions such as malloc. */
#include <config.h>
@@
-81,7
+79,7
@@
tparam1 (const char *string, char *outstring, int len,
register int tem;
int *old_argp = argp; /* can move */
int *fixed_argp = argp; /* never moves */
register int tem;
int *old_argp = argp; /* can move */
int *fixed_argp = argp; /* never moves */
-
int explicit_param_p = 0;
/* set by %p */
+
bool explicit_param_p = 0;
/* set by %p */
ptrdiff_t doleft = 0;
ptrdiff_t doup = 0;
ptrdiff_t append_len = 0;
ptrdiff_t doleft = 0;
ptrdiff_t doup = 0;
ptrdiff_t append_len = 0;
@@
-98,7
+96,7
@@
tparam1 (const char *string, char *outstring, int len,
if (outlen == 0)
{
outlen = len + 40;
if (outlen == 0)
{
outlen = len + 40;
- new = xmalloc (outlen);
+ new = xmalloc
_atomic
(outlen);
memcpy (new, outstring, offset);
}
else
memcpy (new, outstring, offset);
}
else