Skip to content

Commit 67b5889

Browse files
authored
Update API.md, format code (#82)
1 parent 8342380 commit 67b5889

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/API.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
traceReader:
2+
```C
23
typedef struct {
34
int time_field;
45
int obj_id_field;
@@ -122,18 +123,20 @@ int close_reader(reader_t *const reader);
122123
*/
123124
reader_t *clone_reader(const reader_t *const reader);
124125

125-
126+
```
126127
127128
cache and cacheAlgo:
128129
130+
```C
129131
static inline request_t *new_request();
130132
static inline void copy_request(request_t *req_dest, request_t *req_src);
131133
static inline request_t *clone_request(request_t *req);
132134
static inline void free_request(request_t *req);
133135
static inline void print_request(request_t *req);
134-
136+
```
135137

136138
simulator:
139+
```C
137140
sim_res_t *
138141
simulate_at_multi_sizes(reader_t *const reader,
139142
const cache_t *const cache,
@@ -151,7 +154,7 @@ simulate_at_multi_sizes_with_step_size(reader_t *const reader_in,
151154
reader_t *const warmup_reader,
152155
const double warmup_perc,
153156
const gint num_of_threads);
154-
157+
```
155158
156159
157160

0 commit comments

Comments
 (0)