comparison dpp_common.h @ 5:a04eccfc69ae

Remove warnings in dpp2
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 25 Dec 2015 17:15:49 +0900
parents b7d63c5499e7
children 4a68716b7488
comparison
equal deleted inserted replaced
4:b7d63c5499e7 5:a04eccfc69ae
1 #ifndef _DPP_COMMON_H_ 1 #ifndef _DPP_COMMON_H_
2 #define _DPP_COMMON_H_ 2 #define _DPP_COMMON_H_
3 #define NULL (0)
4 3
5 #include<stdio.h> 4 #include<stdio.h>
6 #include<stdlib.h> 5 #include<stdlib.h>
7 6
8 typedef struct phils {
9 int id;
10 struct fork *right_fork;
11 struct fork *left_fork;
12 struct phils *right;
13 struct phils *left;
14 __code (*next)(struct phils *);
15 } Phils, *PhilsPtr;
16
17 typedef struct fork {
18 int id;
19 struct phils *owner;
20 } Fork, *ForkPtr;
21
22 #endif 7 #endif