annotate src/getpagesize.h @ 30652:4ed1978642cb

(start_display): WHen starting display on a continuation line, clear ascent and descent members of the iterator structure; the height of the continued line does not affect the height of the continuation line. (make_cursor_line_fully_visible): Do nothing if cursor is on a line taller than the window. (redisplay_window) <forced window start>: Handle case that the middle of the window is not found in any row. (dump_glyph_row): Show more information. (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the first text line in a glyph matrix.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 07 Aug 2000 21:52:14 +0000
parents 4f9e6148ce6a
children c8fb06423da0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
1 /* Emulate getpagesize on systems that lack it. */
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
2
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
3 #ifndef HAVE_GETPAGESIZE
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
4
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
5 # ifdef VMS
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
6 # define getpagesize() 512
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
7 # endif
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
8
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
9 # ifdef HAVE_UNISTD_H
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
10 # include <unistd.h>
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
11 # endif
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
12
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
13 # ifdef _SC_PAGESIZE
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
14 # define getpagesize() sysconf(_SC_PAGESIZE)
16600
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
15 # else /* no _SC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
16 # ifdef HAVE_SYS_PARAM_H
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
17 # include <sys/param.h>
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
18 # ifdef EXEC_PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
19 # define getpagesize() EXEC_PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
20 # else /* no EXEC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
21 # ifdef NBPG
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
22 # define getpagesize() NBPG * CLSIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
23 # ifndef CLSIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
24 # define CLSIZE 1
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
25 # endif /* no CLSIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
26 # else /* no NBPG */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
27 # ifdef NBPC
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
28 # define getpagesize() NBPC
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
29 # else /* no NBPC */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
30 # ifdef PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
31 # define getpagesize() PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
32 # endif /* PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
33 # endif /* no NBPC */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
34 # endif /* no NBPG */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
35 # endif /* no EXEC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
36 # else /* no HAVE_SYS_PARAM_H */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
37 # define getpagesize() 8192 /* punt totally */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
38 # endif /* no HAVE_SYS_PARAM_H */
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
39 # endif /* no _SC_PAGESIZE */
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
40
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
41 #endif /* no HAVE_GETPAGESIZE */