Skip to content

Commit fba3ac2

Browse files
add a useless function
1 parent 87e6289 commit fba3ac2

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

src/std/shared/clock.src

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
assume adl = 1
2+
3+
public _clock
4+
_clock:
5+
ld a,-1
6+
ret

src/std/time.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,28 @@
22
#define _TIME_H
33

44
#include <cdefs.h>
5-
#include <stdint.h>
65

76
#ifndef NULL
87
#define NULL ((void*)0)
98
#endif
109

11-
#ifndef SIZE_T_DEFINED
12-
#define SIZE_T_DEFINED
13-
typedef __SIZE_TYPE__ size_t;
14-
#endif
15-
1610
#ifndef LOCALTIME_GMT_OFFSET
1711
#define LOCALTIME_GMT_OFFSET 0
1812
#endif
1913

14+
#ifndef CLOCKS_PER_SEC
15+
#define CLOCKS_PER_SEC 0
16+
#endif
17+
2018
__BEGIN_DECLS
2119

22-
typedef uint32_t time_t;
23-
typedef uint32_t clock_t;
20+
#ifndef SIZE_T_DEFINED
21+
#define SIZE_T_DEFINED
22+
typedef __SIZE_TYPE__ size_t;
23+
#endif
24+
25+
typedef unsigned long time_t;
26+
typedef char clock_t;
2427

2528
struct tm {
2629
int tm_sec;

0 commit comments

Comments
 (0)