mruby-bin-debugger: rename prefix 'mrb_debug_' to `mrdb_`.
MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
@@ -198,7 +198,7 @@ mrb_debug_set_break_line(mrb_state *mrb, mrb_debug_context *dbg, const char *fil
}
len = strlen(file) + 1;
- set_file = mrb_debug_strdup(mrb, file);
+ set_file = mrdb_strdup(mrb, file);
index = dbg->bpnum;
dbg->bp[index].bpno = dbg->next_bpno;
@@ -233,13 +233,13 @@ mrb_debug_set_break_method(mrb_state *mrb, mrb_debug_context *dbg, const char *c
}
if (class_name != NULL) {
- set_class = mrb_debug_strdup(mrb, class_name);
+ set_class = mrdb_strdup(mrb, class_name);
}
else {
set_class = NULL;
}
- set_method = mrb_debug_strdup(mrb, method_name);
+ set_method = mrdb_strdup(mrb, method_name);
if (set_method == NULL) {
mrb_free(mrb, set_class);
}

MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -75,7 +75,7 @@ dirname(mrb_state *mrb, const char *path)
p = strrchr(path, '/');
len = p != NULL ? (size_t)(p - path) : strlen(path);
- return mrb_debug_strndup(mrb, path, len);
+ return mrdb_strndup(mrb, path, len);
}
static source_file*
@@ -94,7 +94,7 @@ source_file_new(mrb_state *mrb, mrb_debug_context *dbg, char *filename)
}
file->lineno = 1;
- file->path = mrb_debug_strdup(mrb, filename);
+ file->path = mrdb_strdup(mrb, filename);
if (file->path == NULL) {
source_file_free(mrb, file);
return NULL;

MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/apistring.c
mrbgems/mruby-bin-debugger/tools/mrdb/apistring.c
@@ -14,7 +14,7 @@ mrb_debug_strnlen(const char *s, size_t maxlen)
}
char*
-mrb_debug_strndup(mrb_state *mrb, const char *s, size_t size)
+mrdb_strndup(mrb_state *mrb, const char *s, size_t size)
{
size_t l = mrb_debug_strnlen(s, size);
char *d = mrb_malloc_simple(mrb, l + 1);
@@ -26,7 +26,7 @@ mrb_debug_strndup(mrb_state *mrb, const char *s, size_t size)
}
char*
-mrb_debug_strdup(mrb_state *mrb, const char *s)
+mrdb_strdup(mrb_state *mrb, const char *s)
{
size_t z = strlen(s) + 1;
char *d = mrb_malloc_simple(mrb, z);

MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h
mrbgems/mruby-bin-debugger/tools/mrdb/apistring.h
#include "mruby.h"
/* both functions return a null pointer on failure */
-char *mrb_debug_strndup(mrb_state *mrb, const char *s, size_t size);
-char *mrb_debug_strdup(mrb_state *mrb, const char *s);
+char *mrdb_strndup(mrb_state *mrb, const char *s, size_t size);
+char *mrdb_strdup(mrb_state *mrb, const char *s);
#endif /* APISTRING_H_ */

MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
@@ -233,7 +233,7 @@ parse_filename(mrb_state *mrb, char **sp, listcmd_parser_state *st)
len = strlen(*sp);
}
- if (len > 0 && (st->filename = mrb_debug_strndup(mrb, *sp, len)) != NULL) {
+ if (len > 0 && (st->filename = mrdb_strndup(mrb, *sp, len)) != NULL) {
*sp += len;
return TRUE;
}

mruby-bin-debugger: rename prefix 'mrb_debug_' to `mrdb_`.