From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/map/magic-expr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/magic-expr.cpp') diff --git a/src/map/magic-expr.cpp b/src/map/magic-expr.cpp index 655da1b..7343e50 100644 --- a/src/map/magic-expr.cpp +++ b/src/map/magic-expr.cpp @@ -6,7 +6,7 @@ #include #include "../strings/mstring.hpp" -#include "../strings/fstring.hpp" +#include "../strings/astring.hpp" #include "../strings/zstring.hpp" #include "../strings/vstring.hpp" @@ -93,7 +93,7 @@ void magic_clear_var(val_t *v) } static -FString show_entity(dumb_ptr entity) +AString show_entity(dumb_ptr entity) { switch (entity->bl_type) { @@ -126,7 +126,7 @@ void stringify(val_t *v, int within_op) {"north"}, {"north-east"}, {"east"}, {"south-east"}, }}; - FString buf; + AString buf; switch (v->ty) { @@ -287,7 +287,7 @@ int fun_add(dumb_ptr, val_t *result, const_array args) MString m; m += ARGSTR(0); m += ARGSTR(1); - RESULTSTR = dumb_string::copys(FString(m)); + RESULTSTR = dumb_string::copys(AString(m)); result->ty = TYPE::STRING; } return 0; @@ -1677,7 +1677,7 @@ int magic_eval_int(dumb_ptr env, dumb_ptr expr) return result.v.v_int; } -FString magic_eval_str(dumb_ptr env, dumb_ptr expr) +AString magic_eval_str(dumb_ptr env, dumb_ptr expr) { val_t result; magic_eval(env, &result, expr); -- cgit v1.2.3-70-g09d2