Deleted Added
full compact
stdd.h (1591) stdd.h (8874)
1/*-
2 * Copyright (c) 1991, 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 * Ozan Yigit at York University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

40 * standard defines
41 */
42
43#define max(a,b) ((a) > (b)? (a): (b))
44#define min(a,b) ((a) < (b)? (a): (b))
45
46#define iswhite(c) ((c) == ' ' || (c) == '\t')
47
1/*-
2 * Copyright (c) 1991, 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 * Ozan Yigit at York University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

40 * standard defines
41 */
42
43#define max(a,b) ((a) > (b)? (a): (b))
44#define min(a,b) ((a) < (b)? (a): (b))
45
46#define iswhite(c) ((c) == ' ' || (c) == '\t')
47
48/*
49 * STREQ is an optimised strcmp(a,b)==0
50 * STREQN is an optimised strncmp(a,b,n)==0; assumes n > 0
48/*
49 * STREQ is an optimised strcmp(a,b)==0
50 * STREQN is an optimised strncmp(a,b,n)==0; assumes n > 0
51 */
52#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0)
53#define STREQN(a, b, n) ((a)[0] == (b)[0] && strncmp(a, b, n) == 0)
54
55#define YES 1
56#define NO 0
51 */
52#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0)
53#define STREQN(a, b, n) ((a)[0] == (b)[0] && strncmp(a, b, n) == 0)
54
55#define YES 1
56#define NO 0