Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!uvaarpa!mcnc!ece-csc!ncrcae!hubcap!johnsun From: johnsun@hubcap.UUCP (John K Sun) Newsgroups: comp.ai.neural-nets Subject: Hopfield Neural Network Simulator (Shelving) Part 3/3 Message-ID: <1313@hubcap.UUCP> Date: 6 Apr 88 01:21:29 GMT Organization: Clemson University, Clemson, SC Lines: 32 Keywords: Hopfield NN, Sun 3 /* static char LocalSid[] = "@(#)local.h 1.2 4/1/88"; */ # ifndef LOCAL_H # define LOCAL_H # define Mod % # define And && # define Or || # define Not ! # define EQUAL == # define UNEQUAL != # define NOT_FOUND (-1) # define ERROR (-1) # define NULL_CHAR ('\0') # define PARMS(x) () /* For non ANSI C */ # define COL_80 81 # define ASCII_TABLE 256 # define FOREVER for(;;) # define End_Of_File 26 # define NEW_PAGE '\014' typedef enum { True = 1, False = 0 } BOOLEAN; typedef enum { lt = -1, eq = 0, gt = 1 } RELATION; # define SWAP(a, b, t) ((t) = (a), (a) = (b), (b) = (t)) #endif