| OLD | NEW | 
|---|
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. | 
| 2 // | 2 // | 
| 3 // This code is licensed under the same terms as WebM: | 3 // Use of this source code is governed by a BSD-style license | 
| 4 //  Software License Agreement:  http://www.webmproject.org/license/software/ | 4 // that can be found in the COPYING file in the root of the source | 
| 5 //  Additional IP Rights Grant:  http://www.webmproject.org/license/additional/ | 5 // tree. An additional intellectual property rights grant can be found | 
|  | 6 // in the file PATENTS. All contributing project authors may | 
|  | 7 // be found in the AUTHORS file in the root of the source tree. | 
| 6 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- | 
| 7 // | 9 // | 
| 8 // Misc. common utility functions | 10 // Misc. common utility functions | 
| 9 // | 11 // | 
| 10 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) | 
| 11 | 13 | 
| 12 #include <stdlib.h> | 14 #include <stdlib.h> | 
| 13 #include "./utils.h" | 15 #include "./utils.h" | 
| 14 | 16 | 
| 15 #if defined(__cplusplus) || defined(c_plusplus) | 17 #if defined(__cplusplus) || defined(c_plusplus) | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 38   if (!CheckSizeArgumentsOverflow(nmemb, size)) return NULL; | 40   if (!CheckSizeArgumentsOverflow(nmemb, size)) return NULL; | 
| 39   assert(nmemb * size > 0); | 41   assert(nmemb * size > 0); | 
| 40   return calloc((size_t)nmemb, size); | 42   return calloc((size_t)nmemb, size); | 
| 41 } | 43 } | 
| 42 | 44 | 
| 43 //------------------------------------------------------------------------------ | 45 //------------------------------------------------------------------------------ | 
| 44 | 46 | 
| 45 #if defined(__cplusplus) || defined(c_plusplus) | 47 #if defined(__cplusplus) || defined(c_plusplus) | 
| 46 }    // extern "C" | 48 }    // extern "C" | 
| 47 #endif | 49 #endif | 
| OLD | NEW | 
|---|