summaryrefslogtreecommitdiff
path: root/src/util.h
blob: 4ae797b913e8c9af33eda15f84c5f4e4ea0e8c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "h-basic.h"

// C linkage required for these functions since main-* code uses them.
#ifdef __cplusplus
extern "C" {
#endif

extern errr path_parse(char *buf, int max, cptr file);
extern errr path_build(char *buf, int max, cptr path, cptr file);
extern void bell(void);
extern errr macro_add(cptr pat, cptr act);
extern sint macro_find_exact(cptr pat);
extern char inkey(void);
extern void prt(cptr str, int row, int col);
extern void pause_line(int row);
extern void user_name(char *buf, int id);

#ifdef __cplusplus
} // extern "C"
#endif