From 6e4057717156adf6dba781d30db3f60a475ea7e4 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:48:57 +0000 Subject: XFree86 4.3.0.1 --- comm.c | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) (limited to 'comm.c') diff --git a/comm.c b/comm.c index 3cd1e71..10494fb 100644 --- a/comm.c +++ b/comm.c @@ -26,6 +26,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/programs/editres/comm.c,v 1.5 2001/12/14 20:00:42 dawes Exp $ */ /* @@ -42,6 +43,7 @@ from The Open Group. #include #include +#include #include "editresP.h" @@ -52,29 +54,23 @@ from The Open Group. static Atom atom_comm, atom_command, atom_resource_editor, atom_client_value; static Atom atom_editres_protocol; -/* - * external function definitions. - */ - -extern void RebuildMenusAndLabel(); -extern ResIdent GetNewIdent(); -extern void SetMessage(), BuildVisualTree(),DisplayChild(); -extern char * GetFormattedSetValuesError(), *HandleFlashWidget(); -extern char * HandleGetResources(), *PrintSetValuesError(); -char * GetFailureMessage(), * ProtocolFailure(); -extern int HandleXErrors(); -extern void SetEntriesSensitive(); - -static void TellUserAboutMessage(), BuildHeader(), FreeEvent(); -static Event * BuildEvent(); -static char * DispatchEvent(); -static void GetClientValue(); -static void ClientTimedOut(), LoseSelection(), SelectionDone(); -static Boolean ConvertCommand(); - - extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; +static void ClientTimedOut ( XtPointer data, XtIntervalId * id ); +static void TellUserAboutMessage ( Widget label, ResCommand command ); +static Boolean ConvertCommand ( Widget w, Atom * selection, Atom * target, + Atom * type_ret, XtPointer *value_ret, + unsigned long * length_ret, int * format_ret ); +static void SelectionDone ( Widget w, Atom *sel, Atom *targ ); +static void LoseSelection ( Widget w, Atom * sel ); +static void GetClientValue ( Widget w, XtPointer data, Atom *selection, + Atom *type, XtPointer value, + unsigned long *length, int * format ); +static void BuildHeader ( CurrentClient * client_data ); +static Event * BuildEvent ( ProtocolStream * stream ); +static void FreeEvent ( Event * event ); +static char * DispatchEvent ( Event * event ); + /* Function Name: ClientTimedOut -- cgit v1.2.3