From 0d2b7ef3e2a7025ce9901cee14a07fc85466af3b Mon Sep 17 00:00:00 2001 From: adash Date: Thu, 1 Mar 2007 22:04:56 +0000 Subject: [PATCH] Remove unnecessary files --- .../Runtime/DSTM/interface/machinelookup.c | 24 ------------------ .../Runtime/DSTM/interface/machinelookup.h | 25 ------------------- 2 files changed, 49 deletions(-) delete mode 100644 Robust/src/Runtime/DSTM/interface/machinelookup.c delete mode 100644 Robust/src/Runtime/DSTM/interface/machinelookup.h diff --git a/Robust/src/Runtime/DSTM/interface/machinelookup.c b/Robust/src/Runtime/DSTM/interface/machinelookup.c deleted file mode 100644 index f826f208..00000000 --- a/Robust/src/Runtime/DSTM/interface/machinelookup.c +++ /dev/null @@ -1,24 +0,0 @@ - -/**************************************************** -* $File: machinelookup.c -* $Author: adash@uci.edu -* $Revision: 1.1 $Date:02/12/2006 -* $Description: machine/node look up table operations -******************************************************/ - -#include "object.h" -#include "machinelookup.h" - -void* getaddress(int o_id){ -//TODO: 1. lookup for o_id and get address) - -} - -unsigned hash(char *id) { - unsigned hashval; - for(hashval = 0; *id!= 100; id++) - hashval= *id + 31 * hashval; - return hashval % HASHSIZE; -} - - diff --git a/Robust/src/Runtime/DSTM/interface/machinelookup.h b/Robust/src/Runtime/DSTM/interface/machinelookup.h deleted file mode 100644 index ccf32d1c..00000000 --- a/Robust/src/Runtime/DSTM/interface/machinelookup.h +++ /dev/null @@ -1,25 +0,0 @@ -/* This is a header file for Machine look up table */ -/*********************************************************************** -* $File: Machinelookup.h -* $Author: adash -* $Revision: 1.1 $Date:02/12/2006 -* $Description: This has all the definitions of a machine lookup table -************************************************************************/ -#ifndef _machine_lookup_h_ -#define _machine_lookup_h_ - -#define HASHSIZE 101 - -static struct machinelookup *hashtab[HASHSIZE]; -struct machinelookup { //table entry - struct machinelookup *next; // next entry in table - int *o_id; //O_id of the object - void *ptr; //address of the Object -}; -typedef struct machinelookup mlt; - -void * getaddress(int o_id); -unsigned hash(char *id); -//struct machinelookup *lookup( int *); - -#endif -- 2.34.1