root/maint/gnulib/tests/test-stdlib-c++.cc

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 /* Test of <stdlib.h> substitute in C++ mode.
   2    Copyright (C) 2010-2021 Free Software Foundation, Inc.
   3 
   4    This program is free software: you can redistribute it and/or modify
   5    it under the terms of the GNU General Public License as published by
   6    the Free Software Foundation; either version 3 of the License, or
   7    (at your option) any later version.
   8 
   9    This program is distributed in the hope that it will be useful,
  10    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12    GNU General Public License for more details.
  13 
  14    You should have received a copy of the GNU General Public License
  15    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
  16 
  17 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
  18 
  19 #define GNULIB_NAMESPACE gnulib
  20 #include <config.h>
  21 
  22 #include <stdlib.h>
  23 
  24 #include "signature.h"
  25 
  26 
  27 #if GNULIB_TEST__EXIT
  28 SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
  29 #endif
  30 
  31 #if GNULIB_TEST_ALIGNED_ALLOC && HAVE_ALIGNED_ALLOC
  32 SIGNATURE_CHECK (GNULIB_NAMESPACE::aligned_alloc, void *, (size_t, size_t));
  33 #endif
  34 
  35 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
  36 
  37 #if GNULIB_TEST_ATOLL
  38 SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
  39 #endif
  40 
  41 #if GNULIB_TEST_CALLOC_POSIX
  42 SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
  43 #endif
  44 
  45 #if GNULIB_TEST_CANONICALIZE_FILE_NAME
  46 SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
  47                  (const char *));
  48 #endif
  49 
  50 #if GNULIB_TEST_FREE_POSIX
  51 SIGNATURE_CHECK (GNULIB_NAMESPACE::free, void, (void *));
  52 #endif
  53 
  54 #if GNULIB_TEST_GETLOADAVG
  55 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
  56 #endif
  57 
  58 #if GNULIB_TEST_GETSUBOPT
  59 SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
  60                  (char **, char *const *, char **));
  61 #endif
  62 
  63 #if GNULIB_TEST_GRANTPT
  64 SIGNATURE_CHECK (GNULIB_NAMESPACE::grantpt, int, (int));
  65 #endif
  66 
  67 #if GNULIB_TEST_MALLOC_POSIX
  68 SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
  69 #endif
  70 
  71 #if GNULIB_TEST_MBTOWC
  72 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbtowc, int,
  73                  (wchar_t *, const char *, size_t));
  74 #endif
  75 
  76 #if GNULIB_TEST_MKDTEMP
  77 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
  78 #endif
  79 
  80 #if GNULIB_TEST_MKOSTEMP
  81 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
  82 #endif
  83 
  84 #if GNULIB_TEST_MKOSTEMPS
  85 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
  86 #endif
  87 
  88 #if GNULIB_TEST_MKSTEMP
  89 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
  90 #endif
  91 
  92 #if GNULIB_TEST_MKSTEMPS
  93 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
  94 #endif
  95 
  96 #if GNULIB_TEST_POSIX_MEMALIGN && HAVE_POSIX_MEMALIGN
  97 SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_memalign, int,
  98                  (void **, size_t, size_t));
  99 #endif
 100 
 101 #if GNULIB_TEST_POSIX_OPENPT
 102 SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_openpt, int, (int));
 103 #endif
 104 
 105 #if GNULIB_TEST_PTSNAME
 106 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
 107 #endif
 108 
 109 #if GNULIB_TEST_PTSNAME_R
 110 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname_r, int, (int, char *, size_t));
 111 #endif
 112 
 113 #if GNULIB_TEST_PUTENV
 114 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
 115 #endif
 116 
 117 #if GNULIB_TEST_QSORT_R
 118 SIGNATURE_CHECK (GNULIB_NAMESPACE::qsort_r, void,
 119                  (void *, size_t, size_t,
 120                   int (*) (void const *, void const *, void *), void *));
 121 #endif
 122 
 123 #if GNULIB_TEST_RANDOM
 124 SIGNATURE_CHECK (GNULIB_NAMESPACE::random, long, (void));
 125 #endif
 126 
 127 #if GNULIB_TEST_RANDOM
 128 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom, void, (unsigned int));
 129 #endif
 130 
 131 #if GNULIB_TEST_RANDOM
 132 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate, char *,
 133                  (unsigned int, char *, size_t));
 134 #endif
 135 
 136 #if GNULIB_TEST_RANDOM
 137 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate, char *, (char *));
 138 #endif
 139 
 140 #if GNULIB_TEST_RANDOM_R
 141 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
 142                  (struct random_data *, int32_t *));
 143 #endif
 144 
 145 #if GNULIB_TEST_RANDOM_R
 146 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
 147                  (unsigned int, struct random_data *));
 148 #endif
 149 
 150 #if GNULIB_TEST_RANDOM_R
 151 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
 152                  (unsigned int, char *, size_t, struct random_data *));
 153 #endif
 154 
 155 #if GNULIB_TEST_RANDOM_R
 156 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
 157                  (char *, struct random_data *));
 158 #endif
 159 
 160 #if GNULIB_TEST_REALLOC_POSIX
 161 SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
 162 #endif
 163 
 164 #if GNULIB_TEST_REALPATH
 165 SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
 166 #endif
 167 
 168 #if GNULIB_TEST_RPMATCH
 169 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
 170 #endif
 171 
 172 #if GNULIB_TEST_SECURE_GETENV
 173 SIGNATURE_CHECK (GNULIB_NAMESPACE::secure_getenv, char *, (char const *));
 174 #endif
 175 
 176 #if GNULIB_TEST_SETENV
 177 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
 178                  (const char *, const char *, int));
 179 #endif
 180 
 181 #if GNULIB_TEST_STRTOD
 182 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
 183 #endif
 184 
 185 #if GNULIB_TEST_STRTOLL
 186 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
 187                  (const char *, char **, int));
 188 #endif
 189 
 190 #if GNULIB_TEST_STRTOULL
 191 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
 192                  (const char *, char **, int));
 193 #endif
 194 
 195 #if GNULIB_TEST_UNLOCKPT
 196 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlockpt, int, (int));
 197 #endif
 198 
 199 #if GNULIB_TEST_UNSETENV
 200 SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));
 201 #endif
 202 
 203 #if GNULIB_TEST_WCTOMB
 204 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctomb, int, (char *, wchar_t));
 205 #endif
 206 
 207 
 208 int
 209 main ()
     /* [previous][next][first][last][top][bottom][index][help] */
 210 {
 211 }

/* [previous][next][first][last][top][bottom][index][help] */