diff options
| author | Dmitry Antipov | 2013-12-02 17:35:53 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-12-02 17:35:53 +0400 |
| commit | dacc9715a7aaf3e363cf67d6f8f3edd1c5f0e011 (patch) | |
| tree | a52eccffe0079ea9f605290c8bbd2d85786bed1e /src | |
| parent | 0518b057fe4e50664cb84bfb6d8ef24d81c94431 (diff) | |
| download | emacs-dacc9715a7aaf3e363cf67d6f8f3edd1c5f0e011.tar.gz emacs-dacc9715a7aaf3e363cf67d6f8f3edd1c5f0e011.zip | |
* font.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT):
Define here to unify between...
* nsterm.h, w32term.h, xterm.h: ...port-specific headers.
* w32term.h (CHECK_W32_FRAME): Remove unused macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/font.h | 5 | ||||
| -rw-r--r-- | src/nsterm.h | 5 | ||||
| -rw-r--r-- | src/w32term.h | 15 | ||||
| -rw-r--r-- | src/xterm.h | 5 |
5 files changed, 12 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6eb258ce4d5..e691c91f6b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-12-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * font.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT): | ||
| 4 | Define here to unify between... | ||
| 5 | * nsterm.h, w32term.h, xterm.h: ...port-specific headers. | ||
| 6 | * w32term.h (CHECK_W32_FRAME): Remove unused macro. | ||
| 7 | |||
| 1 | 2013-12-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 8 | 2013-12-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 9 | ||
| 3 | * xterm.h (struct scroll_bar): Remove member `fringe_extended_p'. | 10 | * xterm.h (struct scroll_bar): Remove member `fringe_extended_p'. |
diff --git a/src/font.h b/src/font.h index 2db8d35af48..1f2f9bfbb19 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -234,6 +234,11 @@ enum font_property_index | |||
| 234 | #define FONT_SET_STYLE(font, prop, val) \ | 234 | #define FONT_SET_STYLE(font, prop, val) \ |
| 235 | ASET ((font), prop, make_number (font_style_to_value (prop, val, 1))) | 235 | ASET ((font), prop, make_number (font_style_to_value (prop, val, 1))) |
| 236 | 236 | ||
| 237 | #define FONT_WIDTH(f) ((f)->max_width) | ||
| 238 | #define FONT_HEIGHT(f) ((f)->height) | ||
| 239 | #define FONT_BASE(f) ((f)->ascent) | ||
| 240 | #define FONT_DESCENT(f) ((f)->descent) | ||
| 241 | |||
| 237 | extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript; | 242 | extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript; |
| 238 | extern Lisp_Object QCavgwidth, QCantialias, QCfont_entity; | 243 | extern Lisp_Object QCavgwidth, QCantialias, QCfont_entity; |
| 239 | extern Lisp_Object Qp; | 244 | extern Lisp_Object Qp; |
diff --git a/src/nsterm.h b/src/nsterm.h index 0f22350156e..976347ad3b4 100644 --- a/src/nsterm.h +++ b/src/nsterm.h | |||
| @@ -720,11 +720,6 @@ struct x_output | |||
| 720 | #define FRAME_NS_TITLEBAR_HEIGHT(f) ((f)->output_data.ns->titlebar_height) | 720 | #define FRAME_NS_TITLEBAR_HEIGHT(f) ((f)->output_data.ns->titlebar_height) |
| 721 | #define FRAME_TOOLBAR_HEIGHT(f) ((f)->output_data.ns->toolbar_height) | 721 | #define FRAME_TOOLBAR_HEIGHT(f) ((f)->output_data.ns->toolbar_height) |
| 722 | 722 | ||
| 723 | #define FONT_WIDTH(f) ((f)->max_width) | ||
| 724 | #define FONT_HEIGHT(f) ((f)->height) | ||
| 725 | #define FONT_BASE(f) ((f)->ascent) | ||
| 726 | #define FONT_DESCENT(f) ((f)->descent) | ||
| 727 | |||
| 728 | #define FRAME_DEFAULT_FACE(f) FACE_FROM_ID (f, DEFAULT_FACE_ID) | 723 | #define FRAME_DEFAULT_FACE(f) FACE_FROM_ID (f, DEFAULT_FACE_ID) |
| 729 | 724 | ||
| 730 | #define FRAME_NS_VIEW(f) ((f)->output_data.ns->view) | 725 | #define FRAME_NS_VIEW(f) ((f)->output_data.ns->view) |
diff --git a/src/w32term.h b/src/w32term.h index 779b37e63a8..89008b7348c 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -26,23 +26,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0) | 26 | #define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0) |
| 27 | #define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255) | 27 | #define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255) |
| 28 | 28 | ||
| 29 | #define FONT_WIDTH(f) ((f)->max_width) | ||
| 30 | #define FONT_HEIGHT(f) ((f)->height) | ||
| 31 | #define FONT_BASE(f) ((f)->ascent) | ||
| 32 | #define FONT_DESCENT(f) ((f)->descent) | ||
| 33 | |||
| 34 | #define CP_DEFAULT 1004 | 29 | #define CP_DEFAULT 1004 |
| 35 | 30 | ||
| 36 | #define CHECK_W32_FRAME(f, frame) \ | ||
| 37 | if (NILP (frame)) \ | ||
| 38 | f = SELECTED_FRAME (); \ | ||
| 39 | else \ | ||
| 40 | { \ | ||
| 41 | CHECK_LIVE_FRAME (frame, 0); \ | ||
| 42 | f = XFRAME (frame); \ | ||
| 43 | } \ | ||
| 44 | if (! FRAME_W32_P (f)) | ||
| 45 | |||
| 46 | /* Indicates whether we are in the readsocket call and the message we | 31 | /* Indicates whether we are in the readsocket call and the message we |
| 47 | are processing in the current loop */ | 32 | are processing in the current loop */ |
| 48 | 33 | ||
diff --git a/src/xterm.h b/src/xterm.h index f67b79c3068..2729a771445 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -84,11 +84,6 @@ typedef GtkWidget *xt_or_gtk_widget; | |||
| 84 | #define WHITE_PIX_DEFAULT(f) \ | 84 | #define WHITE_PIX_DEFAULT(f) \ |
| 85 | WhitePixel (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f)) | 85 | WhitePixel (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f)) |
| 86 | 86 | ||
| 87 | #define FONT_WIDTH(f) ((f)->max_width) | ||
| 88 | #define FONT_HEIGHT(f) ((f)->ascent + (f)->descent) | ||
| 89 | #define FONT_BASE(f) ((f)->ascent) | ||
| 90 | #define FONT_DESCENT(f) ((f)->descent) | ||
| 91 | |||
| 92 | /* The mask of events that text windows always want to receive. This | 87 | /* The mask of events that text windows always want to receive. This |
| 93 | includes mouse movement events, since handling the mouse-font text property | 88 | includes mouse movement events, since handling the mouse-font text property |
| 94 | means that we must track mouse motion all the time. */ | 89 | means that we must track mouse motion all the time. */ |