Commit 4529cdae authored by Bob Halley's avatar Bob Halley
Browse files

make rdata functions static inline

parent 00d81794
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: gen.c,v 1.22 1999/08/02 22:18:30 halley Exp $ */
/* $Id: gen.c,v 1.23 1999/08/12 01:32:42 halley Exp $ */
#include <config.h>
......@@ -235,13 +235,13 @@ dodecl(char *type, char *function, char *args) {
for (tt = types; tt ; tt = tt->next)
if (tt->rdclass)
fprintf(stdout,
"static %s %s_%s_%s(%s);\n",
"static inline %s %s_%s_%s(%s);\n",
type, function,
funname(tt->classname, buf1),
funname(tt->typename, buf2), args);
else
fprintf(stdout,
"static %s %s_%s(%s);\n",
"static inline %s %s_%s(%s);\n",
type, function,
funname(tt->typename, buf1), args);
}
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tsig_250.c,v 1.13 1999/08/02 22:17:58 halley Exp $ */
/* $Id: tsig_250.c,v 1.14 1999/08/12 01:32:29 halley Exp $ */
/* draft-ietf-dnsind-tsig-07.txt */
......@@ -23,7 +23,7 @@
#define RDATA_ANY_255_TSIG_250_C
#include <isc/str.h>
static dns_result_t
static inline dns_result_t
fromtext_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -92,7 +92,7 @@ fromtext_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (isc_base64_tobuffer(lexer, target, token.value.as_ulong));
}
static dns_result_t
static inline dns_result_t
totext_any_tsig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -184,7 +184,7 @@ totext_any_tsig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (isc_base64_totext(&sr, 60, " ", target));
}
static dns_result_t
static inline dns_result_t
fromwire_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -240,7 +240,7 @@ fromwire_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (mem_tobuffer(target, sr.base, n + 2));
}
static dns_result_t
static inline dns_result_t
towire_any_tsig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
isc_region_t sr;
dns_name_t name;
......@@ -261,7 +261,7 @@ towire_any_tsig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target)
return (mem_tobuffer(target, sr.base, sr.length));
}
static int
static inline int
compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
isc_region_t r1;
isc_region_t r2;
......@@ -288,7 +288,7 @@ compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (compare_region(&r1, &r2));
}
static dns_result_t
static inline dns_result_t
fromstruct_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
void *source, isc_buffer_t *target)
{
......@@ -302,7 +302,7 @@ fromstruct_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 250);
......@@ -314,7 +314,7 @@ tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_any_tsig(void *source) {
dns_rdata_any_tsig_t *tsig = source;
......@@ -325,7 +325,7 @@ freestruct_any_tsig(void *source) {
}
static dns_result_t
static inline dns_result_t
additionaldata_any_tsig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: afsdb_18.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
/* $Id: afsdb_18.c,v 1.11 1999/08/12 01:32:29 halley Exp $ */
/* RFC 1183 */
#ifndef RDATA_GENERIC_AFSDB_18_C
#define RDATA_GENERIC_AFSDB_18_C
static dns_result_t
static inline dns_result_t
fromtext_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -48,7 +48,7 @@ fromtext_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
}
static dns_result_t
static inline dns_result_t
totext_afsdb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -75,7 +75,7 @@ totext_afsdb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return(dns_name_totext(&prefix, sub, target));
}
static dns_result_t
static inline dns_result_t
fromwire_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -107,7 +107,7 @@ fromwire_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
static dns_result_t
static inline dns_result_t
towire_afsdb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
isc_region_t tr;
isc_region_t sr;
......@@ -134,7 +134,7 @@ towire_afsdb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (dns_name_towire(&name, cctx, target));
}
static int
static inline int
compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
int result;
dns_name_t name1;
......@@ -165,7 +165,7 @@ compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (dns_name_rdatacompare(&name1, &name2));
}
static dns_result_t
static inline dns_result_t
fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -180,7 +180,7 @@ fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 18);
......@@ -192,7 +192,7 @@ tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_afsdb(void *source) {
dns_rdata_afsdb_t *afsdb = source;
......@@ -201,7 +201,7 @@ freestruct_afsdb(void *source) {
REQUIRE(ISC_FALSE);
}
static dns_result_t
static inline dns_result_t
additionaldata_afsdb(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: cert_37.c,v 1.11 1999/08/02 22:17:58 halley Exp $ */
/* $Id: cert_37.c,v 1.12 1999/08/12 01:32:29 halley Exp $ */
/* draft-ietf-dnssec-certs-04.txt */
#ifndef RDATA_GENERIC_CERT_37_C
#define RDATA_GENERIC_CERT_37_C
static dns_result_t
static inline dns_result_t
fromtext_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -73,7 +73,7 @@ fromtext_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (isc_base64_tobuffer(lexer, target, -1));
}
static dns_result_t
static inline dns_result_t
totext_cert(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -114,7 +114,7 @@ totext_cert(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (DNS_R_SUCCESS);
}
static dns_result_t
static inline dns_result_t
fromwire_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -135,7 +135,7 @@ fromwire_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (mem_tobuffer(target, sr.base, sr.length));
}
static dns_result_t
static inline dns_result_t
towire_cert(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
isc_region_t sr;
......@@ -147,7 +147,7 @@ towire_cert(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (mem_tobuffer(target, sr.base, sr.length));
}
static int
static inline int
compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
isc_region_t r1;
isc_region_t r2;
......@@ -161,7 +161,7 @@ compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (compare_region(&r1, &r2));
}
static dns_result_t
static inline dns_result_t
fromstruct_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -176,7 +176,7 @@ fromstruct_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 37);
......@@ -188,13 +188,13 @@ tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_cert(void *target) {
REQUIRE(target != NULL && target != NULL);
REQUIRE(ISC_FALSE); /* XXX */
}
static dns_result_t
static inline dns_result_t
additionaldata_cert(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,12 +15,12 @@
* SOFTWARE.
*/
/* $Id: cname_5.c,v 1.15 1999/08/02 22:17:59 halley Exp $ */
/* $Id: cname_5.c,v 1.16 1999/08/12 01:32:29 halley Exp $ */
#ifndef RDATA_GENERIC_CNAME_5_C
#define RDATA_GENERIC_CNAME_5_C
static dns_result_t
static inline dns_result_t
fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -42,7 +42,7 @@ fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
}
static dns_result_t
static inline dns_result_t
totext_cname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -64,7 +64,7 @@ totext_cname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (dns_name_totext(&prefix, sub, target));
}
static dns_result_t
static inline dns_result_t
fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -84,7 +84,7 @@ fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return(dns_name_fromwire(&name, source, dctx, downcase, target));
}
static dns_result_t
static inline dns_result_t
towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
dns_name_t name;
isc_region_t region;
......@@ -103,7 +103,7 @@ towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (dns_name_towire(&name, cctx, target));
}
static int
static inline int
compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
dns_name_t name1;
dns_name_t name2;
......@@ -126,7 +126,7 @@ compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (dns_name_rdatacompare(&name1, &name2));
}
static dns_result_t
static inline dns_result_t
fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -141,7 +141,7 @@ fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 5);
......@@ -153,13 +153,13 @@ tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_cname(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
}
static dns_result_t
static inline dns_result_t
additionaldata_cname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: dname_39.c,v 1.8 1999/08/02 22:17:59 halley Exp $ */
/* $Id: dname_39.c,v 1.9 1999/08/12 01:32:30 halley Exp $ */
/* draft-ietf-dnsind-dname-02.txt */
#ifndef RDATA_GENERIC_DNAME_39_C
#define RDATA_GENERIC_DNAME_39_C
static dns_result_t
static inline dns_result_t
fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -43,7 +43,7 @@ fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
}
static dns_result_t
static inline dns_result_t
totext_dname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -65,7 +65,7 @@ totext_dname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (dns_name_totext(&prefix, sub, target));
}
static dns_result_t
static inline dns_result_t
fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -84,7 +84,7 @@ fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return(dns_name_fromwire(&name, source, dctx, downcase, target));
}
static dns_result_t
static inline dns_result_t
towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
dns_name_t name;
isc_region_t region;
......@@ -103,7 +103,7 @@ towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (dns_name_towire(&name, cctx, target));
}
static int
static inline int
compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
dns_name_t name1;
dns_name_t name2;
......@@ -126,7 +126,7 @@ compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (dns_name_rdatacompare(&name1, &name2));
}
static dns_result_t
static inline dns_result_t
fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -141,7 +141,7 @@ fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 39);
......@@ -153,13 +153,13 @@ tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_dname(void *source) {
REQUIRE(source != NULL && source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
}
static dns_result_t
static inline dns_result_t
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: gpos_27.c,v 1.6 1999/08/02 22:17:59 halley Exp $ */
/* $Id: gpos_27.c,v 1.7 1999/08/12 01:32:30 halley Exp $ */
/* RFC 1712 */
#ifndef RDATA_GENERIC_GPOS_27_C
#define RDATA_GENERIC_GPOS_27_C
static dns_result_t
static inline dns_result_t
fromtext_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -44,7 +44,7 @@ fromtext_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (DNS_R_SUCCESS);
}
static dns_result_t
static inline dns_result_t
totext_gpos(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -66,7 +66,7 @@ totext_gpos(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (DNS_R_SUCCESS);
}
static dns_result_t
static inline dns_result_t
fromwire_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -84,7 +84,7 @@ fromwire_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (DNS_R_SUCCESS);
}
static dns_result_t
static inline dns_result_t
towire_gpos(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
REQUIRE(rdata->type == 27);
......@@ -94,7 +94,7 @@ towire_gpos(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (mem_tobuffer(target, rdata->data, rdata->length));
}
static int
static inline int
compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
isc_region_t r1;
isc_region_t r2;
......@@ -108,7 +108,7 @@ compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (compare_region(&r1, &r2));
}
static dns_result_t
static inline dns_result_t
fromstruct_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -123,7 +123,7 @@ fromstruct_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 27);
......@@ -134,13 +134,13 @@ tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_gpos(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
}
static dns_result_t
static inline dns_result_t
additionaldata_gpos(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,12 +15,12 @@
* SOFTWARE.
*/
/* $Id: hinfo_13.c,v 1.14 1999/08/02 22:17:59 halley Exp $ */
/* $Id: hinfo_13.c,v 1.15 1999/08/12 01:32:30 halley Exp $ */
#ifndef RDATA_GENERIC_HINFO_13_C
#define RDATA_GENERIC_HINFO_13_C
static dns_result_t
static inline dns_result_t
fromtext_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -42,7 +42,7 @@ fromtext_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (DNS_R_SUCCESS);
}
static dns_result_t
static inline dns_result_t
totext_hinfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
......@@ -58,7 +58,7 @@ totext_hinfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return (txt_totext(&region, target));
}
static dns_result_t
static inline dns_result_t
fromwire_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -74,7 +74,7 @@ fromwire_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (txt_fromwire(source, target));
}
static dns_result_t
static inline dns_result_t
towire_hinfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
REQUIRE(rdata->type == 13);
......@@ -84,7 +84,7 @@ towire_hinfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (mem_tobuffer(target, rdata->data, rdata->length));
}
static int
static inline int
compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
isc_region_t r1;
isc_region_t r2;
......@@ -98,7 +98,7 @@ compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (compare_region(&r1, &r2));
}
static dns_result_t
static inline dns_result_t
fromstruct_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
......@@ -113,7 +113,7 @@ fromstruct_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
static inline dns_result_t
tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 13);
......@@ -124,13 +124,13 @@ tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_hinfo(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
}
static dns_result_t
static inline dns_result_t
additionaldata_hinfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
......
......@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: isdn_20.c,v 1.7 1999/08/02 22:17:59 halley Exp $ */
/* $Id: isdn_20.c,v 1.8 1999/08/12 01:32:30 halley Exp $ */
/* RFC 1183 */
#ifndef RDATA_GENERIC_ISDN_20_C
#define RDATA_GENERIC_ISDN_20_C
static dns_result_t
static inline dns_result_t
fromtext_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
......@@ -49,7 +49,7 @@ fromtext_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (txt_fromtext(&token.value.as_textregion,