meta: rename legacy object module to 'ds'
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include <blue/core/stream.h>
|
||||
#include <blue/object/array.h>
|
||||
#include <blue/object/dict.h>
|
||||
#include <blue/object/number.h>
|
||||
#include <blue/object/string.h>
|
||||
#include <blue/ds/array.h>
|
||||
#include <blue/ds/dict.h>
|
||||
#include <blue/ds/number.h>
|
||||
#include <blue/ds/string.h>
|
||||
#include <blue/serial.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -26,11 +26,11 @@ int main(void)
|
||||
|
||||
b_dict_put(dict, "strings", B_RV(array));
|
||||
|
||||
b_to_string(B_OBJECT(dict), b_stdout);
|
||||
b_to_string(B_DSREF(dict), b_stdout);
|
||||
b_stream_write_char(b_stdout, '\n');
|
||||
|
||||
b_serial_ctx_serialise(
|
||||
ctx, B_SERIAL_FORMAT_JSON, B_OBJECT(dict), b_stdout, 0);
|
||||
ctx, B_SERIAL_FORMAT_JSON, B_DSREF(dict), b_stdout, 0);
|
||||
|
||||
b_dict_release(dict);
|
||||
b_serial_ctx_destroy(ctx);
|
||||
|
||||
Reference in New Issue
Block a user