view dpp_common.h @ 4:b7d63c5499e7

Remove warnings in dpp
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 25 Dec 2015 16:00:52 +0900
parents b15128ab0324
children a04eccfc69ae
line wrap: on
line source

#ifndef _DPP_COMMON_H_
#define _DPP_COMMON_H_
#define NULL (0)

#include<stdio.h>
#include<stdlib.h>

typedef struct phils {
	int id;
	struct fork *right_fork;
	struct fork *left_fork;
	struct phils *right;
	struct phils *left;
	__code (*next)(struct phils *);
} Phils, *PhilsPtr;

typedef struct fork {
	int id;
	struct phils *owner;
} Fork, *ForkPtr;

#endif