"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "make_malloc.h" between
bmake-20201101.tar.gz and bmake-20201117.tar.gz

About: bmake a BSD make tool (derived from NetBSD’s make).

make_malloc.h  (bmake-20201101):make_malloc.h  (bmake-20201117)
/* $NetBSD: make_malloc.h,v 1.12 2020/10/19 23:43:55 rillig Exp $ */ /* $NetBSD: make_malloc.h,v 1.13 2020/11/10 00:32:12 rillig Exp $ */
/*- /*-
* Copyright (c) 2009 The NetBSD Foundation, Inc. * Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
skipping to change at line 49 skipping to change at line 49
#define bmake_strldup(s, n) estrndup(s, n) #define bmake_strldup(s, n) estrndup(s, n)
#endif #endif
char *bmake_strsedup(const char *, const char *); char *bmake_strsedup(const char *, const char *);
/* Thin wrapper around free(3) to avoid the extra function call in case /* Thin wrapper around free(3) to avoid the extra function call in case
* p is NULL, to save a few machine instructions. * p is NULL, to save a few machine instructions.
* *
* The case of a NULL pointer happens especially often after Var_Value, * The case of a NULL pointer happens especially often after Var_Value,
* since only environment variables need to be freed, but not others. */ * since only environment variables need to be freed, but not others. */
static inline MAKE_ATTR_UNUSED void MAKE_INLINE void
bmake_free(void *p) bmake_free(void *p)
{ {
if (p != NULL) if (p != NULL)
free(p); free(p);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)