Skip to content

Commit 0a19fb4

Browse files
committed
Pgindent timezone file, per request from Tom.
1 parent 63bd0db commit 0a19fb4

File tree

9 files changed

+2243
-1771
lines changed

9 files changed

+2243
-1771
lines changed

src/timezone/ialloc.c

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,63 @@
55

66
#define nonzero(n) (((n) == 0) ? 1 : (n))
77

8-
char *imalloc(const int n)
8+
char *
9+
imalloc(const int n)
910
{
1011
return malloc((size_t) nonzero(n));
1112
}
1213

13-
char *icalloc(int nelem, int elsize)
14+
char *
15+
icalloc(int nelem, int elsize)
1416
{
1517
if (nelem == 0 || elsize == 0)
1618
nelem = elsize = 1;
1719
return calloc((size_t) nelem, (size_t) elsize);
1820
}
1921

20-
void *irealloc(void *pointer, const int size)
22+
void *
23+
irealloc(void *pointer, const int size)
2124
{
2225
if (pointer == NULL)
2326
return imalloc(size);
2427
return realloc((void *) pointer, (size_t) nonzero(size));
2528
}
2629

27-
char *icatalloc(char *old, const char *new)
30+
char *
31+
icatalloc(char *old, const char *new)
2832
{
29-
register char * result;
30-
register int oldsize, newsize;
33+
register char *result;
34+
register int oldsize,
35+
newsize;
3136

3237
newsize = (new == NULL) ? 0 : strlen(new);
3338
if (old == NULL)
3439
oldsize = 0;
3540
else if (newsize == 0)
3641
return old;
37-
else oldsize = strlen(old);
42+
else
43+
oldsize = strlen(old);
3844
if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
3945
if (new != NULL)
4046
(void) strcpy(result + oldsize, new);
4147
return result;
4248
}
4349

44-
char *icpyalloc(const char *string)
50+
char *
51+
icpyalloc(const char *string)
4552
{
4653
return icatalloc((char *) NULL, string);
4754
}
4855

49-
void ifree(char *p)
56+
void
57+
ifree(char *p)
5058
{
5159
if (p != NULL)
5260
(void) free(p);
5361
}
5462

55-
void icfree(char *p)
63+
void
64+
icfree(char *p)
5665
{
5766
if (p != NULL)
5867
(void) free(p);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy