]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/tools/gen_error_codes.pl
8 * Copyright 2016-2018 Andrey Semashev
10 * Distributed under the Boost Software License, Version 1.0.
11 * See http://www.boost.org/LICENSE_1_0.txt
14 #ifndef BOOST_WINAPI_ERROR_CODES_HPP_INCLUDED_
15 #define BOOST_WINAPI_ERROR_CODES_HPP_INCLUDED_
17 #include <boost/winapi/basic_types.hpp>
19 #ifdef BOOST_HAS_PRAGMA_ONCE
33 #endif // BOOST_WINAPI_ERROR_CODES_HPP_INCLUDED_
42 if ($line =~ /^\s*#\s*define\s+([a-zA-Z_\d]+)\s+(0[xX][[:xdigit:]]+|\d+|[a-zA-Z_\d]+)[lLuU]*\s*(\/\
/.*|\/\
*.*)?
$/)
44 # We define some of the constants in other headers
45 if ($1 ne "FORCEINLINE" && $1 ne "WAIT_TIMEOUT")
48 print "BOOST_CONSTEXPR_OR_CONST DWORD_ ", $1 , "_ = ";
49 if ($value =~ /0[xX][[:xdigit:]]+|\d+/)