Skip to content
Snippets Groups Projects
Commit 4dce79f7 authored by Waldemar Celes's avatar Waldemar Celes
Browse files

uses 'limits.h' for MAX_WORD and MAX_INT

parent a8220fee
No related branches found
No related tags found
No related merge requests found
/*
** TeCGraf - PUC-Rio
** $Id: $
** $Id: types.h,v 1.1 1994/12/20 21:31:01 roberto Exp celes $
*/
#ifndef types_h
#define types_h
#include <limits.h>
#ifndef real
#define real float
#endif
......@@ -16,7 +18,8 @@ typedef unsigned char Byte; /* unsigned 8 bits */
typedef unsigned short Word; /* unsigned 16 bits */
#define MAX_WORD 0xFFFD /* maximum value of a word (FFFF-2 for safety) */
#define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */
#define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */
typedef signed long Long; /* 32 bits */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment