Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (22 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/libltdl/lt__alloc.h

    r5495 r5496  
    11/* lt__alloc.h -- internal memory management interface
    22
    3    Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
     3   Copyright (C) 2004 Free Software Foundation, Inc.
    44   Written by Gary V. Vaughan, 2004
    55
     
    2929*/
    3030
    31 #if !defined LT__ALLOC_H
     31#if !defined(LT__ALLOC_H)
    3232#define LT__ALLOC_H 1
    3333
     
    3838#define MALLOC(tp, n)           (tp*) lt__malloc((n) * sizeof(tp))
    3939#define REALLOC(tp, mem, n)     (tp*) lt__realloc((mem), (n) * sizeof(tp))
    40 #define FREE(mem)                               LT_STMT_START { \
    41         free (mem); mem = NULL;                                 } LT_STMT_END
    42 #define MEMREASSIGN(p, q)                       LT_STMT_START { \
    43         if ((p) != (q)) { free (p); (p) = (q); (q) = 0; }       \
     40#define FREE(mem)                                       LT_STMT_START { \
     41        if (mem) { free ((void *)mem); mem = NULL; }    } LT_STMT_END
     42#define MEMREASSIGN(p, q)                               LT_STMT_START { \
     43        if ((p) != (q)) { if (p) free (p); (p) = (q); (q) = 0; }        \
    4444                                                                } LT_STMT_END
    4545
     
    5656LT_END_C_DECLS
    5757
    58 #endif /*!defined LT__ALLOC_H*/
     58#endif /*!defined(LT__ALLOC_H)*/
Note: See TracChangeset for help on using the changeset viewer.