summaryrefslogtreecommitdiff
path: root/src/io/line.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/line.hpp')
-rw-r--r--src/io/line.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/io/line.hpp b/src/io/line.hpp
index 00f0a11..bdff1bb 100644
--- a/src/io/line.hpp
+++ b/src/io/line.hpp
@@ -21,7 +21,8 @@
# include "../sanity.hpp"
-# include "../strings/fstring.hpp"
+# include "../strings/rstring.hpp"
+# include "../strings/astring.hpp"
# include "../strings/zstring.hpp"
# include "fd.hpp"
@@ -30,15 +31,16 @@
namespace io
{
+ // TODO split this out
struct Line
{
- FString text;
+ RString text;
- FString filename;
+ RString filename;
// 1-based
uint16_t line, column;
- FString message_str(ZString cat, ZString msg);
+ AString message_str(ZString cat, ZString msg);
void message(ZString cat, ZString msg);
void note(ZString msg) { message("note", msg); }
void warning(ZString msg) { message("warning", msg); }
@@ -60,7 +62,7 @@ namespace io
class LineReader
{
protected:
- FString filename;
+ RString filename;
uint16_t line, column;
ReadFile rf;
public:
@@ -77,7 +79,7 @@ namespace io
class LineCharReader : private LineReader
{
- FString line_text;
+ RString line_text;
public:
explicit
LineCharReader(ZString name);