Commit 700f5b961ee3ec672b5f8d2fa2c166af00994a9b
1 parent
30c1f856
Remove int type checks -- subsumed by C++-11
Showing
4 changed files
with
2 additions
and
97 deletions
autofiles.sums
| 1 | -384fa974656199e43cb904500c6013c3c53cb768b26eedb26440305960e07479 configure.ac | 1 | +0d6b963d8ba8188505994a9e954a101da416c13ac18311c032a58cb1083cc96f configure.ac |
| 2 | d3f9ee6f6f0846888d9a10fd3dad2e4b1258be84205426cf04d7cef02d61dad7 aclocal.m4 | 2 | d3f9ee6f6f0846888d9a10fd3dad2e4b1258be84205426cf04d7cef02d61dad7 aclocal.m4 |
| 3 | -6bfabf45d5b7cee4160caacc34feed7c36207605c913d973b391ab13f637bc64 libqpdf/qpdf/qpdf-config.h.in | 3 | +804845b8bc9de4a6c9e6977285e114bbf6e6c4b5592d1a707a535a45411b6bf2 libqpdf/qpdf/qpdf-config.h.in |
| 4 | 5297971a0ef90bcd5563eb3f7127a032bb76d3ae2af7258bf13479caf8983a60 m4/ax_cxx_compile_stdcxx.m4 | 4 | 5297971a0ef90bcd5563eb3f7127a032bb76d3ae2af7258bf13479caf8983a60 m4/ax_cxx_compile_stdcxx.m4 |
| 5 | 35bc5c645dc42d47f2daeea06f8f3e767c8a1aee6a35eb2b4854fd2ce66c3413 m4/ax_random_device.m4 | 5 | 35bc5c645dc42d47f2daeea06f8f3e767c8a1aee6a35eb2b4854fd2ce66c3413 m4/ax_random_device.m4 |
| 6 | 37f8897d5f68d7d484e5457832a8f190ddb7507fa2a467cb7ee2be40a4364643 m4/libtool.m4 | 6 | 37f8897d5f68d7d484e5457832a8f190ddb7507fa2a467cb7ee2be40a4364643 m4/libtool.m4 |
configure
| @@ -2254,60 +2254,6 @@ fi | @@ -2254,60 +2254,6 @@ fi | ||
| 2254 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 2254 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2255 | 2255 | ||
| 2256 | } # ac_fn_c_check_header_mongrel | 2256 | } # ac_fn_c_check_header_mongrel |
| 2257 | - | ||
| 2258 | -# ac_fn_c_find_uintX_t LINENO BITS VAR | ||
| 2259 | -# ------------------------------------ | ||
| 2260 | -# Finds an unsigned integer type with width BITS, setting cache variable VAR | ||
| 2261 | -# accordingly. | ||
| 2262 | -ac_fn_c_find_uintX_t () | ||
| 2263 | -{ | ||
| 2264 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
| 2265 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | ||
| 2266 | -$as_echo_n "checking for uint$2_t... " >&6; } | ||
| 2267 | -if eval \${$3+:} false; then : | ||
| 2268 | - $as_echo_n "(cached) " >&6 | ||
| 2269 | -else | ||
| 2270 | - eval "$3=no" | ||
| 2271 | - # Order is important - never check a type that is potentially smaller | ||
| 2272 | - # than half of the expected target width. | ||
| 2273 | - for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | ||
| 2274 | - 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | ||
| 2275 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 2276 | -/* end confdefs.h. */ | ||
| 2277 | -$ac_includes_default | ||
| 2278 | -int | ||
| 2279 | -main () | ||
| 2280 | -{ | ||
| 2281 | -static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | ||
| 2282 | -test_array [0] = 0; | ||
| 2283 | -return test_array [0]; | ||
| 2284 | - | ||
| 2285 | - ; | ||
| 2286 | - return 0; | ||
| 2287 | -} | ||
| 2288 | -_ACEOF | ||
| 2289 | -if ac_fn_c_try_compile "$LINENO"; then : | ||
| 2290 | - case $ac_type in #( | ||
| 2291 | - uint$2_t) : | ||
| 2292 | - eval "$3=yes" ;; #( | ||
| 2293 | - *) : | ||
| 2294 | - eval "$3=\$ac_type" ;; | ||
| 2295 | -esac | ||
| 2296 | -fi | ||
| 2297 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 2298 | - if eval test \"x\$"$3"\" = x"no"; then : | ||
| 2299 | - | ||
| 2300 | -else | ||
| 2301 | - break | ||
| 2302 | -fi | ||
| 2303 | - done | ||
| 2304 | -fi | ||
| 2305 | -eval ac_res=\$$3 | ||
| 2306 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 2307 | -$as_echo "$ac_res" >&6; } | ||
| 2308 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
| 2309 | - | ||
| 2310 | -} # ac_fn_c_find_uintX_t | ||
| 2311 | cat >config.log <<_ACEOF | 2257 | cat >config.log <<_ACEOF |
| 2312 | This file contains any messages produced by compilers while | 2258 | This file contains any messages produced by compilers while |
| 2313 | running configure, to aid debugging if configure makes a mistake. | 2259 | running configure, to aid debugging if configure makes a mistake. |
| @@ -17310,32 +17256,6 @@ _ACEOF | @@ -17310,32 +17256,6 @@ _ACEOF | ||
| 17310 | fi | 17256 | fi |
| 17311 | done | 17257 | done |
| 17312 | 17258 | ||
| 17313 | -ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | ||
| 17314 | -case $ac_cv_c_uint16_t in #( | ||
| 17315 | - no|yes) ;; #( | ||
| 17316 | - *) | ||
| 17317 | - | ||
| 17318 | - | ||
| 17319 | -cat >>confdefs.h <<_ACEOF | ||
| 17320 | -#define uint16_t $ac_cv_c_uint16_t | ||
| 17321 | -_ACEOF | ||
| 17322 | -;; | ||
| 17323 | - esac | ||
| 17324 | - | ||
| 17325 | -ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | ||
| 17326 | -case $ac_cv_c_uint32_t in #( | ||
| 17327 | - no|yes) ;; #( | ||
| 17328 | - *) | ||
| 17329 | - | ||
| 17330 | -$as_echo "#define _UINT32_T 1" >>confdefs.h | ||
| 17331 | - | ||
| 17332 | - | ||
| 17333 | -cat >>confdefs.h <<_ACEOF | ||
| 17334 | -#define uint32_t $ac_cv_c_uint32_t | ||
| 17335 | -_ACEOF | ||
| 17336 | -;; | ||
| 17337 | - esac | ||
| 17338 | - | ||
| 17339 | 17259 | ||
| 17340 | for ac_func in random | 17260 | for ac_func in random |
| 17341 | do : | 17261 | do : |
configure.ac
| @@ -268,8 +268,6 @@ AC_ARG_WITH(large-file-test-path, | @@ -268,8 +268,6 @@ AC_ARG_WITH(large-file-test-path, | ||
| 268 | AC_SYS_LARGEFILE | 268 | AC_SYS_LARGEFILE |
| 269 | AC_FUNC_FSEEKO | 269 | AC_FUNC_FSEEKO |
| 270 | AC_CHECK_FUNCS([fseeko64]) | 270 | AC_CHECK_FUNCS([fseeko64]) |
| 271 | -AC_TYPE_UINT16_T | ||
| 272 | -AC_TYPE_UINT32_T | ||
| 273 | 271 | ||
| 274 | AC_CHECK_FUNCS(random) | 272 | AC_CHECK_FUNCS(random) |
| 275 | 273 |
libqpdf/qpdf/qpdf-config.h.in
| @@ -97,16 +97,3 @@ | @@ -97,16 +97,3 @@ | ||
| 97 | 97 | ||
| 98 | /* Define for large files, on AIX-style hosts. */ | 98 | /* Define for large files, on AIX-style hosts. */ |
| 99 | #undef _LARGE_FILES | 99 | #undef _LARGE_FILES |
| 100 | - | ||
| 101 | -/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, | ||
| 102 | - <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the | ||
| 103 | - #define below would cause a syntax error. */ | ||
| 104 | -#undef _UINT32_T | ||
| 105 | - | ||
| 106 | -/* Define to the type of an unsigned integer type of width exactly 16 bits if | ||
| 107 | - such a type exists and the standard includes do not define it. */ | ||
| 108 | -#undef uint16_t | ||
| 109 | - | ||
| 110 | -/* Define to the type of an unsigned integer type of width exactly 32 bits if | ||
| 111 | - such a type exists and the standard includes do not define it. */ | ||
| 112 | -#undef uint32_t |