common.h (285974) | common.h (286795) |
---|---|
1/*- 2 * Copyright 1986, Larry Wall 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following condition is met: 6 * 1. Redistributions of source code must retain the above copyright notice, 7 * this condition and the following disclaimer. 8 * --- 10 unchanged lines hidden (view full) --- 19 * SUCH DAMAGE. 20 * 21 * patch - a program to apply diffs to original files 22 * 23 * -C option added in 1998, original code by Marc Espie, based on FreeBSD 24 * behaviour 25 * 26 * $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $ | 1/*- 2 * Copyright 1986, Larry Wall 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following condition is met: 6 * 1. Redistributions of source code must retain the above copyright notice, 7 * this condition and the following disclaimer. 8 * --- 10 unchanged lines hidden (view full) --- 19 * SUCH DAMAGE. 20 * 21 * patch - a program to apply diffs to original files 22 * 23 * -C option added in 1998, original code by Marc Espie, based on FreeBSD 24 * behaviour 25 * 26 * $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $ |
27 * $FreeBSD: head/usr.bin/patch/common.h 285974 2015-07-28 19:58:36Z delphij $ | 27 * $FreeBSD: head/usr.bin/patch/common.h 286795 2015-08-15 00:42:33Z delphij $ |
28 */ 29 30#include <sys/types.h> 31 32#include <stdbool.h> 33#include <stdint.h> 34 35#define DEBUGGING 36 37/* constants */ 38 39#define MAXHUNKSIZE 200000 /* is this enough lines? */ 40#define INITHUNKMAX 125 /* initial dynamic allocation size */ 41#define INITLINELEN 4096 42#define BUFFERSIZE 4096 43#define LINENUM_MAX LONG_MAX 44 | 28 */ 29 30#include <sys/types.h> 31 32#include <stdbool.h> 33#include <stdint.h> 34 35#define DEBUGGING 36 37/* constants */ 38 39#define MAXHUNKSIZE 200000 /* is this enough lines? */ 40#define INITHUNKMAX 125 /* initial dynamic allocation size */ 41#define INITLINELEN 4096 42#define BUFFERSIZE 4096 43#define LINENUM_MAX LONG_MAX 44 |
45#define SCCSPREFIX "s." 46 47#define RCSSUFFIX ",v" 48#define CHECKOUT "/usr/bin/co" 49#define RCSDIFF "/usr/bin/rcsdiff" 50 | |
51#define ORIGEXT ".orig" 52#define REJEXT ".rej" 53 54/* handy definitions */ 55 56#define strNE(s1,s2) (strcmp(s1, s2)) 57#define strEQ(s1,s2) (!strcmp(s1, s2)) 58#define strnNE(s1,s2,l) (strncmp(s1, s2, l)) --- 60 unchanged lines hidden --- | 45#define ORIGEXT ".orig" 46#define REJEXT ".rej" 47 48/* handy definitions */ 49 50#define strNE(s1,s2) (strcmp(s1, s2)) 51#define strEQ(s1,s2) (!strcmp(s1, s2)) 52#define strnNE(s1,s2,l) (strncmp(s1, s2, l)) --- 60 unchanged lines hidden --- |