Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/patch/common.h
/* $OpenBSD: common.h,v 1.29 2015/07/26 14:32:19 millert Exp $ */ | |||||
/*- | /*- | ||||
* Copyright 1986, Larry Wall | * Copyright 1986, Larry Wall | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following condition is met: | * modification, are permitted provided that the following condition is met: | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this condition and the following disclaimer. | * this condition and the following disclaimer. | ||||
* | * | ||||
Show All 9 Lines | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* patch - a program to apply diffs to original files | * patch - a program to apply diffs to original files | ||||
* | * | ||||
* -C option added in 1998, original code by Marc Espie, based on FreeBSD | * -C option added in 1998, original code by Marc Espie, based on FreeBSD | ||||
* behaviour | * behaviour | ||||
* | * | ||||
* $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $ | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <limits.h> | |||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#define DEBUGGING | #define DEBUGGING | ||||
/* constants */ | /* constants */ | ||||
#define MAXHUNKSIZE 200000 /* is this enough lines? */ | #define MAXHUNKSIZE 200000 /* is this enough lines? */ | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |