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


Ignore:
Timestamp:
2018-07-05T21:41:21Z (7 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/cinttypes

    r6d8a63a rde53138  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
    5  * Redistribution and use in source and binary forms, with or without
     5 * Redistribution and using in source and binary forms, with or without
    66 * modification, are permitted provided that the following conditions
    77 * are met:
     
    1212 *   notice, this list of conditions and the following disclaimer in the
    1313 *   documentation and/or other materials provided with the distribution.
    14  * - The name of the author may not be used to endorse or promote products
     14 * - The name of the author may not be usingd to endorse or promote products
    1515 *   derived from this software without specific prior written permission.
    1616 *
     
    3232#include "internal/common.hpp"
    3333
     34namespace std::hel
     35{
     36    extern "C" {
     37        #include <inttypes.h>
     38    }
     39}
     40
    3441namespace std
    3542{
    36 
    37 extern "C" {
    38 #include <inttypes.h>
     43    using std::hel::imaxdiv_t;
     44    /* using std::hel::abs; */
     45    /* using std::hel::div; */
     46    /* using std::hel::imaxabs; */
     47    /* using std::hel::imaxdiv; */
     48    /* using std::hel::strtoimax; */
     49    /* using std::hel::strtoumax; */
     50    /* using std::hel::wcstoimax; */
     51    /* using std::hel::wcstoumax; */
    3952}
    4053
    41 }
     54using std::hel::imaxdiv_t;
     55/* using std::hel::abs; */
     56/* using std::hel::div; */
     57/* using std::hel::imaxabs; */
     58/* using std::hel::imaxdiv; */
     59/* using std::hel::strtoimax; */
     60/* using std::hel::strtoumax; */
     61/* using std::hel::wcstoimax; */
     62/* using std::hel::wcstoumax; */
     63
     64#include <cstdint>
    4265
    4366#endif
Note: See TracChangeset for help on using the changeset viewer.