Mercurial > emacs
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 |
rev | line source |
---|---|
4356 | 1 /* Emulate getpagesize on systems that lack it. */ |
2 | |
3 #ifndef HAVE_GETPAGESIZE | |
4 | |
16599 | 5 # ifdef VMS |
6 # define getpagesize() 512 | |
7 # endif | |
4356 | 8 |
16599 | 9 # ifdef HAVE_UNISTD_H |
10 # include <unistd.h> | |
11 # endif | |
4356 | 12 |
16599 | 13 # ifdef _SC_PAGESIZE |
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 | 39 # endif /* no _SC_PAGESIZE */ |
4356 | 40 |
16599 | 41 #endif /* no HAVE_GETPAGESIZE */ |