diff options
| author | Stefan Monnier | 2010-05-04 13:44:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-05-04 13:44:54 -0400 |
| commit | 178f2507dc66c21b3c00fdac98cb985132dff001 (patch) | |
| tree | 950f1571832ca0953b94d9ee65077bda0ee2ff6f /src/eval.c | |
| parent | ae4aa8241f941875848d6e4b66e686cf6da71cfb (diff) | |
| download | emacs-178f2507dc66c21b3c00fdac98cb985132dff001.tar.gz emacs-178f2507dc66c21b3c00fdac98cb985132dff001.zip | |
Misc tweaks.
* eval.c (Fdefvaralias): Remove unintended nested if.
(internal_condition_case_2, internal_condition_case_n): Use ANSI type.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/src/eval.c b/src/eval.c index e1fb815719e..6d0a844a31e 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -770,11 +770,8 @@ The return value is BASE-VARIABLE. */) | |||
| 770 | sym = XSYMBOL (new_alias); | 770 | sym = XSYMBOL (new_alias); |
| 771 | 771 | ||
| 772 | if (sym->constant) | 772 | if (sym->constant) |
| 773 | if (sym->redirect == SYMBOL_VARALIAS) | 773 | /* Not sure why, but why not? */ |
| 774 | sym->constant = 0; /* Reset. */ | 774 | error ("Cannot make a constant an alias"); |
| 775 | else | ||
| 776 | /* Not sure why. */ | ||
| 777 | error ("Cannot make a constant an alias"); | ||
| 778 | 775 | ||
| 779 | switch (sym->redirect) | 776 | switch (sym->redirect) |
| 780 | { | 777 | { |
| @@ -1567,12 +1564,11 @@ internal_condition_case_1 (bfun, arg, handlers, hfun) | |||
| 1567 | its arguments. */ | 1564 | its arguments. */ |
| 1568 | 1565 | ||
| 1569 | Lisp_Object | 1566 | Lisp_Object |
| 1570 | internal_condition_case_2 (bfun, arg1, arg2, handlers, hfun) | 1567 | internal_condition_case_2 (Lisp_Object (*bfun) (Lisp_Object, Lisp_Object), |
| 1571 | Lisp_Object (*bfun) (); | 1568 | Lisp_Object arg1, |
| 1572 | Lisp_Object arg1; | 1569 | Lisp_Object arg2, |
| 1573 | Lisp_Object arg2; | 1570 | Lisp_Object handlers, |
| 1574 | Lisp_Object handlers; | 1571 | Lisp_Object (*hfun) (Lisp_Object)) |
| 1575 | Lisp_Object (*hfun) (); | ||
| 1576 | { | 1572 | { |
| 1577 | Lisp_Object val; | 1573 | Lisp_Object val; |
| 1578 | struct catchtag c; | 1574 | struct catchtag c; |
| @@ -1617,12 +1613,11 @@ internal_condition_case_2 (bfun, arg1, arg2, handlers, hfun) | |||
| 1617 | and ARGS as second argument. */ | 1613 | and ARGS as second argument. */ |
| 1618 | 1614 | ||
| 1619 | Lisp_Object | 1615 | Lisp_Object |
| 1620 | internal_condition_case_n (bfun, nargs, args, handlers, hfun) | 1616 | internal_condition_case_n (Lisp_Object (*bfun) (int, Lisp_Object*), |
| 1621 | Lisp_Object (*bfun) (); | 1617 | int nargs, |
| 1622 | int nargs; | 1618 | Lisp_Object *args, |
| 1623 | Lisp_Object *args; | 1619 | Lisp_Object handlers, |
| 1624 | Lisp_Object handlers; | 1620 | Lisp_Object (*hfun) (Lisp_Object)) |
| 1625 | Lisp_Object (*hfun) (); | ||
| 1626 | { | 1621 | { |
| 1627 | Lisp_Object val; | 1622 | Lisp_Object val; |
| 1628 | struct catchtag c; | 1623 | struct catchtag c; |