diff --git a/lib/dns/gen.c b/lib/dns/gen.c index f90bcbac2c..efe7ef68c5 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -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 @@ -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); } diff --git a/lib/dns/rdata/any_255/tsig_250.c b/lib/dns/rdata/any_255/tsig_250.c index 0b08f8fad5..70baa77393 100644 --- a/lib/dns/rdata/any_255/tsig_250.c +++ b/lib/dns/rdata/any_255/tsig_250.c @@ -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 -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) { diff --git a/lib/dns/rdata/generic/afsdb_18.c b/lib/dns/rdata/generic/afsdb_18.c index d114b4f18b..0557c546dd 100644 --- a/lib/dns/rdata/generic/afsdb_18.c +++ b/lib/dns/rdata/generic/afsdb_18.c @@ -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) { diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c index 37645ce5ea..7a4457196d 100644 --- a/lib/dns/rdata/generic/cert_37.c +++ b/lib/dns/rdata/generic/cert_37.c @@ -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) { diff --git a/lib/dns/rdata/generic/cname_5.c b/lib/dns/rdata/generic/cname_5.c index 3f9bb21227..3b30b53f88 100644 --- a/lib/dns/rdata/generic/cname_5.c +++ b/lib/dns/rdata/generic/cname_5.c @@ -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) { diff --git a/lib/dns/rdata/generic/dname_39.c b/lib/dns/rdata/generic/dname_39.c index 429301c701..b69d281ce9 100644 --- a/lib/dns/rdata/generic/dname_39.c +++ b/lib/dns/rdata/generic/dname_39.c @@ -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) { diff --git a/lib/dns/rdata/generic/gpos_27.c b/lib/dns/rdata/generic/gpos_27.c index 67b454aabf..04ec00c265 100644 --- a/lib/dns/rdata/generic/gpos_27.c +++ b/lib/dns/rdata/generic/gpos_27.c @@ -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) { diff --git a/lib/dns/rdata/generic/hinfo_13.c b/lib/dns/rdata/generic/hinfo_13.c index 0074304afc..4e95c2e9e5 100644 --- a/lib/dns/rdata/generic/hinfo_13.c +++ b/lib/dns/rdata/generic/hinfo_13.c @@ -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(®ion, 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) { diff --git a/lib/dns/rdata/generic/isdn_20.c b/lib/dns/rdata/generic/isdn_20.c index 2433e912da..7ff3905f98 100644 --- a/lib/dns/rdata/generic/isdn_20.c +++ b/lib/dns/rdata/generic/isdn_20.c @@ -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, target)); } -static dns_result_t +static inline dns_result_t totext_isdn(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -67,7 +67,7 @@ totext_isdn(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (txt_totext(®ion, target)); } -static dns_result_t +static inline dns_result_t fromwire_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -85,7 +85,7 @@ fromwire_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (txt_fromwire(source, target)); } -static dns_result_t +static inline dns_result_t towire_isdn(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 20); @@ -95,7 +95,7 @@ towire_isdn(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_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -109,7 +109,7 @@ compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -124,7 +124,7 @@ fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 20); @@ -135,13 +135,13 @@ tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_isdn(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_isdn(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/key_25.c b/lib/dns/rdata/generic/key_25.c index 59fc6c36ab..8f8785b94f 100644 --- a/lib/dns/rdata/generic/key_25.c +++ b/lib/dns/rdata/generic/key_25.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: key_25.c,v 1.9 1999/08/02 22:17:59 halley Exp $ */ + /* $Id: key_25.c,v 1.10 1999/08/12 01:32:30 halley Exp $ */ /* RFC 2065 */ #ifndef RDATA_GENERIC_KEY_25_C #define RDATA_GENERIC_KEY_25_C -static dns_result_t +static inline dns_result_t fromtext_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -62,7 +62,7 @@ fromtext_key(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_key(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -110,7 +110,7 @@ totext_key(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return DNS_R_SUCCESS; } -static dns_result_t +static inline dns_result_t fromwire_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -131,7 +131,7 @@ fromwire_key(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_key(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; @@ -143,7 +143,7 @@ towire_key(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_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -157,7 +157,7 @@ compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -172,7 +172,7 @@ fromstruct_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 25); @@ -183,13 +183,13 @@ tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_key(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_key(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/loc_29.c b/lib/dns/rdata/generic/loc_29.c index 557be90d3c..aa4c086956 100644 --- a/lib/dns/rdata/generic/loc_29.c +++ b/lib/dns/rdata/generic/loc_29.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: loc_29.c,v 1.6 1999/08/02 22:17:59 halley Exp $ */ + /* $Id: loc_29.c,v 1.7 1999/08/12 01:32:30 halley Exp $ */ /* RFC 1876 */ #ifndef RDATA_GENERIC_LOC_29_C #define RDATA_GENERIC_LOC_29_C -static dns_result_t +static inline dns_result_t fromtext_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -375,7 +375,7 @@ fromtext_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (uint32_tobuffer(altitude, target)); } -static dns_result_t +static inline dns_result_t totext_loc(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -474,7 +474,7 @@ totext_loc(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (str_totext(buf, target)); } -static dns_result_t +static inline dns_result_t fromwire_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -538,7 +538,7 @@ fromwire_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (mem_tobuffer(target, sr.base, 16)); } -static dns_result_t +static inline dns_result_t towire_loc(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 29); @@ -548,7 +548,7 @@ towire_loc(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_loc(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -562,7 +562,7 @@ compare_loc(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -577,7 +577,7 @@ fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 29); @@ -588,13 +588,13 @@ tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_loc(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_loc(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/mb_7.c b/lib/dns/rdata/generic/mb_7.c index 8d71cac116..6a4fe9c576 100644 --- a/lib/dns/rdata/generic/mb_7.c +++ b/lib/dns/rdata/generic/mb_7.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: mb_7.c,v 1.16 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: mb_7.c,v 1.17 1999/08/12 01:32:30 halley Exp $ */ #ifndef RDATA_GENERIC_MB_7_C #define RDATA_GENERIC_MB_7_C -static dns_result_t +static inline dns_result_t fromtext_mb(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_mb(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_mb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_mb(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_mb(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_mb(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_mb(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_mb(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_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 7); @@ -152,13 +152,13 @@ tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_mb(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_mb(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/md_3.c b/lib/dns/rdata/generic/md_3.c index 98021bf9b6..02dcedf4e5 100644 --- a/lib/dns/rdata/generic/md_3.c +++ b/lib/dns/rdata/generic/md_3.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: md_3.c,v 1.16 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: md_3.c,v 1.17 1999/08/12 01:32:30 halley Exp $ */ #ifndef RDATA_GENERIC_MD_3_C #define RDATA_GENERIC_MD_3_C -static dns_result_t +static inline dns_result_t fromtext_md(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_md(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_md(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_md(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_md(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_md(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_md(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_md(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_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_md(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_md(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 3); @@ -152,13 +152,13 @@ tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_md(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_md(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/mf_4.c b/lib/dns/rdata/generic/mf_4.c index d15151078b..821a7ffdc0 100644 --- a/lib/dns/rdata/generic/mf_4.c +++ b/lib/dns/rdata/generic/mf_4.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: mf_4.c,v 1.15 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: mf_4.c,v 1.16 1999/08/12 01:32:30 halley Exp $ */ #ifndef RDATA_GENERIC_MF_4_C #define RDATA_GENERIC_MF_4_C -static dns_result_t +static inline dns_result_t fromtext_mf(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_mf(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_mf(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_mf(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_mf(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_mf(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_mf(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_mf(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_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 4); @@ -152,13 +152,13 @@ tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_mf(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_mf(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/mg_8.c b/lib/dns/rdata/generic/mg_8.c index 758a71c919..a18add3529 100644 --- a/lib/dns/rdata/generic/mg_8.c +++ b/lib/dns/rdata/generic/mg_8.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: mg_8.c,v 1.14 1999/08/02 22:17:59 halley Exp $ */ + /* $Id: mg_8.c,v 1.15 1999/08/12 01:32:30 halley Exp $ */ #ifndef RDATA_GENERIC_MG_8_C #define RDATA_GENERIC_MG_8_C -static dns_result_t +static inline dns_result_t fromtext_mg(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_mg(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_mg(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_mg(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_mg(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_mg(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_mg(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_mg(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_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 8); @@ -152,13 +152,13 @@ tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_mg(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_mg(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/minfo_14.c b/lib/dns/rdata/generic/minfo_14.c index 6ec31a9cd3..ffb6778e00 100644 --- a/lib/dns/rdata/generic/minfo_14.c +++ b/lib/dns/rdata/generic/minfo_14.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: minfo_14.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: minfo_14.c,v 1.16 1999/08/12 01:32:30 halley Exp $ */ #ifndef RDATA_GENERIC_MINFO_14_C #define RDATA_GENERIC_MINFO_14_C -static dns_result_t +static inline dns_result_t fromtext_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -47,7 +47,7 @@ fromtext_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_minfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -81,7 +81,7 @@ totext_minfo(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_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -105,7 +105,7 @@ fromwire_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (dns_name_fromwire(&email, source, dctx, downcase, target)); } -static dns_result_t +static inline dns_result_t towire_minfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t region; dns_name_t rmail; @@ -134,7 +134,7 @@ towire_minfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (dns_name_towire(&rmail, cctx, target)); } -static int +static inline int compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t region1; isc_region_t region2; @@ -172,7 +172,7 @@ compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (result); } -static dns_result_t +static inline dns_result_t fromstruct_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -187,7 +187,7 @@ fromstruct_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 14); @@ -198,13 +198,13 @@ tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_minfo(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_minfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/mr_9.c b/lib/dns/rdata/generic/mr_9.c index 6a68363cf7..4da98ba9e5 100644 --- a/lib/dns/rdata/generic/mr_9.c +++ b/lib/dns/rdata/generic/mr_9.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: mr_9.c,v 1.14 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: mr_9.c,v 1.15 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_MR_9_C #define RDATA_GENERIC_MR_9_C -static dns_result_t +static inline dns_result_t fromtext_mr(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_mr(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_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_mr(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_mr(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_mr(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_mr(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_mr(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_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 9); @@ -152,13 +152,13 @@ tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_mr(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_mr(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/mx_15.c b/lib/dns/rdata/generic/mx_15.c index d8ff7f2a51..fc1fcc0b95 100644 --- a/lib/dns/rdata/generic/mx_15.c +++ b/lib/dns/rdata/generic/mx_15.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: mx_15.c,v 1.18 1999/08/03 01:21:23 halley Exp $ */ + /* $Id: mx_15.c,v 1.19 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_MX_15_C #define RDATA_GENERIC_MX_15_C -static dns_result_t +static inline dns_result_t fromtext_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -46,7 +46,7 @@ fromtext_mx(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_mx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -73,7 +73,7 @@ totext_mx(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_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -105,7 +105,7 @@ fromwire_mx(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_mx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t region; @@ -132,7 +132,7 @@ towire_mx(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_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -163,7 +163,7 @@ compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -178,7 +178,7 @@ fromstruct_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 15); @@ -189,13 +189,13 @@ tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_mx(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_mx(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/ns_2.c b/lib/dns/rdata/generic/ns_2.c index 670b3af65d..c7a498c89d 100644 --- a/lib/dns/rdata/generic/ns_2.c +++ b/lib/dns/rdata/generic/ns_2.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: ns_2.c,v 1.15 1999/08/03 01:21:23 halley Exp $ */ + /* $Id: ns_2.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_NS_2_C #define RDATA_GENERIC_NS_2_C -static dns_result_t +static inline dns_result_t fromtext_ns(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_ns(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_ns(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_ns(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_ns(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_ns(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_ns(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_ns(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_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { isc_region_t region; dns_rdata_ns_t *ns = target; @@ -162,13 +162,13 @@ tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_SUCCESS); } -static void +static inline void freestruct_ns(void *source) { REQUIRE(source != NULL); /* No action required. */ } -static dns_result_t +static inline dns_result_t additionaldata_ns(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/null_10.c b/lib/dns/rdata/generic/null_10.c index 6a8a153efd..82346726c7 100644 --- a/lib/dns/rdata/generic/null_10.c +++ b/lib/dns/rdata/generic/null_10.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: null_10.c,v 1.11 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: null_10.c,v 1.12 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_NULL_10_C #define RDATA_GENERIC_NULL_10_C -static dns_result_t +static inline dns_result_t fromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -38,7 +38,7 @@ fromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -53,7 +53,7 @@ totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -70,7 +70,7 @@ fromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 10); @@ -81,7 +81,7 @@ towire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_SUCCESS); } -static int +static inline int compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { REQUIRE(rdata1->type == rdata1->type); @@ -91,7 +91,7 @@ compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (0); } -static dns_result_t +static inline dns_result_t fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -106,7 +106,7 @@ fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { dns_rdata_null_t *null = target; @@ -122,13 +122,13 @@ tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_SUCCESS); } -static void +static inline void freestruct_null(void *source) { REQUIRE(source != NULL); /* No action required. */ } -static dns_result_t +static inline dns_result_t additionaldata_null(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/nxt_30.c b/lib/dns/rdata/generic/nxt_30.c index 280c08203e..d07b612b03 100644 --- a/lib/dns/rdata/generic/nxt_30.c +++ b/lib/dns/rdata/generic/nxt_30.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: nxt_30.c,v 1.12 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: nxt_30.c,v 1.13 1999/08/12 01:32:31 halley Exp $ */ /* RFC 2065 */ #ifndef RDATA_GENERIC_NXT_30_C #define RDATA_GENERIC_NXT_30_C -static dns_result_t +static inline dns_result_t fromtext_nxt(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_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (mem_tobuffer(target, bm, n)); } -static dns_result_t +static inline dns_result_t totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -118,7 +118,7 @@ totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (str_totext(")", target)); } -static dns_result_t +static inline dns_result_t fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -146,7 +146,7 @@ fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_nxt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; dns_name_t name; @@ -167,7 +167,7 @@ towire_nxt(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_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -192,7 +192,7 @@ compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -207,7 +207,7 @@ fromstruct_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 30); @@ -218,7 +218,7 @@ tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_nxt(void *source) { dns_rdata_nxt_t *nxt = source; @@ -227,7 +227,7 @@ freestruct_nxt(void *source) { REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_nxt(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/proforma.c b/lib/dns/rdata/generic/proforma.c index 702e880b41..b660707be7 100644 --- a/lib/dns/rdata/generic/proforma.c +++ b/lib/dns/rdata/generic/proforma.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: proforma.c,v 1.12 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: proforma.c,v 1.13 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_#_#_C #define RDATA_GENERIC_#_#_C -static dns_result_t +static inline dns_result_t fromtext_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) { @@ -34,7 +34,7 @@ fromtext_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t totext_#(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -45,7 +45,7 @@ totext_#(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t fromwire_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) { @@ -61,7 +61,7 @@ fromwire_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t towire_#(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == #); @@ -75,7 +75,7 @@ towire_#(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_NOTIMPLEMENTED); } -static int +static inline int compare_#(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -90,7 +90,7 @@ compare_#(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -100,7 +100,7 @@ fromstruct_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == #); @@ -109,7 +109,7 @@ tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_#(void *source) { dns_rdata_#_t *# = source; @@ -119,7 +119,7 @@ freestruct_#(void *source) { } -static dns_result_t +static inline dns_result_t additionaldata_#(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/ptr_12.c b/lib/dns/rdata/generic/ptr_12.c index 34a2c0dc65..c77d90bdd0 100644 --- a/lib/dns/rdata/generic/ptr_12.c +++ b/lib/dns/rdata/generic/ptr_12.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: ptr_12.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: ptr_12.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_PTR_12_C #define RDATA_GENERIC_PTR_12_C -static dns_result_t +static inline dns_result_t fromtext_ptr(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_ptr(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_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -64,7 +64,7 @@ totext_ptr(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_ptr(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_ptr(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_ptr(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_ptr(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_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -126,7 +126,7 @@ compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -141,7 +141,7 @@ fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 12); @@ -152,13 +152,13 @@ tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_ptr(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/rp_17.c b/lib/dns/rdata/generic/rp_17.c index b064bb89b8..28d27d7ada 100644 --- a/lib/dns/rdata/generic/rp_17.c +++ b/lib/dns/rdata/generic/rp_17.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: rp_17.c,v 1.9 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: rp_17.c,v 1.10 1999/08/12 01:32:31 halley Exp $ */ /* RFC 1183 */ #ifndef RDATA_GENERIC_RP_17_C #define RDATA_GENERIC_RP_17_C -static dns_result_t +static inline dns_result_t fromtext_rp(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_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_rp(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -83,7 +83,7 @@ totext_rp(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_rp(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_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (dns_name_fromwire(&email, source, dctx, downcase, target)); } -static dns_result_t +static inline dns_result_t towire_rp(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t region; dns_name_t rmail; @@ -136,7 +136,7 @@ towire_rp(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (dns_name_towire(&rmail, cctx, target)); } -static int +static inline int compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t region1; isc_region_t region2; @@ -174,7 +174,7 @@ compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (result); } -static dns_result_t +static inline dns_result_t fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -189,7 +189,7 @@ fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 17); @@ -200,13 +200,13 @@ tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_rp(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_rp(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/rt_21.c b/lib/dns/rdata/generic/rt_21.c index 3114ac6892..47abf7bc8c 100644 --- a/lib/dns/rdata/generic/rt_21.c +++ b/lib/dns/rdata/generic/rt_21.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: rt_21.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: rt_21.c,v 1.11 1999/08/12 01:32:31 halley Exp $ */ /* RFC 1183 */ #ifndef RDATA_GENERIC_RT_21_C #define RDATA_GENERIC_RT_21_C -static dns_result_t +static inline dns_result_t fromtext_rt(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_rt(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_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -75,7 +75,7 @@ totext_rt(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_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -106,7 +106,7 @@ fromwire_rt(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_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t region; @@ -133,7 +133,7 @@ towire_rt(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_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -164,7 +164,7 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -179,7 +179,7 @@ fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 21); @@ -190,13 +190,13 @@ tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_rt(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/sig_24.c b/lib/dns/rdata/generic/sig_24.c index d4f0fbeaa1..9039002de9 100644 --- a/lib/dns/rdata/generic/sig_24.c +++ b/lib/dns/rdata/generic/sig_24.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: sig_24.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */ + /* $Id: sig_24.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */ /* RFC 2065 */ #ifndef RDATA_GENERIC_SIG_24_C #define RDATA_GENERIC_SIG_24_C -static dns_result_t +static inline dns_result_t fromtext_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -98,7 +98,7 @@ fromtext_sig(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_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -184,7 +184,7 @@ totext_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return DNS_R_SUCCESS; } -static dns_result_t +static inline dns_result_t fromwire_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -227,7 +227,7 @@ fromwire_sig(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_sig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; dns_name_t name; @@ -262,7 +262,7 @@ towire_sig(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_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -302,7 +302,7 @@ compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -317,7 +317,7 @@ fromstruct_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 24); @@ -328,13 +328,13 @@ tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_sig(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_sig(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/soa_6.c b/lib/dns/rdata/generic/soa_6.c index 993266c861..3d30cc1ef1 100644 --- a/lib/dns/rdata/generic/soa_6.c +++ b/lib/dns/rdata/generic/soa_6.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: soa_6.c,v 1.20 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: soa_6.c,v 1.21 1999/08/12 01:32:31 halley Exp $ */ #ifndef RDATA_GENERIC_SOA_6_C #define RDATA_GENERIC_SOA_6_C -static dns_result_t +static inline dns_result_t fromtext_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -59,7 +59,7 @@ static char *soa_fieldnames[5] = { "serial", "refresh", "retry", "expire", "minimum" } ; -static dns_result_t +static inline dns_result_t totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -128,7 +128,7 @@ totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -167,7 +167,7 @@ fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sregion; isc_region_t tregion; @@ -202,7 +202,7 @@ towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_SUCCESS); } -static int +static inline int compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t region1; isc_region_t region2; @@ -246,7 +246,7 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(®ion1, ®ion2)); } -static dns_result_t +static inline dns_result_t fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -260,7 +260,7 @@ fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { isc_region_t region; dns_rdata_soa_t *soa = target; @@ -296,7 +296,7 @@ tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_SUCCESS); } -static void +static inline void freestruct_soa(void *source) { dns_rdata_soa_t *soa = source; @@ -305,7 +305,7 @@ freestruct_soa(void *source) { /* No action required */ } -static dns_result_t +static inline dns_result_t additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/tkey_249.c b/lib/dns/rdata/generic/tkey_249.c index 950eb09758..ba6977c2bd 100644 --- a/lib/dns/rdata/generic/tkey_249.c +++ b/lib/dns/rdata/generic/tkey_249.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: tkey_249.c,v 1.13 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: tkey_249.c,v 1.14 1999/08/12 01:32:32 halley Exp $ */ /* draft-ietf-dnssec-tkey-01.txt */ #ifndef RDATA_GENERIC_TKEY_249_C #define RDATA_GENERIC_TKEY_249_C -static dns_result_t +static inline dns_result_t fromtext_tkey(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_tkey(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_tkey(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -176,7 +176,7 @@ totext_tkey(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_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -231,7 +231,7 @@ fromwire_tkey(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_tkey(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; dns_name_t name; @@ -253,7 +253,7 @@ towire_tkey(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_tkey(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -279,7 +279,7 @@ compare_tkey(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -293,7 +293,7 @@ fromstruct_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 249); @@ -304,13 +304,13 @@ tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_tkey(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_tkey(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/txt_16.c b/lib/dns/rdata/generic/txt_16.c index c8a7c3e2e0..c4735655f4 100644 --- a/lib/dns/rdata/generic/txt_16.c +++ b/lib/dns/rdata/generic/txt_16.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: txt_16.c,v 1.13 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: txt_16.c,v 1.14 1999/08/12 01:32:32 halley Exp $ */ #ifndef RDATA_GENERIC_TXT_16_C #define RDATA_GENERIC_TXT_16_C -static dns_result_t +static inline dns_result_t fromtext_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -46,7 +46,7 @@ fromtext_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_txt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -67,7 +67,7 @@ totext_txt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -88,7 +88,7 @@ fromwire_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_txt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t region; @@ -105,7 +105,7 @@ towire_txt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_SUCCESS); } -static int +static inline int compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -119,7 +119,7 @@ compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -134,7 +134,7 @@ fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 16); @@ -145,13 +145,13 @@ tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_txt(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_txt(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/unspec_103.c b/lib/dns/rdata/generic/unspec_103.c index 83cec35844..1153b4c31a 100644 --- a/lib/dns/rdata/generic/unspec_103.c +++ b/lib/dns/rdata/generic/unspec_103.c @@ -15,12 +15,12 @@ * SOFTWARE. */ - /* $Id: unspec_103.c,v 1.6 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: unspec_103.c,v 1.7 1999/08/12 01:32:32 halley Exp $ */ #ifndef RDATA_GENERIC_UNSPEC_103_C #define RDATA_GENERIC_UNSPEC_103_C -static dns_result_t +static inline dns_result_t fromtext_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -35,7 +35,7 @@ fromtext_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (atob_tobuffer(lexer, target)); } -static dns_result_t +static inline dns_result_t totext_unspec(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -48,7 +48,7 @@ totext_unspec(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (btoa_totext(rdata->data, rdata->length, target)); } -static dns_result_t +static inline dns_result_t fromwire_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -65,7 +65,7 @@ fromwire_unspec(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_unspec(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 103); @@ -75,7 +75,7 @@ towire_unspec(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_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -89,7 +89,7 @@ compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -104,7 +104,7 @@ fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 103); @@ -115,13 +115,13 @@ tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_unspec(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_unspec(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/generic/x25_19.c b/lib/dns/rdata/generic/x25_19.c index 8aa43b7a6b..f21733de16 100644 --- a/lib/dns/rdata/generic/x25_19.c +++ b/lib/dns/rdata/generic/x25_19.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: x25_19.c,v 1.6 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: x25_19.c,v 1.7 1999/08/12 01:32:32 halley Exp $ */ /* RFC 1183 */ @@ -24,7 +24,7 @@ #include -static dns_result_t +static inline dns_result_t fromtext_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -46,7 +46,7 @@ fromtext_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (txt_fromtext(&token.value.as_textregion, target)); } -static dns_result_t +static inline dns_result_t totext_x25(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -60,7 +60,7 @@ totext_x25(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (txt_totext(®ion, target)); } -static dns_result_t +static inline dns_result_t fromwire_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -75,7 +75,7 @@ fromwire_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (txt_fromwire(source, target)); } -static dns_result_t +static inline dns_result_t towire_x25(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 19); @@ -85,7 +85,7 @@ towire_x25(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_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { int l; int result; @@ -105,7 +105,7 @@ compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (result); } -static dns_result_t +static inline dns_result_t fromstruct_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -120,7 +120,7 @@ fromstruct_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 19); @@ -131,13 +131,13 @@ tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_x25(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_x25(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/a6_38.c b/lib/dns/rdata/in_1/a6_38.c index 793ebbb72c..6bc33c132d 100644 --- a/lib/dns/rdata/in_1/a6_38.c +++ b/lib/dns/rdata/in_1/a6_38.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: a6_38.c,v 1.12 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: a6_38.c,v 1.13 1999/08/12 01:32:32 halley Exp $ */ /* draft-ietf-ipngwg-dns-lookups-03.txt */ @@ -30,7 +30,7 @@ #define MAX(A, B) ((A > B) ? (A) : (B)) #endif -static dns_result_t +static inline dns_result_t fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -79,7 +79,7 @@ fromtext_in_a6(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_in_a6(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -131,7 +131,7 @@ totext_in_a6(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_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -179,7 +179,7 @@ fromwire_in_a6(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_in_a6(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; dns_name_t name; @@ -210,7 +210,7 @@ towire_in_a6(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_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { int result; unsigned char prefixlen; @@ -244,7 +244,7 @@ compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -258,7 +258,7 @@ fromstruct_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 38); @@ -270,13 +270,13 @@ tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_a6(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_a6(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/a_1.c b/lib/dns/rdata/in_1/a_1.c index b65ca33646..0703749d2e 100644 --- a/lib/dns/rdata/in_1/a_1.c +++ b/lib/dns/rdata/in_1/a_1.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: a_1.c,v 1.17 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: a_1.c,v 1.18 1999/08/12 01:32:32 halley Exp $ */ #ifndef RDATA_IN_1_A_1_C #define RDATA_IN_1_A_1_C @@ -24,7 +24,7 @@ #include -static dns_result_t +static inline dns_result_t fromtext_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -51,7 +51,7 @@ fromtext_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_in_a(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -72,7 +72,7 @@ totext_in_a(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -100,7 +100,7 @@ fromwire_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_in_a(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t region; @@ -117,7 +117,7 @@ towire_in_a(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_SUCCESS); } -static int +static inline int compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { int result; @@ -133,7 +133,7 @@ compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (result); } -static dns_result_t +static inline dns_result_t fromstruct_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -147,7 +147,7 @@ fromstruct_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 1); @@ -159,14 +159,14 @@ tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_a(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_a(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/aaaa_28.c b/lib/dns/rdata/in_1/aaaa_28.c index 7723c0fc41..2715aa2930 100644 --- a/lib/dns/rdata/in_1/aaaa_28.c +++ b/lib/dns/rdata/in_1/aaaa_28.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: aaaa_28.c,v 1.11 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: aaaa_28.c,v 1.12 1999/08/12 01:32:32 halley Exp $ */ /* RFC 1886 */ @@ -26,7 +26,7 @@ #include -static dns_result_t +static inline dns_result_t fromtext_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -53,7 +53,7 @@ fromtext_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_in_aaaa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -74,7 +74,7 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -102,7 +102,7 @@ fromwire_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_in_aaaa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t region; @@ -119,7 +119,7 @@ towire_in_aaaa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { return (DNS_R_SUCCESS); } -static int +static inline int compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { int result; @@ -135,7 +135,7 @@ compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (result); } -static dns_result_t +static inline dns_result_t fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -149,7 +149,7 @@ fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 28); @@ -161,13 +161,13 @@ tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_aaaa(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_aaaa(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/kx_36.c b/lib/dns/rdata/in_1/kx_36.c index 42154cb886..da5bcb1b33 100644 --- a/lib/dns/rdata/in_1/kx_36.c +++ b/lib/dns/rdata/in_1/kx_36.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: kx_36.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: kx_36.c,v 1.11 1999/08/12 01:32:32 halley Exp $ */ /* RFC 2230 */ #ifndef RDATA_GENERIC_KX_36_C #define RDATA_GENERIC_KX_36_C -static dns_result_t +static inline dns_result_t fromtext_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -45,7 +45,7 @@ fromtext_in_kx(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_in_kx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -74,7 +74,7 @@ totext_in_kx(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_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -100,7 +100,7 @@ fromwire_in_kx(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_in_kx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t region; @@ -123,7 +123,7 @@ towire_in_kx(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_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -155,7 +155,7 @@ compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -169,7 +169,7 @@ fromstruct_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 36); @@ -181,14 +181,14 @@ tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_kx(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_in_kx(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/naptr_35.c b/lib/dns/rdata/in_1/naptr_35.c index 148ceaf458..264662bc5a 100644 --- a/lib/dns/rdata/in_1/naptr_35.c +++ b/lib/dns/rdata/in_1/naptr_35.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: naptr_35.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: naptr_35.c,v 1.11 1999/08/12 01:32:32 halley Exp $ */ /* RFC 2168 */ #ifndef RDATA_IN_1_NAPTR_35_C #define RDATA_IN_1_NAPTR_35_C -static dns_result_t +static inline dns_result_t fromtext_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -63,7 +63,7 @@ fromtext_in_naptr(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_in_naptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -113,7 +113,7 @@ totext_in_naptr(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_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -151,7 +151,7 @@ fromwire_in_naptr(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_in_naptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t sr; @@ -187,7 +187,7 @@ towire_in_naptr(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_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -241,7 +241,7 @@ compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -255,7 +255,7 @@ fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 35); @@ -267,13 +267,13 @@ tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_naptr(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_in_naptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/nsap-ptr_23.c b/lib/dns/rdata/in_1/nsap-ptr_23.c index a44893c6ae..3b8ca16ea4 100644 --- a/lib/dns/rdata/in_1/nsap-ptr_23.c +++ b/lib/dns/rdata/in_1/nsap-ptr_23.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: nsap-ptr_23.c,v 1.8 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: nsap-ptr_23.c,v 1.9 1999/08/12 01:32:32 halley Exp $ */ /* RFC 1348 */ #ifndef RDATA_IN_1_NSAP_PTR_23_C #define RDATA_IN_1_NSAP_PTR_23_C -static dns_result_t +static inline dns_result_t fromtext_in_nsap_ptr(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_in_nsap_ptr(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_in_nsap_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -66,7 +66,7 @@ totext_in_nsap_ptr(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_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -85,7 +85,7 @@ fromwire_in_nsap_ptr(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_in_nsap_ptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { @@ -107,7 +107,7 @@ towire_in_nsap_ptr(dns_rdata_t *rdata, dns_compress_t *cctx, return (dns_name_towire(&name, cctx, target)); } -static int +static inline int compare_in_nsap_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -131,7 +131,7 @@ compare_in_nsap_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -145,7 +145,7 @@ fromstruct_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 23); @@ -157,13 +157,13 @@ tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_nsap_ptr(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); } -static dns_result_t +static inline dns_result_t additionaldata_in_nsap_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/nsap_22.c b/lib/dns/rdata/in_1/nsap_22.c index fa8c45e5c9..c6fafce2a6 100644 --- a/lib/dns/rdata/in_1/nsap_22.c +++ b/lib/dns/rdata/in_1/nsap_22.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: nsap_22.c,v 1.7 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: nsap_22.c,v 1.8 1999/08/12 01:32:32 halley Exp $ */ /* RFC 1706 */ @@ -24,7 +24,7 @@ #include -static dns_result_t +static inline dns_result_t fromtext_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) { @@ -71,7 +71,7 @@ fromtext_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t totext_in_nsap(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -93,7 +93,7 @@ totext_in_nsap(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -114,7 +114,7 @@ fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (mem_tobuffer(target, region.base, region.length)); } -static dns_result_t +static inline dns_result_t towire_in_nsap(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { REQUIRE(rdata->type == 22); @@ -125,7 +125,7 @@ towire_in_nsap(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_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -140,7 +140,7 @@ compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -154,7 +154,7 @@ fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 22); @@ -166,13 +166,13 @@ tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_nsap(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_nsap(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/px_26.c b/lib/dns/rdata/in_1/px_26.c index acc3e9e5d7..da49be0d3b 100644 --- a/lib/dns/rdata/in_1/px_26.c +++ b/lib/dns/rdata/in_1/px_26.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: px_26.c,v 1.8 1999/08/02 22:18:01 halley Exp $ */ + /* $Id: px_26.c,v 1.9 1999/08/12 01:32:32 halley Exp $ */ /* RFC 2163 */ #ifndef RDATA_IN_1_PX_26_C #define RDATA_IN_1_PX_26_C -static dns_result_t +static inline dns_result_t fromtext_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -55,7 +55,7 @@ fromtext_in_px(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_in_px(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -93,7 +93,7 @@ totext_in_px(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_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -125,7 +125,7 @@ fromwire_in_px(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_in_px(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t region; @@ -155,7 +155,7 @@ towire_in_px(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_in_px(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -197,7 +197,7 @@ compare_in_px(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -211,7 +211,7 @@ fromstruct_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 26); @@ -223,14 +223,14 @@ tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_px(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_px(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/srv_33.c b/lib/dns/rdata/in_1/srv_33.c index 50be65182b..55aa5ca801 100644 --- a/lib/dns/rdata/in_1/srv_33.c +++ b/lib/dns/rdata/in_1/srv_33.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: srv_33.c,v 1.9 1999/08/03 20:55:19 halley Exp $ */ + /* $Id: srv_33.c,v 1.10 1999/08/12 01:32:33 halley Exp $ */ /* RFC 2052 bis */ #ifndef RDATA_IN_1_SRV_33_C #define RDATA_IN_1_SRV_33_C -static dns_result_t +static inline dns_result_t fromtext_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -55,7 +55,7 @@ fromtext_in_srv(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_in_srv(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -100,7 +100,7 @@ totext_in_srv(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_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -129,7 +129,7 @@ fromwire_in_srv(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_in_srv(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { dns_name_t name; isc_region_t sr; @@ -152,7 +152,7 @@ towire_in_srv(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_in_srv(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { dns_name_t name1; dns_name_t name2; @@ -186,7 +186,7 @@ compare_in_srv(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (dns_name_rdatacompare(&name1, &name2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -200,7 +200,7 @@ fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 33); @@ -212,13 +212,13 @@ tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_srv(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_srv(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) { diff --git a/lib/dns/rdata/in_1/wks_11.c b/lib/dns/rdata/in_1/wks_11.c index 70c7da921d..3e4fd1b436 100644 --- a/lib/dns/rdata/in_1/wks_11.c +++ b/lib/dns/rdata/in_1/wks_11.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: wks_11.c,v 1.14 1999/08/02 22:18:02 halley Exp $ */ + /* $Id: wks_11.c,v 1.15 1999/08/12 01:32:33 halley Exp $ */ #ifndef RDATA_IN_1_WKS_11_C #define RDATA_IN_1_WKS_11_C @@ -27,7 +27,7 @@ #include #include -static dns_result_t +static inline dns_result_t fromtext_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_lex_t *lexer, dns_name_t *origin, isc_boolean_t downcase, isc_buffer_t *target) @@ -107,7 +107,7 @@ fromtext_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (mem_tobuffer(target, bm, n)); } -static dns_result_t +static inline dns_result_t totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target) { @@ -148,7 +148,7 @@ totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t fromwire_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, isc_boolean_t downcase, isc_buffer_t *target) @@ -178,7 +178,7 @@ fromwire_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, return (DNS_R_SUCCESS); } -static dns_result_t +static inline dns_result_t towire_in_wks(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) { isc_region_t sr; @@ -191,7 +191,7 @@ towire_in_wks(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_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { isc_region_t r1; isc_region_t r2; @@ -206,7 +206,7 @@ compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) { return (compare_region(&r1, &r2)); } -static dns_result_t +static inline dns_result_t fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, isc_buffer_t *target) { @@ -221,7 +221,7 @@ fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, return (DNS_R_NOTIMPLEMENTED); } -static dns_result_t +static inline dns_result_t tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { REQUIRE(rdata->type == 11); @@ -233,13 +233,13 @@ tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { return (DNS_R_NOTIMPLEMENTED); } -static void +static inline void freestruct_in_wks(void *source) { REQUIRE(source != NULL); REQUIRE(ISC_FALSE); /*XXX*/ } -static dns_result_t +static inline dns_result_t additionaldata_in_wks(dns_rdata_t *rdata, dns_additionaldatafunc_t add, void *arg) {