Deleted Added
full compact
vfprintf.c (35835) vfprintf.c (39327)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
42 "$Id: vfprintf.c,v 1.18 1998/04/11 07:40:47 jb Exp $";
42 "$Id: vfprintf.c,v 1.19 1998/05/08 05:10:32 jb Exp $";
43#endif /* LIBC_SCCS and not lint */
44
45/*
46 * Actual printf innards.
47 *
48 * This code is large and complicated...
49 */
50

--- 1126 unchanged lines hidden (view full) ---

1177 int newsize = *tablesize * 2;
1178
1179 if (*tablesize == STATIC_ARG_TBL_SIZE) {
1180 *typetable = (unsigned char *)
1181 malloc (sizeof (unsigned char) * newsize);
1182 bcopy (oldtable, *typetable, *tablesize);
1183 } else {
1184 *typetable = (unsigned char *)
43#endif /* LIBC_SCCS and not lint */
44
45/*
46 * Actual printf innards.
47 *
48 * This code is large and complicated...
49 */
50

--- 1126 unchanged lines hidden (view full) ---

1177 int newsize = *tablesize * 2;
1178
1179 if (*tablesize == STATIC_ARG_TBL_SIZE) {
1180 *typetable = (unsigned char *)
1181 malloc (sizeof (unsigned char) * newsize);
1182 bcopy (oldtable, *typetable, *tablesize);
1183 } else {
1184 *typetable = (unsigned char *)
1185 realloc (typetable, sizeof (unsigned char) * newsize);
1185 reallocf (typetable, sizeof (unsigned char) * newsize);
1186
1187 }
1188 memset (&typetable [*tablesize], T_UNUSED, (newsize - *tablesize));
1189
1190 *tablesize = newsize;
1191}
1192
1193

--- 79 unchanged lines hidden ---
1186
1187 }
1188 memset (&typetable [*tablesize], T_UNUSED, (newsize - *tablesize));
1189
1190 *tablesize = newsize;
1191}
1192
1193

--- 79 unchanged lines hidden ---