home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
x
/
x11p-13.zip
/
RCS
/
do_simple.c,v
< prev
next >
Wrap
Text File
|
1989-12-14
|
4KB
|
238 lines
head 2.3;
access ;
symbols pre-merge:2.0;
locks ; strict;
comment @ * @;
2.3
date 89.12.07.16.35.27; author joel; state Exp;
branches ;
next 2.2;
2.2
date 89.05.11.16.44.48; author joel; state Exp;
branches ;
next 2.1;
2.1
date 89.05.03.14.18.01; author joel; state Exp;
branches ;
next 2.0;
2.0
date 88.06.10.13.35.07; author erik; state Exp;
branches ;
next 1.1;
1.1
date 88.06.10.13.35.07; author joel; state Exp;
branches ;
next ;
desc
@@
2.3
log
@Changed interface to p->reps
@
text
@/*****************************************************************************
Copyright 1988, 1989 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************************/
#ifndef VMS
#include <X11/Xatom.h>
#else
#include <decw$include/Xatom.h>
#endif
#include "x11perf.h"
static Atom XA_PK_TEMP;
static Window root;
void DoNoOp(xp, p, reps)
XParms xp;
Parms p;
int reps;
{
int i;
for (i = 0; i != reps; i++) {
XNoOp(xp->d);
}
}
void DoGetAtom(xp, p, reps)
XParms xp;
Parms p;
int reps;
{
char *atom;
int i;
for (i = 0; i != reps; i++) {
atom = XGetAtomName (xp->d, 1);
}
}
int InitGetProperty(xp, p, reps)
XParms xp;
Parms p;
int reps;
{
int foo = 41;
root = RootWindow (xp->d, 0);
XA_PK_TEMP = XInternAtom (xp->d, "_PK_TEMP", False);
XChangeProperty (
xp->d, root, XA_PK_TEMP, XA_INTEGER, 32,
PropModeReplace, &foo, sizeof (int));
return reps;
}
void DoGetProperty(xp, p, reps)
XParms xp;
Parms p;
int reps;
{
char *atom;
int i, status;
int prop, actual_format, actual_length, bytes_remaining;
Atom actual_type;
for (i = 0; i != reps; i++) {
status = XGetWindowProperty (
xp->d, root, XA_PK_TEMP, 0, sizeof (int),
False, AnyPropertyType, &actual_type, &actual_format,
&actual_length, &bytes_remaining, &prop);
}
}
@
2.2
log
@Parameters to all routines now (xp, p)
MAXROWS used in all routines
Junked most global communication variables
@
text
@d35 1
a35 1
void DoNoOp(xp, p)
d38 1
d42 1
a42 1
for (i = 0; i != p->reps; i++) {
d48 1
a48 1
void DoAtom(xp, p)
d51 1
d56 1
a56 1
for (i = 0; i != p->reps; i++) {
d61 1
a61 1
Bool InitGetProp(xp, p)
d64 1
d73 1
a73 1
return True;
d76 1
a76 1
void DoGetProp(xp, p)
d79 1
d86 1
a86 1
for (i = 0; i != p->reps; i++) {
@
2.1
log
@Massive changes, I'm not going to go into details.
@
text
@d1 23
d33 1
d35 3
a37 3
void DoAtom(d, p)
Display *d;
Parms p;
a38 1
char *atom;
d41 2
a42 2
for (i = 0; i < p->reps; i++) {
atom = XGetAtomName (d, 1);
d46 4
a49 3
Bool InitGetProp(d, p)
Display *d;
Parms p;
d51 12
d65 2
a66 1
XA_PK_TEMP = XInternAtom (d, "_PK_TEMP", False);
d68 1
a68 1
d, root, XA_PK_TEMP, XA_INTEGER, 32,
d73 3
a75 3
void DoGetProp(d, p)
Display *d;
Parms p;
d82 1
a82 1
for (i = 0; i < p->reps; i++) {
d84 1
a84 1
d, root, XA_PK_TEMP, 0, sizeof (int),
@
2.0
log
@version from /usr/src/pmax
@
text
@d23 1
a23 1
void InitGetProp(d, p)
d33 1
@
1.1
log
@Initial revision
@
text
@@