mirror of
https://github.com/janet-lang/janet
synced 2025-10-28 06:07:43 +00:00
Make source mapping use byte offset instead of line and col
for better debugging support in repl. Add debug module for better debugging support.
This commit is contained in:
@@ -53,6 +53,42 @@ const char *const janet_type_names[16] = {
|
||||
":abstract"
|
||||
};
|
||||
|
||||
const char *const janet_signal_names[14] = {
|
||||
":ok",
|
||||
":error",
|
||||
":debug",
|
||||
":yield",
|
||||
":user0",
|
||||
":user1",
|
||||
":user2",
|
||||
":user3",
|
||||
":user4",
|
||||
":user5",
|
||||
":user6",
|
||||
":user7",
|
||||
":user8",
|
||||
":user9"
|
||||
};
|
||||
|
||||
const char *const janet_status_names[16] = {
|
||||
":dead",
|
||||
":error",
|
||||
":debug",
|
||||
":pending",
|
||||
":user0",
|
||||
":user1",
|
||||
":user2",
|
||||
":user3",
|
||||
":user4",
|
||||
":user5",
|
||||
":user6",
|
||||
":user7",
|
||||
":user8",
|
||||
":user9",
|
||||
":new",
|
||||
":alive"
|
||||
};
|
||||
|
||||
/* Calculate hash for string */
|
||||
|
||||
int32_t janet_string_calchash(const uint8_t *str, int32_t len) {
|
||||
|
||||
Reference in New Issue
Block a user