Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/bind9/isc
File: region.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef ISC_REGION_H
[12] Fix | Delete
#define ISC_REGION_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file isc/region.h */
[15] Fix | Delete
[16] Fix | Delete
#include <isc/types.h>
[17] Fix | Delete
#include <isc/lang.h>
[18] Fix | Delete
[19] Fix | Delete
struct isc_region {
[20] Fix | Delete
unsigned char * base;
[21] Fix | Delete
unsigned int length;
[22] Fix | Delete
};
[23] Fix | Delete
[24] Fix | Delete
struct isc_textregion {
[25] Fix | Delete
char * base;
[26] Fix | Delete
unsigned int length;
[27] Fix | Delete
};
[28] Fix | Delete
[29] Fix | Delete
/* XXXDCL questionable ... bears discussion. we have been putting off
[30] Fix | Delete
* discussing the region api.
[31] Fix | Delete
*/
[32] Fix | Delete
struct isc_constregion {
[33] Fix | Delete
const void * base;
[34] Fix | Delete
unsigned int length;
[35] Fix | Delete
};
[36] Fix | Delete
[37] Fix | Delete
struct isc_consttextregion {
[38] Fix | Delete
const char * base;
[39] Fix | Delete
unsigned int length;
[40] Fix | Delete
};
[41] Fix | Delete
[42] Fix | Delete
/*@{*/
[43] Fix | Delete
/*!
[44] Fix | Delete
* The region structure is not opaque, and is usually directly manipulated.
[45] Fix | Delete
* Some macros are defined below for convenience.
[46] Fix | Delete
*/
[47] Fix | Delete
[48] Fix | Delete
#define isc_region_consume(r,l) \
[49] Fix | Delete
do { \
[50] Fix | Delete
isc_region_t *_r = (r); \
[51] Fix | Delete
unsigned int _l = (l); \
[52] Fix | Delete
INSIST(_r->length >= _l); \
[53] Fix | Delete
_r->base += _l; \
[54] Fix | Delete
_r->length -= _l; \
[55] Fix | Delete
} while (0)
[56] Fix | Delete
[57] Fix | Delete
#define isc_textregion_consume(r,l) \
[58] Fix | Delete
do { \
[59] Fix | Delete
isc_textregion_t *_r = (r); \
[60] Fix | Delete
unsigned int _l = (l); \
[61] Fix | Delete
INSIST(_r->length >= _l); \
[62] Fix | Delete
_r->base += _l; \
[63] Fix | Delete
_r->length -= _l; \
[64] Fix | Delete
} while (0)
[65] Fix | Delete
[66] Fix | Delete
#define isc_constregion_consume(r,l) \
[67] Fix | Delete
do { \
[68] Fix | Delete
isc_constregion_t *_r = (r); \
[69] Fix | Delete
unsigned int _l = (l); \
[70] Fix | Delete
INSIST(_r->length >= _l); \
[71] Fix | Delete
_r->base += _l; \
[72] Fix | Delete
_r->length -= _l; \
[73] Fix | Delete
} while (0)
[74] Fix | Delete
/*@}*/
[75] Fix | Delete
[76] Fix | Delete
ISC_LANG_BEGINDECLS
[77] Fix | Delete
[78] Fix | Delete
int
[79] Fix | Delete
isc_region_compare(isc_region_t *r1, isc_region_t *r2);
[80] Fix | Delete
/*%<
[81] Fix | Delete
* Compares the contents of two regions
[82] Fix | Delete
*
[83] Fix | Delete
* Requires:
[84] Fix | Delete
*\li 'r1' is a valid region
[85] Fix | Delete
*\li 'r2' is a valid region
[86] Fix | Delete
*
[87] Fix | Delete
* Returns:
[88] Fix | Delete
*\li < 0 if r1 is lexicographically less than r2
[89] Fix | Delete
*\li = 0 if r1 is lexicographically identical to r2
[90] Fix | Delete
*\li > 0 if r1 is lexicographically greater than r2
[91] Fix | Delete
*/
[92] Fix | Delete
[93] Fix | Delete
ISC_LANG_ENDDECLS
[94] Fix | Delete
[95] Fix | Delete
#endif /* ISC_REGION_H */
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function