Changeset 4056ad0 in mainline for uspace/app/bithenge/helenos/os.h


Ignore:
Timestamp:
2012-07-28T01:57:31Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32eb01b
Parents:
03cad47
Message:

Bithenge: basic parameter passing (integer literals only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/helenos/os.h

    r03cad47 r4056ad0  
    3333#include <byteorder.h>
    3434#include <errno.h>
     35#include <inttypes.h>
    3536#include <macros.h>
    3637#include <mem.h>
     
    3839#include <str.h>
    3940#include <str_error.h>
     41
     42typedef int64_t bithenge_int_t;
     43#define BITHENGE_PRId PRId64
    4044
    4145typedef struct {
     
    7680}
    7781
     82static inline int bithenge_parse_int(const char *start, bithenge_int_t *result)
     83{
     84        return str_uint64_t(start, NULL, 10, false, result);
     85}
     86
    7887#endif
Note: See TracChangeset for help on using the changeset viewer.