Mercurial > emacs
comparison src/lread.c @ 46293:1fb8f75062c6
Use macro SPECPDL_INDEX.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 11 Jul 2002 14:18:02 +0000 |
parents | e4f4f706201f |
children | 40db0673e6f0 |
comparison
equal
deleted
inserted
replaced
46292:712d0161e499 | 46293:1fb8f75062c6 |
---|---|
658 Lisp_Object file, noerror, nomessage, nosuffix, must_suffix; | 658 Lisp_Object file, noerror, nomessage, nosuffix, must_suffix; |
659 { | 659 { |
660 register FILE *stream; | 660 register FILE *stream; |
661 register int fd = -1; | 661 register int fd = -1; |
662 register Lisp_Object lispstream; | 662 register Lisp_Object lispstream; |
663 int count = specpdl_ptr - specpdl; | 663 int count = SPECPDL_INDEX (); |
664 Lisp_Object temp; | 664 Lisp_Object temp; |
665 struct gcpro gcpro1; | 665 struct gcpro gcpro1; |
666 Lisp_Object found, efound; | 666 Lisp_Object found, efound; |
667 /* 1 means we printed the ".el is newer" message. */ | 667 /* 1 means we printed the ".el is newer" message. */ |
668 int newer = 0; | 668 int newer = 0; |
1269 int printflag; | 1269 int printflag; |
1270 Lisp_Object unibyte, readfun; | 1270 Lisp_Object unibyte, readfun; |
1271 { | 1271 { |
1272 register int c; | 1272 register int c; |
1273 register Lisp_Object val; | 1273 register Lisp_Object val; |
1274 int count = specpdl_ptr - specpdl; | 1274 int count = SPECPDL_INDEX (); |
1275 struct gcpro gcpro1; | 1275 struct gcpro gcpro1; |
1276 struct buffer *b = 0; | 1276 struct buffer *b = 0; |
1277 int continue_reading_p; | 1277 int continue_reading_p; |
1278 | 1278 |
1279 if (BUFFERP (readcharfun)) | 1279 if (BUFFERP (readcharfun)) |
1311 if (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r') | 1311 if (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r') |
1312 continue; | 1312 continue; |
1313 | 1313 |
1314 if (!NILP (Vpurify_flag) && c == '(') | 1314 if (!NILP (Vpurify_flag) && c == '(') |
1315 { | 1315 { |
1316 int count1 = specpdl_ptr - specpdl; | 1316 int count1 = SPECPDL_INDEX (); |
1317 record_unwind_protect (unreadpure, Qnil); | 1317 record_unwind_protect (unreadpure, Qnil); |
1318 val = read_list (-1, readcharfun); | 1318 val = read_list (-1, readcharfun); |
1319 unbind_to (count1, Qnil); | 1319 unbind_to (count1, Qnil); |
1320 } | 1320 } |
1321 else | 1321 else |
1377 | 1377 |
1378 This function preserves the position of point. */) | 1378 This function preserves the position of point. */) |
1379 (buffer, printflag, filename, unibyte, do_allow_print) | 1379 (buffer, printflag, filename, unibyte, do_allow_print) |
1380 Lisp_Object buffer, printflag, filename, unibyte, do_allow_print; | 1380 Lisp_Object buffer, printflag, filename, unibyte, do_allow_print; |
1381 { | 1381 { |
1382 int count = specpdl_ptr - specpdl; | 1382 int count = SPECPDL_INDEX (); |
1383 Lisp_Object tem, buf; | 1383 Lisp_Object tem, buf; |
1384 | 1384 |
1385 if (NILP (buffer)) | 1385 if (NILP (buffer)) |
1386 buf = Fcurrent_buffer (); | 1386 buf = Fcurrent_buffer (); |
1387 else | 1387 else |
1419 | 1419 |
1420 This function does not move point. */) | 1420 This function does not move point. */) |
1421 (start, end, printflag, read_function) | 1421 (start, end, printflag, read_function) |
1422 Lisp_Object start, end, printflag, read_function; | 1422 Lisp_Object start, end, printflag, read_function; |
1423 { | 1423 { |
1424 int count = specpdl_ptr - specpdl; | 1424 int count = SPECPDL_INDEX (); |
1425 Lisp_Object tem, cbuf; | 1425 Lisp_Object tem, cbuf; |
1426 | 1426 |
1427 cbuf = Fcurrent_buffer (); | 1427 cbuf = Fcurrent_buffer (); |
1428 | 1428 |
1429 if (NILP (printflag)) | 1429 if (NILP (printflag)) |