Changeset de53138 in mainline for uspace/lib/cpp/include/cstdint


Ignore:
Timestamp:
2018-07-05T21:41:21Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c71c171
Parents:
6d8a63a
git-author:
Dzejrou <dzejrou@…> (2018-04-20 00:11:54)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: revamped c header wrappers, now only include standard symbols, others are in std::hel, fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/cstdint

    r6d8a63a rde53138  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3232#include "internal/common.hpp"
    3333
     34namespace std::hel
     35{
     36    extern "C" {
     37        #include <stdint.h>
     38    }
     39}
     40
    3441namespace std
    3542{
     43    using int8_t  = std::hel::int8_t;
     44    using int16_t = std::hel::int16_t;
     45    using int32_t = std::hel::int32_t;
     46    using int64_t = std::hel::int64_t;
    3647
    37 extern "C" {
    38 #include <stdint.h>
    39 }
     48    using intmax_t = std::hel::intmax_t;
     49    using intptr_t = std::hel::intptr_t;
    4050
    41 using int_fast8_t  = int8_t;
    42 using int_fast16_t = int16_t;
    43 using int_fast32_t = int32_t;
    44 using int_fast64_t = int64_t;
     51    using int_fast8_t  = std::hel::int8_t;
     52    using int_fast16_t = std::hel::int16_t;
     53    using int_fast32_t = std::hel::int32_t;
     54    using int_fast64_t = std::hel::int64_t;
    4555
    46 using int_least8_t  = int8_t;
    47 using int_least16_t = int16_t;
    48 using int_least32_t = int32_t;
    49 using int_least64_t = int64_t;
     56    using int_least8_t  = std::hel::int8_t;
     57    using int_least16_t = std::hel::int16_t;
     58    using int_least32_t = std::hel::int32_t;
     59    using int_least64_t = std::hel::int64_t;
    5060
    51 using uint_fast8_t  = uint8_t;
    52 using uint_fast16_t = uint16_t;
    53 using uint_fast32_t = uint32_t;
    54 using uint_fast64_t = uint64_t;
     61    using uint8_t  = std::hel::uint8_t;
     62    using uint16_t = std::hel::uint16_t;
     63    using uint32_t = std::hel::uint32_t;
     64    using uint64_t = std::hel::uint64_t;
    5565
    56 using uint_least8_t  = uint8_t;
    57 using uint_least16_t = uint16_t;
    58 using uint_least32_t = uint32_t;
    59 using uint_least64_t = uint64_t;
     66    using uintmax_t = std::hel::uintmax_t;
     67    using uintptr_t = std::hel::uintptr_t;
    6068
     69    using uint_fast8_t  = std::hel::uint8_t;
     70    using uint_fast16_t = std::hel::uint16_t;
     71    using uint_fast32_t = std::hel::uint32_t;
     72    using uint_fast64_t = std::hel::uint64_t;
     73
     74    using uint_least8_t  = std::hel::uint8_t;
     75    using uint_least16_t = std::hel::uint16_t;
     76    using uint_least32_t = std::hel::uint32_t;
     77    using uint_least64_t = std::hel::uint64_t;
    6178}
    6279
Note: See TracChangeset for help on using the changeset viewer.