diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:47 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:47 +0000 |
commit | ef6bf0e77229ee34d91221ee4c5e5695ee083ed8 (patch) | |
tree | cd68ec2972de315b910ef8fd12c777e52a41ff82 /editres.c | |
parent | efce7cb078dd34e9e9f7d6f5f5cdd0c8ef267691 (diff) |
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'editres.c')
-rw-r--r-- | editres.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -23,8 +23,10 @@ Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/programs/editres/editres.c,v 1.7 2001/12/14 20:00:42 dawes Exp $ */ #include <stdio.h> +#include <stdlib.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Xaw/Cardinals.h> @@ -49,7 +51,7 @@ char *global_effective_toolkit = "xt"; int global_error_code; unsigned long global_serial_num; -int (*global_old_error_handler)(); +int (*global_old_error_handler)(Display *, XErrorEvent *); Boolean global_resource_box_up = FALSE; TreeInfo *global_tree_info = NULL; @@ -60,14 +62,8 @@ Widget global_paned = NULL; /* named after toolkit */ Widget global_toplevel; AppResources global_resources; -/* - * external function definitions. - */ - -extern void InternAtoms(), SetMessage(), BuildWidgetTree(); -extern void SetApplicationActions(); -static void Syntax(); +static void Syntax ( XtAppContext app_con, char *call ); String fallback_resources[] = { NULL, @@ -90,7 +86,7 @@ static XtResource editres_resources[] = { Atom wm_delete_window; -void +int main(argc, argv) int argc; char **argv; @@ -133,6 +129,7 @@ char **argv; XtWindow(global_toplevel), &wm_delete_window, 1); XtAppMainLoop(app_con); + exit(0); } /* Function Name: Syntax |