diff options
| author | Andrea Corallo | 2019-06-11 23:47:16 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:41 +0100 |
| commit | 3ee58c64e57cde232a062cb199688b2686488ef1 (patch) | |
| tree | e6829737b40a9e8a7c3d7d53f0f15d240cfe526a /src/comp.c | |
| parent | 5c406adac75e1b007545991fb7f20068bcaa5b22 (diff) | |
| download | emacs-3ee58c64e57cde232a062cb199688b2686488ef1.tar.gz emacs-3ee58c64e57cde232a062cb199688b2686488ef1.zip | |
add setcar setcdr
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index 1c2a5818be0..aa4bb7fa45c 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -1447,12 +1447,19 @@ compile_f (const char *f_name, ptrdiff_t bytestr_length, | |||
| 1447 | case Bnreverse: | 1447 | case Bnreverse: |
| 1448 | error ("Bnreverse not supported"); | 1448 | error ("Bnreverse not supported"); |
| 1449 | break; | 1449 | break; |
| 1450 | |||
| 1450 | case Bsetcar: | 1451 | case Bsetcar: |
| 1451 | error ("Bsetcar not supported"); | 1452 | POP2; |
| 1453 | res = comp_emit_call ("Fsetcar", comp.lisp_obj_type, 2, args); | ||
| 1454 | PUSH_LVAL (res); | ||
| 1452 | break; | 1455 | break; |
| 1456 | |||
| 1453 | case Bsetcdr: | 1457 | case Bsetcdr: |
| 1454 | error ("Bsetcdr not supported"); | 1458 | POP2; |
| 1459 | res = comp_emit_call ("Fsetcdr", comp.lisp_obj_type, 2, args); | ||
| 1460 | PUSH_LVAL (res); | ||
| 1455 | break; | 1461 | break; |
| 1462 | |||
| 1456 | case Bcar_safe: | 1463 | case Bcar_safe: |
| 1457 | error ("Bcar_safe not supported"); | 1464 | error ("Bcar_safe not supported"); |
| 1458 | break; | 1465 | break; |