/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1989-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Phong Vo <[email protected]> *17* *18***********************************************************************/19#pragma prototyped20#ifndef _UPDATE_H21#define _UPDATE_H2223#include <ast.h>2425/* values for the instruction field */26#define DELTA_TYPE 030027#define DELTA_MOVE 020028#define DELTA_ADD 01002930/* number of bytes required to code a value */31#define BASE 25632#define ONE (BASE)33#define TWO (BASE*BASE)34#define THREE (BASE*BASE*BASE)35#define NBYTE(v) ((v) < ONE ? 1 : ((v) < TWO ? 2 : ((v) < THREE ? 3 : 4)))3637#define BUFSIZE 20483839#ifndef NULL40#define NULL (0L)41#endif4243extern int delta(char*, long, char*, long, int);44extern long mtchstring(char*, long, char*, long, char**);45extern int update(int, long, int, int);4647#endif484950