bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

update xallocsa module


From: Bruno Haible
Subject: update xallocsa module
Date: Sat, 22 Jul 2006 18:33:02 +0200
User-agent: KMail/1.9.1

Merge from gettext.

2005-02-12  Bruno Haible  <address@hidden>

        * xallocsa.h: Add extern "C" for C++.

*** xallocsa.h  14 May 2005 06:03:58 -0000      1.2
--- xallocsa.h  22 Jul 2006 16:34:47 -0000
***************
*** 1,5 ****
  /* Safe automatic memory allocation with out of memory checking.
!    Copyright (C) 2003 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2003.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Safe automatic memory allocation with out of memory checking.
!    Copyright (C) 2003, 2005 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2003.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 21,26 ****
--- 21,32 ----
  
  #include "allocsa.h"
  
+ 
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
+ 
  /* xallocsa(N) is a checking safe variant of alloca(N).  It allocates N bytes
     of memory allocated on the stack, that must be freed using freesa() before
     the function returns.  Upon failure, it exits with an error message.  */
***************
*** 39,42 ****
--- 45,54 ----
      xnallocsa (size_t n, size_t s) - behaves like xallocsa (n * s)
     If this would be useful in your application. please speak up.  */
  
+ 
+ #ifdef __cplusplus
+ }
+ #endif
+ 
+ 
  #endif /* _XALLOCSA_H */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]