6 char Version
[] = "1.1";
9 typedef enum {Ident1
, Ident2
, Ident3
, Ident4
, Ident5
} Enumeration
;
11 typedef int OneToThirty
;
12 typedef int OneToFifty
;
13 typedef char CapitalLetter
;
14 typedef char String30
[31];
15 typedef int Array1Dim
[51];
16 typedef int Array2Dim
[51][51];
20 struct Record
*PtrComp
;
27 typedef struct Record RecordType
;
28 typedef RecordType
* RecordPtr
;
39 extern Enumeration
Func1();
40 extern boolean
Func2();
43 #include <sys/types.h>
44 #include <sys/times.h>
69 register unsigned int i
;
73 strcpy(String1Loc
, "DHRYSTONE PROGRAM, 1'ST STRING");
74 for (i
= 0; i
< LOOPS
; ++i
)
76 printf("%s", "looping");
77 BoolGlob
= ! Func2(String1Loc
, String2Loc
);
83 boolean
Func2(StrParI1
, StrParI2
)
87 REG OneToThirty IntLoc
;
88 REG CapitalLetter CharLoc
;
93 if (Func1(StrParI1
[IntLoc
], StrParI2
[IntLoc
+1]) == Ident1
)
101 if (strcmp(StrParI1
, StrParI2
) > 0)
112 extern boolean
Func3();
114 Proc6(EnumParIn
, EnumParOut
)
115 REG Enumeration EnumParIn
;
116 REG Enumeration
*EnumParOut
;
118 *EnumParOut
= EnumParIn
;
121 case Ident1
: *EnumParOut
= Ident1
; break;
122 case Ident2
: if (IntGlob
> 100) *EnumParOut
= Ident1
;
123 case Ident3
: *EnumParOut
= Ident2
; break;
125 case Ident5
: *EnumParOut
= Ident3
;
129 boolean
Func3(EnumParIn
)
130 REG Enumeration EnumParIn
;
132 REG Enumeration EnumLoc
;
138 Enumeration
Func1(CharPar1
, CharPar2
)
139 CapitalLetter CharPar1
;
140 CapitalLetter CharPar2
;