/usr/include/dx/arch.h is in libdx4-dev 1:4.4.4-9+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 | /***********************************************************************/
/* Open Visualization Data Explorer */
/* (C) Copyright IBM Corp. 1989,1999 */
/* ALL RIGHTS RESERVED */
/* This code licensed under the */
/* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */
/***********************************************************************/
/*
* architecture dependent file.
*/
#ifndef _DXI_ARCH_H
#define _DXI_ARCH_H 1
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#if !defined(MIN)
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#if !defined(MAX)
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
#if (HAS_S_ISDIR == 0)
#define S_ISDIR(x) ((x) & (S_IFDIR))
#endif
#if (HAS_M_PI == 0)
#define M_PI 3.1415926535897931160E0 /*Hex 2^ 1 * 1.921FB54442D18 */
#endif
#if (HAS_M_SQRT2 == 0)
#define M_SQRT2 1.4142135623730951455E0 /*Hex 2^ 0 * 1.6A09E667F3BCD */
#endif
#if defined(HAVE_REGCMP) || defined(RE_COMP)
#undef DXD_LACKS_ANY_REGCMP
#else
#define DXD_LACKS_ANY_REGCMP
#endif
#ifdef HAS_SYS_TYPES_H
#include <sys/types.h>
#endif
#define DXD_IS_MP 1
#define DXD_EXEC_WAIT_PROCESS 1
#ifdef HAVE_SYSMP
#define DXD_HAS_SYSMP 1
#endif
#if defined(HAVE__PIPE) && !defined(HAVE_PIPE)
#define pipe(fds) _pipe(fds, 4096, O_BINARY)
#endif
#if defined(HAVE__ISATTY) && !defined(HAVE_ISATTY)
#define isatty _isatty
#endif
#if defined(HAVE__UNLINK) && !defined(HAVE_UNLINK)
#define unlink _unlink
#endif
#if defined(HAVE__POPEN) && !defined(HAVE_POPEN)
#define popen _popen
#endif
#if defined(HAVE__PCLOSE) && !defined(HAVE_PCLOSE)
#define pclose _pclose
#endif
#if defined(HAVE_STRICMP) && !defined(HAVE_STRCASECMP)
#define strcasecmp stricmp
#endif
#if !defined(HAVE_RAND_MAX)
#define RAND_MAX 0x7fffffff
#endif
#if defined(HAVE_RAND) && !defined(HAVE_RANDOM)
#define random rand
#undef RAND_MAX
#define RAND_MAX 0x7fff
#endif
#if defined(HAVE_SRAND) && !defined(HAVE_SRANDOM)
#define srandom srand
#endif
#if defined(HAVE__ALLOCA) && !defined(HAVE_ALLOCA)
#define alloca _alloca
#endif
/* defined if we want to get processor status window */
#define DXD_PROCESSOR_STATUS 1
/* hardware rendering is an option? */
#define DXD_CAN_HAVE_HW_RENDERING 1
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 1
/* supports popen() */
#ifdef HAVE_POPEN
#define DXD_POPEN_OK 1
#endif
/* do the printf-type routines return a pointer or a count? */
#define DXD_PRINTF_RETURNS_COUNT 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#ifndef HAVE_SYS_UN_H
#undef DXD_SOCKET_UNIXDOMAIN_OK
#endif
#define DXD_HAS_GETDTABLESIZE 1
/* can you use rlimit to stop the exec from creating a huge core file? */
#define DXD_HAS_RLIMIT 1
/* is hardware device coordinates orientation right-handed? */
#define DXD_HW_DC_RIGHT_HANDED 1
/* is it sometimes necessary to check if a window has been destroyed? */
#define DXD_HW_WINDOW_DESTRUCTION_CHECK 1
/* is GL texture mapping supported? */
#define DXD_HW_TEXTURE_MAPPING 1
/* is special HW gamma compensation necessary? */
#define DXD_HW_SPECIAL_GAMMA_COMPENSATION 1
/* API (eg. GL) keeps its own copy of the object */
#define DXD_HW_API_DISPLAY_LIST_MEMORY 1
/* supports xwindows status display? */
#define DXD_EXEC_STATUS_DISPLAY 1
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#ifdef HAVE_UNISTD
#define DXD_HAS_UNISTD_H 1
#endif
/* default values for gamma correction */
#define DXD_GAMMA_8BIT 2.0
#define DXD_GAMMA_12BIT 2.0
#define DXD_GAMMA_15BIT 2.0
#define DXD_GAMMA_16BIT 2.0
#define DXD_GAMMA_24BIT 2.0
#define DXD_GAMMA_32BIT 2.0
/* cannot load runtime-loadable modules after forking */
#define DXD_NO_MP_RUNTIME 1
#define F_CHAR_READY(fp) ((fp)->_cnt > 0)
#define IOCTL ioctl
#if !defined(HAVE_STRRSTR)
#if defined(__cplusplus) || defined(c_plusplus)
extern "C"
#endif
char *strrstr(char *, char *);
#endif
#ifdef linux
#undef F_CHAR_READY
#define F_CHAR_READY(fp) ((fp)->_IO_read_ptr < (fp)->_IO_read_end)
#endif
/*
* FreeBSD (and probably NetBSD and OpenBSD)
*/
#if defined(freebsd)
#undef F_CHAR_READY
#define F_CHAR_READY(fp) ((fp)->_r > 0 || (fp)->_ub._base)
#endif
#ifdef cygwin
#ifdef ERROR_DATA_INVALID
#undef ERROR_DATA_INVALID
#endif
#define DXD_SYSERRLIST_DECL 1
#undef F_CHAR_READY
#define F_CHAR_READY(fp) ((fp)->_r > 0 || (fp)->_ub._base)
#endif
/* Macos X - typically on Apple hardware
*/
#ifdef macos
/* #define trunc(value) ((float)((int)(value))) - trunc now defined in OS 10.2 */
/* default values for gamma correction */
#undef DXD_GAMMA_8BIT
#undef DXD_GAMMA_12BIT
#undef DXD_GAMMA_15BIT
#undef DXD_GAMMA_16BIT
#undef DXD_GAMMA_24BIT
#undef DXD_GAMMA_32BIT
#define DXD_GAMMA_8BIT 1.0
#define DXD_GAMMA_12BIT 1.0
#define DXD_GAMMA_15BIT 1.0
#define DXD_GAMMA_16BIT 1.0
#define DXD_GAMMA_24BIT 1.0
#define DXD_GAMMA_32BIT 1.0
#endif /* macos */
/* silicon graphics: indigo, crimson, 280/gtx, onyx, extreme
*/
#ifdef sgi
/* is it sometimes necessary to check if a window has been destroyed? */
#define DXD_HW_WINDOW_DESTRUCTION_CHECK 1
/* is GL texture mapping supported? */
#define DXD_HW_TEXTURE_MAPPING 1
/* is special HW gamma compensation necessary? */
#define DXD_HW_SPECIAL_GAMMA_COMPENSATION 1
/* API (eg. GL) keeps its own copy of the object */
#define DXD_HW_API_DISPLAY_LIST_MEMORY 1
/* default values for gamma correction */
#undef DXD_GAMMA_8BIT
#undef DXD_GAMMA_12BIT
#undef DXD_GAMMA_15BIT
#undef DXD_GAMMA_16BIT
#undef DXD_GAMMA_24BIT
#undef DXD_GAMMA_32BIT
#define DXD_GAMMA_8BIT 1.0
#define DXD_GAMMA_12BIT 1.0
#define DXD_GAMMA_15BIT 1.0
#define DXD_GAMMA_16BIT 1.0
#define DXD_GAMMA_24BIT 2.0
#define DXD_GAMMA_32BIT 2.0
#endif /* sgi */
/* hp/700-800 series
*/
#ifdef hp700
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
#define DXD_PRINTF_RETURNS_COUNT 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#define DXD_HAS_GETHOSTBYNAME 1
/* compensate for bug in hardware window reparenting */
#define DXD_HW_REPARENT_OFFSET_X -2
#define DXD_HW_REPARENT_OFFSET_Y -3
/* Does this hardware support alpha transparency per connection? position?*/
#define DXD_HW_ALPHA_CNTNS 1
#define DXD_HW_ALPHA_POSNS 0
/* Does the X server behave correctly for a move of a Starbase window */
#define DXD_HW_XSERVER_MOVE_OK 1
/* select expects int pointers for params */
#define DXD_SELECTPTR_DEFINED 1
/* can use the crypt system call for data encryption */
#define DXD_HAS_CRYPT 1
/* system includes are in /usr/include/sys and /usr/include/unistd.h exists */
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#define DXD_HAS_UNISTD_H 1
/* system includes support for the vfork() system call */
#define DXD_HAS_VFORK 1
#endif /* hp700 */
/* ibm risc system/6000
*/
#ifdef ibm6000
#include <sys/types.h>
/* license manager active in this version */
#undef DXD_LICENSED_VERSION
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 1
/* hardware rendering is an option? */
#define DXD_CAN_HAVE_HW_RENDERING 1
/* defined if we support multiprocessor version */
#define DXD_IS_MP 1
/* do we need to keep a parent wait-process around? */
#define DXD_EXEC_WAIT_PROCESS 1
/* does this system support _system_configuration.ncpus */
#define DXD_HAS_SYSCONFIG 1
/* supports popen() */
#define DXD_POPEN_OK 1
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
/* do the printf-type routines return a pointer or a count? */
#define DXD_PRINTF_RETURNS_COUNT 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#define DXD_NEEDS_SYS_SELECT_H 1
#define DXD_HAS_GETDTABLESIZE 1
#define DXD_HAS_GETHOSTBYNAME 1
/* is the SigDanger signal defined? (indicates running low on page space) */
#define DXD_HAS_SIGDANGER 1
/* can you use rlimit to stop the exec from creating a huge core file? */
#define DXD_HAS_RLIMIT 1
/* is hardware device coordinates orientation right-handed? */
#define DXD_HW_DC_RIGHT_HANDED 1
/* Does the X server behave correctly for a move of a GL window */
#define DXD_HW_XSERVER_MOVE_OK 1
/* has nonstandard include file and ifdefs for the access() system call? */
#define DXD_SPECIAL_ACCESS 1
/* can use the crypt system call for data encryption */
#define DXD_HAS_CRYPT 1
/* system includes are in /usr/include/sys and /usr/include/unistd.h exists */
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#define DXD_HAS_UNISTD_H 1
#endif /* ibm6000 */
/* sun sparc II
*/
#ifdef sun4
#include <sys/types.h>
/* license manager active in this version */
#undef DXD_LICENSED_VERSION
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 1
/* hardware rendering is an option? */
#define DXD_CAN_HAVE_HW_RENDERING 1
/* supports popen() */
#define DXD_POPEN_OK 1
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#define DXD_HAS_GETDTABLESIZE 1
#define DXD_HAS_GETHOSTBYNAME 1
/* can you use rlimit to stop the exec from creating a huge core file? */
#define DXD_HAS_RLIMIT 1
/* is hardware sensitive to vertex orientation of 1st triangle in strip? */
#define DXD_HW_TMESH_ORIENT_SENSITIVE 1
/* Does the X server behave correctly for a move of a XGL window */
#define DXD_HW_XSERVER_MOVE_OK 1
/* can use the crypt system call for data encryption */
#define DXD_HAS_CRYPT 1
/* system includes are in /usr/include/sys and /usr/include/unistd.h exists */
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#define DXD_HAS_UNISTD_H 1
/* system includes support for the vfork() system call */
#define DXD_HAS_VFORK 1
#endif /* sun4 */
/* sun sparc solaris
*/
#ifdef solaris
#include <sys/types.h>
/* license manager active in this version */
#undef DXD_LICENSED_VERSION
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 1
/* defined if we support multiprocessor version */
#define DXD_IS_MP 1
/* do we need to keep a parent wait-process around? */
#define DXD_EXEC_WAIT_PROCESS 1
/* does this system support sysconf(3)? */
#define DXD_HAS_SYSCONF 1
/* hardware rendering is an option? */
#define DXD_CAN_HAVE_HW_RENDERING 1
/* supports popen() */
#define DXD_POPEN_OK 1
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#define DXD_HAS_GETHOSTBYNAME 1
#define MAXFUPLIM FD_SETSIZE
/* can you use rlimit to stop the exec from creating a huge core file? */
#define DXD_HAS_RLIMIT 1
/* is hardware sensitive to vertex orientation of 1st triangle in strip? */
#define DXD_HW_TMESH_ORIENT_SENSITIVE 1
/* can use the crypt system call for data encryption */
#define DXD_HAS_CRYPT 1
/* the system routine herror() doesn't exist on this architecture */
#define herror perror
/* wait(int *) for solaris */
union wait{
int status;
};
/* bcopy,bcmp,bzero these are in /usr/ucb/libucb.a on solaris
* this is the BSD compatibilty section and may not be there in future */
#if !defined(HAVE_STRINGS_H)
#define bcopy(s,d,n) memcpy((void *)(d),(void *)(s),(int)(n))
#define bzero(s,n) memset((void *)(s),0,(int)(n))
#define bcmp(s1,s2,n) memcmp((void *)(s1),(void *)(s2),(int)(n))
#endif
/* Use sun mutex type locks unless we are using Purify which gets upset
* about the threads library
*/
#ifdef __PURIFY__
# define DXD_USE_MUTEX_LOCKS 0
#else
# define DXD_USE_MUTEX_LOCKS 1
#endif
/* system includes are in /usr/include/sys and /usr/include/unistd.h exists */
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#define DXD_HAS_UNISTD_H 1
/* cannot load runtime-loadable modules after forking */
#define DXD_NO_MP_RUNTIME 1
/* system includes support for the vfork() system call */
#define DXD_HAS_VFORK 1
#endif /* solaris */
/* data general AViiON
*/
#ifdef aviion
#include <sys/types.h>
/* license manager active in this version */
#undef DXD_LICENSED_VERSION
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 1
/* supports popen() */
#define DXD_POPEN_OK 1
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
/* do the printf-type routines return a pointer or a count? */
#define DXD_PRINTF_RETURNS_COUNT 1
/* socket-specific ifdefs */
#define DXD_SOCKET_UNIXDOMAIN_OK 1
#define DXD_HAS_GETDTABLESIZE 1
#define DXD_HAS_GETHOSTBYNAME 1
/* can you use rlimit to stop the exec from creating a huge core file? */
#define DXD_HAS_RLIMIT 1
/* can use the crypt system call for data encryption */
#define DXD_HAS_CRYPT 1
/* the system routine herror() doesn't exist on this architecture */
#define herror perror
/* system includes are in /usr/include/sys and /usr/include/unistd.h exists */
#define DXD_HAS_UNIX_SYS_INCLUDES 1
#define DXD_HAS_UNISTD_H 1
/* system includes support for the vfork() system call */
#define DXD_HAS_VFORK 1
#endif /* aviion */
#if defined(intelnt) || defined(WIN32)
#ifdef snprintf
#undef snprintf
#endif
#define snprintf _snprintf
#ifdef vsnprintf
#undef vsnprintf
#endif
#define vsnprintf _vsnprintf
#if defined(alloca)
#undef alloca
#endif
#define alloca _alloca
#undef DXD_PROCESSOR_STATUS
#undef IOCTL
#define IOCTL(fd,cmd,buf) \
ioctlsocket(fd,cmd,(u_long *)buf)
#if defined(DXD_EXEC_WAIT_PROCESS)
#undef DXD_EXEC_WAIT_PROCESS
#endif
#define DXD_EXEC_WAIT_PROCESS 0
#define DXD_SYSERRLIST_DECL 1
#define DXD_PRINTF_RETURNS_COUNT 1
#define DXD_SOCKET_WINSOCKETS_OK 1
/* We have to assume that DXD_WIN is for NT on Intel
Machines, else we have to change all occurances
*/
#include <sys/types.h>
#define DXD_WIN
#define DXD_POPEN_OK 1
#if !defined(HAVE_ISNAN)
#define isnan _isnan
#define HAVE_ISNAN 1
#endif
#if !defined(HAVE_FINITE)
#define finite _finite
#define HAVE_FINITE 1
#endif
/* supports popen() */
#define DXD_OS_NON_UNIX 1
#define DXD_HAS_WINSOCKETS 1
#define MAXHOSTNAMELEN 128
#define MAXPATHLEN 255
#define DXD_SOCKET_WINSOCKETS_OK 1
#define socklen_t int
/* to port directories on PC enviroments */
#define DXD_NON_UNIX_DIR_SEPARATOR 1
#define DXD_NON_UNIX_ENV_SEPARATOR 1
/* #define _WINERROR_ 1 */
/* #define _DLGSH_INCLUDED_ 1 */
#include <errno.h>
/* do you need to declare the system error list explicitly? */
#define DXD_SYSERRLIST_DECL 1
/* do the printf-type routines return a pointer or a count? */
#define DXD_PRINTF_RETURNS_COUNT 1
#define DXD_SELECTPTR_DEFINED 1
#define DXD_HAS_GETDTABLESIZE 1
/* #define DXD_NEEDS_SYS_SELECT_H 1 */
/* defining DXD_STANDARD_IEEE will solve some of the setjump/longjump problmes
in _compoper.c */
#define DXD_STANDARD_IEEE 1
#define DXD_LACKS_UNIX_UID 1
#include <string.h>
#include <stdio.h>
/* fix ioctl and socket prototypes, use send/recv for read and write */
#define BSD_SELECT 1
#include <sys/types.h>
/* #include <sys/select.h> : In windows.h */
#undef LONG
#undef SHORT
#undef CHAR
/* stolen from /usr/include/math.h */
/* these exist in the C++ include file complex.h */
#define herror WSAGetLastError()
/*
* file descriptor io functions for non unix (nu) platforms
*/
/* Declarations files, required in OS2, NT */
#include <io.h>
#include <process.h>
#include <direct.h>
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
int gettablesize(void);
int getopt(int,char**,char*);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#if defined(cygwin)
#include <sys/types.h>
#define fopen(file,mode) _dxf_nu_fopen(file,mode"O_BINARY")
#define open(path,oflag) _open(path,oflag|O_BINARY&(~O_CREAT),0,mode"O_BINARY")
#define creat(path,mode) _open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, mode"O_BINARY")
#endif
#if 0
#define fork DXWinFork
#endif
#define bcopy(s,d,n) memcpy((void *)(d),(void *)(s),(int)(n))
#define bzero(s,n) memset((void *)(s),0,(int)(n))
#define bcmp(s1,s2,n) memcmp((void *)(s1),(void *)(s2),(int)(n))
#define wait(status) cwait(status, status, 0)
#define trunc(value) ((double)((int)(value)))
#define rint(value) ((float)((int)((value) + 0.5)))
#endif /* intelnt */
/* Dec Alpha AXP OSF/1
*/
#ifdef alphax
/* supports full IEEE standard floating point, including under/overflow */
#define DXD_STANDARD_IEEE 0
/* license manager active in this version */
#undef DXD_LICENSED_VERSION
/* supports popen() */
#define DXD_POPEN_OK 1
/* compiler apparently doesn't parse \a as alert */
#define DXD_NO_ANSI_ALERT 1
#define DXD_FIXEDSIZES 1
#endif /* alphax */
/* if standard IEEE floating point, these are the constants. the
* pvs is slightly different in that it can't handle underflow
* or overflow floats without hardware traps.
*/
/* defined in one place for all supported architectures */
#define DXD_MAX_BYTE 127
#define DXD_MIN_BYTE -128
#define DXD_MAX_UBYTE 255
#define DXD_MAX_SHORT 32767
#define DXD_MIN_SHORT -32768
#define DXD_MAX_USHORT 65535
#define DXD_MAX_INT 2147483647
#define DXD_MIN_INT -2147483648
#define DXD_MAX_UINT 4294967295U
/* same whether denormalized numbers are supported nor not */
#define DXD_MAX_FLOAT ((float)3.40282346638528860e+38)
#define DXD_FLOAT_EPSILON ((float)1.1920928955078125e-7)
#define DXD_MAX_DOUBLE 1.7976931348623157e+308
#define DXD_DOUBLE_EPSILON 2.2204460492503131e-16
#if DXD_STANDARD_IEEE
#define DXD_MIN_FLOAT ((float)1.40129846432481707e-45)
#define DXD_MIN_DOUBLE 4.94065645841246544e-324
#else /* denormalized numbers cause traps on i860 */
#define DXD_MIN_FLOAT ((float)1.1754943508222875e-38)
#define DXD_MIN_DOUBLE 2.2250738585072014e-308
#endif
#ifndef DXD_HW_REPARENT_OFFSET_X
#define DXD_HW_REPARENT_OFFSET_X 0
#endif
#ifndef DXD_HW_REPARENT_OFFSET_Y
#define DXD_HW_REPARENT_OFFSET_Y 0
#endif
#ifndef DXD_HW_XSERVER_MOVE_OK
#define DXD_HW_XSERVER_MOVE_OK 0
#endif
/* fixed type sizes */
#ifndef DXD_FIXEDSIZES
#define DXD_FIXEDSIZES 1
#endif
#define CHAR_READY(fp) F_CHAR_READY(fp)
#ifdef GETC
#undef GETC
#endif
#define GETC(file) getc(file)
#endif /* whole file _DXI_ARCH_H */
|