mirror of
https://github.com/mirror/make.git
synced 2025-01-28 05:10:24 +08:00
* Add strneq() (streq only n chars) macro
* fix return type of xstrdup.
This commit is contained in:
parent
e3d0d562da
commit
1e0513335f
2
make.h
2
make.h
@ -298,6 +298,8 @@ extern char *alloca ();
|
||||
# define strieq(a, b) (strcmp ((a), (b)) == 0)
|
||||
#endif
|
||||
|
||||
#define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
|
||||
|
||||
/* Add to VAR the hashing value of C, one character in a name. */
|
||||
#define HASH(var, c) \
|
||||
((var += (c)), (var = ((var) << 7) + ((var) >> 20)))
|
||||
|
Loading…
Reference in New Issue
Block a user