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


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/ctime

    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 <time.h>
     38    }
     39}
     40
    3441namespace std
    3542{
     43    /* using std::hel::clock_t; */
     44    using std::hel::size_t;
     45    using std::hel::time_t;
     46    using std::hel::tm;
     47    /* using std::hel::timespec; */
    3648
    37 extern "C" {
    38 #include <time.h>
     49    /* using std::hel::clock; */
     50    using std::hel::time;
     51    using std::hel::difftime;
     52
     53    /* using std::hel::ctime; */
     54    /* using std::hel::asctime; */
     55    using std::hel::strftime;
     56    /* using std::hel::wcsftime; */
     57    /* using std::hel::gmtime; */
     58    /* using std::hel::localtime; */
     59    using std::hel::mktime;
    3960}
    4061
    41 }
     62/* using std::hel::clock_t; */
     63using std::hel::size_t;
     64using std::hel::time_t;
     65using std::hel::tm;
     66/* using std::hel::timespec; */
     67
     68/* using std::hel::clock; */
     69using std::hel::time;
     70using std::hel::difftime;
     71
     72/* using std::hel::ctime; */
     73/* using std::hel::asctime; */
     74using std::hel::strftime;
     75/* using std::hel::wcsftime; */
     76/* using std::hel::gmtime; */
     77/* using std::hel::localtime; */
     78using std::hel::mktime;
    4279
    4380#endif
Note: See TracChangeset for help on using the changeset viewer.