Rect console_text_rect;
/* This will go away eventually. */
-gdb_has_a_terminal ()
+gdb_has_a_terminal (void)
{
return 1;
}
-mac_init ()
+mac_init (void)
{
SysEnvRec se;
int eventloopdone = 0;
new_console_window ();
}
-new_console_window ()
+new_console_window (void)
{
/* Create the main window we're going to play in. */
if (has_color_qd)
SelectWindow (console_window);
}
-mac_command_loop ()
+mac_command_loop (void)
{
SysEnvRec se;
int eventloopdone = 0;
/* Collect the global coordinates of the mouse pointer. */
-get_global_mouse (mouse)
- Point *mouse;
+get_global_mouse (Point *mouse)
{
EventRecord evt;
/* Change the cursor's appearance to be appropriate for the given mouse
location. */
-adjust_cursor (mouse, region)
- Point mouse;
- RgnHandle region;
+adjust_cursor (Point mouse, RgnHandle region)
{
}
/* Decipher an event, maybe do something with it. */
-do_event (evt)
- EventRecord *evt;
+do_event (EventRecord *evt)
{
short part, err, rslt = 0;
WindowPtr win;
/* Do any idle-time activities. */
-do_idle ()
+do_idle (void)
{
TEIdle (console_text);
}
-grow_window (win, where)
- WindowPtr win;
- Point where;
+grow_window (WindowPtr win, Point where)
{
long winsize;
int h, v;
}
}
-zoom_window (win, where, part)
- WindowPtr win;
- Point where;
- short part;
+zoom_window (WindowPtr win, Point where, short part)
{
ZoomWindow (win, part, (win == FrontWindow ()));
if (win == console_window)
}
}
-resize_console_window ()
+resize_console_window (void)
{
adjust_console_sizes ();
adjust_console_scrollbars ();
InvalRect (&console_window->portRect);
}
-close_window (win)
- WindowPtr win;
+close_window (WindowPtr win)
{
}
}
}
-scroll_text (hlines, vlines)
- int hlines, vlines;
+scroll_text (int hlines, int vlines)
{
}
-activate_window (win, activate)
- WindowPtr win;
- int activate;
+activate_window (WindowPtr win, int activate)
{
Rect grow_rect;
}
}
-update_window (win)
- WindowPtr win;
+update_window (WindowPtr win)
{
int controls = 1, growbox = 0;
GrafPtr oldport;
SetPort (oldport);
}
-adjust_menus ()
+adjust_menus (void)
{
}
-do_menu_command (which)
- long which;
+do_menu_command (long which)
{
short menuid, menuitem;
short itemHit;
char commandbuf[1000];
-do_keyboard_command (key)
- int key;
+do_keyboard_command (int key)
{
int startpos, endpos, i, len;
char *last_newline;
/* Draw all graphical stuff in the console window. */
-draw_console ()
+draw_console (void)
{
SetPort (console_window);
TEUpdate (&(console_window->portRect), console_text);
/* Cause an update of a given window's entire contents. */
-force_update (win)
- WindowPtr win;
+force_update (WindowPtr win)
{
GrafPtr oldport;
SetPort (oldport);
}
-adjust_console_sizes ()
+adjust_console_sizes (void)
{
Rect tmprect;
(*console_text)->viewRect = tmprect;
}
-adjust_console_scrollbars ()
+adjust_console_scrollbars (void)
{
int lines, newmax, value;
/* Scroll the TE record so that it is consistent with the scrollbar(s). */
-adjust_console_text ()
+adjust_console_text (void)
{
TEScroll (((*console_text)->viewRect.left
- (*console_text)->destRect.left)
}
int
-unstifle_history ()
+unstifle_history (void)
{
}