~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/X11/Xmu/Misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* $XConsortium: Misc.h,v 1.1 89/05/10 16:00:25 jim Exp $
 
3
*/
 
4
 
 
5
/***********************************************************
 
6
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
 
7
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
 
8
 
 
9
                        All Rights Reserved
 
10
 
 
11
Permission to use, copy, modify, and distribute this software and its 
 
12
documentation for any purpose and without fee is hereby granted, 
 
13
provided that the above copyright notice appear in all copies and that
 
14
both that copyright notice and this permission notice appear in 
 
15
supporting documentation, and that the names of Digital or MIT not be
 
16
used in advertising or publicity pertaining to distribution of the
 
17
software without specific, written prior permission.  
 
18
 
 
19
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 
20
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 
21
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 
22
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
23
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
24
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
25
SOFTWARE.
 
26
 
 
27
******************************************************************/
 
28
 
 
29
/* Various useful constant and macro definitions */
 
30
 
 
31
#ifndef _Xmu_Misc_h
 
32
#define _Xmu_Misc_h
 
33
 
 
34
#define MAXDIMENSION    ((1 << 31)-1)
 
35
 
 
36
#define Max(x, y)       (((x) > (y)) ? (x) : (y))
 
37
#define Min(x, y)       (((x) < (y)) ? (x) : (y))
 
38
#define AssignMax(x, y) {if ((y) > (x)) x = (y);}
 
39
#define AssignMin(x, y) {if ((y) < (x)) x = (y);}
 
40
 
 
41
#endif /*_Xmu_Misc_h*/