aboutsummaryrefslogtreecommitdiffstats
path: root/mac/src/macterm.c
diff options
context:
space:
mode:
authorAndrew Choi2001-02-27 14:33:20 +0000
committerAndrew Choi2001-02-27 14:33:20 +0000
commit2e875e36887608b9e677bf4a3b45acfe6041ff06 (patch)
tree35225137b6f6bffc2dd80e1e1fd61f3976cadb56 /mac/src/macterm.c
parentc0cb1027c5273b57e67a989ba91189e7916d5b32 (diff)
downloademacs-2e875e36887608b9e677bf4a3b45acfe6041ff06.tar.gz
emacs-2e875e36887608b9e677bf4a3b45acfe6041ff06.zip
* src/macfns.c: Rename everything containing *busy_cursor* and
similar to *hourglass*. Change IMAGE_POSITIVE_INTEGER_VALUE to IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR throughout. (x_set_font): If font hasn't changed, avoid recomputing faces and other things, as in xfns.c. (Qcancel_timer): New variable. (syms_of_macfns): Rename x-busy-pointer-shape to x-hourglass-pointer-shape, display-busy-cursor to display-hourglass, busy-cursor-delay to hourglass-delay, as in xfns.c. (x_set_tool_bar_lines): Modify as in xfns.c (x_change_window_heights): New function. * inc/macterm.h (struct x_output): Rename busy_cursor to hourglass_cursor, busy_window to hourglass_window, busy_p to hourglass_p, as in xterm.h. * src/macmenu.c (set_frame_menubar): Run activate-menu-bar-hook with safe_run_hooks, as in xmenu.c. * src/macterm.c (do_check_ram_size): New function. * src/Emacs.r: Add ALRT resource #129 for alert when there is over 256 MB RAM.
Diffstat (limited to 'mac/src/macterm.c')
-rw-r--r--mac/src/macterm.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/mac/src/macterm.c b/mac/src/macterm.c
index 2b7ea0f0a61..a6f979ed7b4 100644
--- a/mac/src/macterm.c
+++ b/mac/src/macterm.c
@@ -540,7 +540,7 @@ XDrawLine (display, w, gc, x1, y1, x2, y2)
540 540
541/* Mac version of XClearArea. */ 541/* Mac version of XClearArea. */
542 542
543static void 543void
544XClearArea (display, w, x, y, width, height, exposures) 544XClearArea (display, w, x, y, width, height, exposures)
545 Display *display; 545 Display *display;
546 WindowPtr w; 546 WindowPtr w;
@@ -11101,6 +11101,7 @@ static long app_sleep_time = WNE_SLEEP_AT_RESUME;
11101 11101
11102#define ARGV_STRING_LIST_ID 129 11102#define ARGV_STRING_LIST_ID 129
11103#define ABOUT_ALERT_ID 128 11103#define ABOUT_ALERT_ID 128
11104#define RAM_TOO_LARGE_ALERT_ID 129
11104 11105
11105Boolean terminate_flag = false; 11106Boolean terminate_flag = false;
11106 11107
@@ -11178,6 +11179,22 @@ do_init_managers (void)
11178 11179
11179 11180
11180static void 11181static void
11182do_check_ram_size (void)
11183{
11184 SInt32 physical_ram_size, logical_ram_size;
11185
11186 if (Gestalt (gestaltPhysicalRAMSize, &physical_ram_size) != noErr
11187 || Gestalt (gestaltLogicalRAMSize, &logical_ram_size) != noErr
11188 || physical_ram_size > 256 * 1024 * 1024
11189 || logical_ram_size > 256 * 1024 * 1024)
11190 {
11191 StopAlert (RAM_TOO_LARGE_ALERT_ID, NULL);
11192 exit (1);
11193 }
11194}
11195
11196
11197static void
11181do_window_update (WindowPtr win) 11198do_window_update (WindowPtr win)
11182{ 11199{
11183 struct mac_output *mwp = (mac_output *) GetWRefCon (win); 11200 struct mac_output *mwp = (mac_output *) GetWRefCon (win);
@@ -11644,6 +11661,8 @@ main (void)
11644 11661
11645 do_get_menus (); 11662 do_get_menus ();
11646 11663
11664 do_check_ram_size ();
11665
11647 init_emacs_passwd_dir (); 11666 init_emacs_passwd_dir ();
11648 11667
11649 init_environ (); 11668 init_environ ();