diff options
| author | Stefan Monnier | 2004-09-13 21:13:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-09-13 21:13:38 +0000 |
| commit | 892a8eb54c84d0db2be864be3b577054074bf7a9 (patch) | |
| tree | 3ac74027451f78692b4e0ba4cdf18d54ecd81453 /src | |
| parent | 126f9c02d40e06a1208c0d044c03d4471abde0b5 (diff) | |
| download | emacs-892a8eb54c84d0db2be864be3b577054074bf7a9.tar.gz emacs-892a8eb54c84d0db2be864be3b577054074bf7a9.zip | |
(BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
(Fbyte_code): Remove dead code after `wrong_type_argument'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/bytecode.c | 35 |
2 files changed, 11 insertions, 27 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f0e8a696e52..7e3d4ee465b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC. | ||
| 4 | (Fbyte_code): Remove dead code after `wrong_type_argument'. | ||
| 5 | |||
| 3 | * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl | 6 | * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl |
| 4 | before doing the mark_stack_check_gcpros since they are not on the stack. | 7 | before doing the mark_stack_check_gcpros since they are not on the stack. |
| 5 | 8 | ||
diff --git a/src/bytecode.c b/src/bytecode.c index 0d3be49877c..e8d006e67d1 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Execution of byte code produced by bytecomp.el. | 1 | /* Execution of byte code produced by bytecomp.el. |
| 2 | Copyright (C) 1985, 1986, 1987, 1988, 1993, 2000, 2001, 2002, 2003 | 2 | Copyright (C) 1985, 1986, 1987, 1988, 1993, 2000, 2001, 2002, 2003, 2004 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -387,6 +387,7 @@ unmark_byte_stack () | |||
| 387 | Vquit_flag = Qnil; \ | 387 | Vquit_flag = Qnil; \ |
| 388 | BEFORE_POTENTIAL_GC (); \ | 388 | BEFORE_POTENTIAL_GC (); \ |
| 389 | Fsignal (Qquit, Qnil); \ | 389 | Fsignal (Qquit, Qnil); \ |
| 390 | AFTER_POTENTIAL_GC (); \ | ||
| 390 | } \ | 391 | } \ |
| 391 | } while (0) | 392 | } while (0) |
| 392 | 393 | ||
| @@ -539,9 +540,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 539 | TOP = Qnil; | 540 | TOP = Qnil; |
| 540 | else | 541 | else |
| 541 | { | 542 | { |
| 542 | BEFORE_POTENTIAL_GC (); | 543 | wrong_type_argument (Qlistp, v1); |
| 543 | Fcar (wrong_type_argument (Qlistp, v1)); | ||
| 544 | AFTER_POTENTIAL_GC (); | ||
| 545 | } | 544 | } |
| 546 | break; | 545 | break; |
| 547 | } | 546 | } |
| @@ -574,9 +573,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 574 | TOP = Qnil; | 573 | TOP = Qnil; |
| 575 | else | 574 | else |
| 576 | { | 575 | { |
| 577 | BEFORE_POTENTIAL_GC (); | 576 | wrong_type_argument (Qlistp, v1); |
| 578 | Fcdr (wrong_type_argument (Qlistp, v1)); | ||
| 579 | AFTER_POTENTIAL_GC (); | ||
| 580 | } | 577 | } |
| 581 | break; | 578 | break; |
| 582 | } | 579 | } |
| @@ -907,11 +904,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 907 | else if (!NILP (v1)) | 904 | else if (!NILP (v1)) |
| 908 | { | 905 | { |
| 909 | immediate_quit = 0; | 906 | immediate_quit = 0; |
| 910 | BEFORE_POTENTIAL_GC (); | 907 | wrong_type_argument (Qlistp, v1); |
| 911 | v1 = wrong_type_argument (Qlistp, v1); | ||
| 912 | AFTER_POTENTIAL_GC (); | ||
| 913 | immediate_quit = 1; | ||
| 914 | op++; | ||
| 915 | } | 908 | } |
| 916 | } | 909 | } |
| 917 | immediate_quit = 0; | 910 | immediate_quit = 0; |
| @@ -920,11 +913,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 920 | else if (NILP (v1)) | 913 | else if (NILP (v1)) |
| 921 | TOP = Qnil; | 914 | TOP = Qnil; |
| 922 | else | 915 | else |
| 923 | { | 916 | wrong_type_argument (Qlistp, v1); |
| 924 | BEFORE_POTENTIAL_GC (); | ||
| 925 | Fcar (wrong_type_argument (Qlistp, v1)); | ||
| 926 | AFTER_POTENTIAL_GC (); | ||
| 927 | } | ||
| 928 | break; | 917 | break; |
| 929 | } | 918 | } |
| 930 | 919 | ||
| @@ -1554,11 +1543,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1554 | else if (!NILP (v1)) | 1543 | else if (!NILP (v1)) |
| 1555 | { | 1544 | { |
| 1556 | immediate_quit = 0; | 1545 | immediate_quit = 0; |
| 1557 | BEFORE_POTENTIAL_GC (); | 1546 | wrong_type_argument (Qlistp, v1); |
| 1558 | v1 = wrong_type_argument (Qlistp, v1); | ||
| 1559 | AFTER_POTENTIAL_GC (); | ||
| 1560 | immediate_quit = 1; | ||
| 1561 | op++; | ||
| 1562 | } | 1547 | } |
| 1563 | } | 1548 | } |
| 1564 | immediate_quit = 0; | 1549 | immediate_quit = 0; |
| @@ -1567,11 +1552,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1567 | else if (NILP (v1)) | 1552 | else if (NILP (v1)) |
| 1568 | TOP = Qnil; | 1553 | TOP = Qnil; |
| 1569 | else | 1554 | else |
| 1570 | { | 1555 | wrong_type_argument (Qlistp, v1); |
| 1571 | BEFORE_POTENTIAL_GC (); | ||
| 1572 | Fcar (wrong_type_argument (Qlistp, v1)); | ||
| 1573 | AFTER_POTENTIAL_GC (); | ||
| 1574 | } | ||
| 1575 | } | 1556 | } |
| 1576 | else | 1557 | else |
| 1577 | { | 1558 | { |