Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Bundle 4.9.0-2 (2022-06-24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 24, 2022
1 parent 1a4122a commit ad8c34d
Show file tree
Hide file tree
Showing 76 changed files with 15,429 additions and 18 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
# netcdf 4.9.0-1
# netcdf 4.9.0-2

- mingw-w64-i686-zlib-1.2.11-9100-any.pkg.tar.xz
- mingw-w64-i686-openssl-1.1.1.m-9800-any.pkg.tar.xz
- mingw-w64-i686-libssh2-1.10.0-9800-any.pkg.tar.xz
- mingw-w64-i686-curl-7.64.1-9202-any.pkg.tar.xz
- mingw-w64-i686-hdf5-1.10.5-9002-any.pkg.tar.xz
- mingw-w64-i686-netcdf-4.9.0-1-any.pkg.tar.xz
- mingw-w64-i686-expat-2.2.9-9002-any.pkg.tar.xz
- mingw-w64-i686-gettext-0.19.8.1-9002-any.pkg.tar.xz
- mingw-w64-i686-libxml2-2.9.10-9800-any.pkg.tar.xz
- mingw-w64-i686-netcdf-4.9.0-2-any.pkg.tar.xz
- mingw-w64-i686-udunits-2.2.28-1-any.pkg.tar.xz
- mingw-w64-x86_64-zlib-1.2.11-9100-any.pkg.tar.xz
- mingw-w64-x86_64-openssl-1.1.1.m-9800-any.pkg.tar.xz
- mingw-w64-x86_64-libssh2-1.10.0-9800-any.pkg.tar.xz
- mingw-w64-x86_64-curl-7.64.1-9202-any.pkg.tar.xz
- mingw-w64-x86_64-hdf5-1.10.5-9002-any.pkg.tar.xz
- mingw-w64-x86_64-netcdf-4.9.0-1-any.pkg.tar.xz
- mingw-w64-x86_64-expat-2.2.9-9002-any.pkg.tar.xz
- mingw-w64-x86_64-gettext-0.19.8.1-9002-any.pkg.tar.xz
- mingw-w64-x86_64-libxml2-2.9.10-9800-any.pkg.tar.xz
- mingw-w64-x86_64-netcdf-4.9.0-2-any.pkg.tar.xz
- mingw-w64-x86_64-udunits-2.2.28-1-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-zlib-1.2.11-9100-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-openssl-1.1.1.m-9800-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-libssh2-1.10.0-9800-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-curl-7.64.1-9202-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-hdf5-1.10.5-9002-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-netcdf-4.9.0-1-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-expat-2.2.9-9002-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-gettext-0.19.8.1-9002-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-libxml2-2.9.10-9800-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-netcdf-4.9.0-2-any.pkg.tar.xz
- mingw-w64-ucrt-x86_64-udunits-2.2.28-1-any.pkg.tar.xz
67 changes: 67 additions & 0 deletions include/autosprintf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* Class autosprintf - formatted output to an ostream.
Copyright (C) 2002, 2012-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */

#ifndef _AUTOSPRINTF_H
#define _AUTOSPRINTF_H

/* This feature is available in gcc versions 2.5 and later. */
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
# define _AUTOSPRINTF_ATTRIBUTE_FORMAT() /* empty */
#else
/* The __-protected variants of 'format' and 'printf' attributes
are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
# define _AUTOSPRINTF_ATTRIBUTE_FORMAT() \
__attribute__ ((__format__ (__printf__, 2, 3)))
# else
# define _AUTOSPRINTF_ATTRIBUTE_FORMAT() \
__attribute__ ((format (printf, 2, 3)))
# endif
#endif

#include <string>
#include <iostream>

namespace gnu
{
/* A temporary object, usually allocated on the stack, representing
the result of an asprintf() call. */
class autosprintf
{
public:
/* Constructor: takes a format string and the printf arguments. */
autosprintf (const char *format, ...)
_AUTOSPRINTF_ATTRIBUTE_FORMAT();
/* Copy constructor. */
autosprintf (const autosprintf& src);
autosprintf& operator = (autosprintf copy);
/* Destructor: frees the temporarily allocated string. */
~autosprintf ();
/* Conversion to string. */
operator char * () const;
operator std::string () const;
/* Output to an ostream. */
friend inline std::ostream& operator<< (std::ostream& stream, const autosprintf& tmp)
{
stream << (tmp.str ? tmp.str : "(error in autosprintf)");
return stream;
}
private:
char *str;
};
}

#endif /* _AUTOSPRINTF_H */
Loading

0 comments on commit ad8c34d

Please sign in to comment.