diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-31 09:13:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-31 09:15:49 -0700 |
commit | 222b5970c42c2b85df67042c0c5db198859b478a (patch) | |
tree | f75630f988959b58f3b863dbc2b25d5173641dfa /src/dispnew.c | |
parent | ab871981125393d89202932284eda6e507bfc6fd (diff) | |
download | emacs-222b5970c42c2b85df67042c0c5db198859b478a.tar.gz |
Rename Emacs-specific INFINITY constants
Although these constants were not erroneous, as they were
used only in modules that did not include <math.h>, it's
less confusing to names that cannot be confused with
the now-standard INFINITY macro.
* src/dispextern.h (SCROLL_INFINITY): New constant.
* src/dispnew.c, src/scroll.c (INFINITY):
Remove. All uses replaced with SCROLL_INFINITY.
* src/process.c (wait_reading_process_output):
Rename private constant.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 61ca717079b..bd246799b23 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -4677,8 +4677,7 @@ scrolling (struct frame *frame) { /* This line cannot be redrawn, so don't let scrolling mess it. */ new_hash[i] = old_hash[i]; -#define INFINITY 1000000 /* Taken from scroll.c */ - draw_cost[i] = INFINITY; + draw_cost[i] = SCROLL_INFINITY; } else { |