summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-07-07 18:12:16 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-07-07 18:54:42 -0700
commitb8ead34f5df92b771520f4d090ff6cde49ca5705 (patch)
treedcd9a862148a1814ba6598f635b22d1e35ec82da /lisp/emacs-lisp/regexp-opt.el
parent1628305811247bd652099dad92f6498fc244d8dc (diff)
downloademacs-b8ead34f5df92b771520f4d090ff6cde49ca5705.tar.gz
emacs-b8ead34f5df92b771520f4d090ff6cde49ca5705.tar.bz2
emacs-b8ead34f5df92b771520f4d090ff6cde49ca5705.zip
Fix more ungetc bugs with encoding errors
* src/lread.c (infile): New variable, replacing ... (instream): ... this. All uses changed. (readbyte_from_stdio): New function, which deals with lookahead. (readbyte_from_file, Fget_file_char): Use it. (Fget_file_char): When misused, signal an error instead of relying on undefined behavior. (close_infile_unwind): New function. (Fload): Use it. (readevalloop): 2nd arg is now struct infile *, not FILE *. All callers changed. (read1): Handle lookahead when copying doc strings with encoding errors.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions