diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:12:01 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:12:01 +0100 |
commit | 37ac44add61e4547507770017dcb85b53c20acb5 (patch) | |
tree | 20d678f3d06cf850b39b1c20b1d21f9c8b49a5db /src/util.h | |
parent | 37cea853947851134b2e6f2e338d85ddc5378616 (diff) |
Split util.cc function declarations into separate header files
We need one .h file and one .hpp since some of the functions
are being called from plain C code.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h new file mode 100644 index 00000000..b1d042ee --- /dev/null +++ b/src/util.h @@ -0,0 +1,21 @@ +#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); + +#ifdef __cplusplus +} // extern "C" +#endif |