mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Merge branch 'master' of github.com:janet-lang/janet
This commit is contained in:
commit
8b96289e2f
@ -159,6 +159,8 @@ static Janet os_arch(int32_t argc, Janet *argv) {
|
|||||||
return janet_ckeywordv("arm");
|
return janet_ckeywordv("arm");
|
||||||
#elif (defined(__sparc__))
|
#elif (defined(__sparc__))
|
||||||
return janet_ckeywordv("sparc");
|
return janet_ckeywordv("sparc");
|
||||||
|
#elif (defined(__ppc__))
|
||||||
|
return janet_ckeywordv("ppc");
|
||||||
#else
|
#else
|
||||||
return janet_ckeywordv("unknown");
|
return janet_ckeywordv("unknown");
|
||||||
#endif
|
#endif
|
||||||
|
@ -188,7 +188,7 @@ static void janet_escape_buffer_b(JanetBuffer *buffer, JanetBuffer *bx) {
|
|||||||
void janet_to_string_b(JanetBuffer *buffer, Janet x) {
|
void janet_to_string_b(JanetBuffer *buffer, Janet x) {
|
||||||
switch (janet_type(x)) {
|
switch (janet_type(x)) {
|
||||||
case JANET_NIL:
|
case JANET_NIL:
|
||||||
janet_buffer_push_cstring(buffer, "nil");
|
janet_buffer_push_cstring(buffer, "");
|
||||||
break;
|
break;
|
||||||
case JANET_BOOLEAN:
|
case JANET_BOOLEAN:
|
||||||
janet_buffer_push_cstring(buffer,
|
janet_buffer_push_cstring(buffer,
|
||||||
@ -277,6 +277,9 @@ void janet_description_b(JanetBuffer *buffer, Janet x) {
|
|||||||
switch (janet_type(x)) {
|
switch (janet_type(x)) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
case JANET_NIL:
|
||||||
|
janet_buffer_push_cstring(buffer, "nil");
|
||||||
|
return;
|
||||||
case JANET_KEYWORD:
|
case JANET_KEYWORD:
|
||||||
janet_buffer_push_u8(buffer, ':');
|
janet_buffer_push_u8(buffer, ':');
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user