Commit Graph
54 Commits
Author SHA1 Message Date
David Lawrence 40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence 28d9fd5381 update_copyrights 2000-06-21 22:45:24 +00:00
Mark Andrews d2b5fe92a4 Generate dependancies for dot 'h' files made by gen. 2000-06-06 02:01:41 +00:00
David Lawrence f8faa9fe09 my last revision created a dns_rdataclass_* enum that had a comma after the
last idenfier, and IRIX whined about it.  Repeatedly.  Sigh.
2000-06-02 03:26:17 +00:00
David Lawrence 1c70c5ee90 227. [cleanup] The enumerated identifiers dns_rdataclass_*,
dns_rcode_*, dns_opcode_*, and dns_trust_* are
                        also now cast to their appropriate types.
2000-06-02 01:07:05 +00:00
David Lawrence 0b056755b2 225. [cleanup] The enumerated dns_rdatatype_* identifiers are now
cast to dns_rdatatype_t via macros of their same name
                        so that they are of the proper integral type wherever
                        a dns_rdatatype_t is needed.

(And a few prototypes that I recently bogusly changed to take "int" parameters
in place of "dns_rdatatype_t" to accomodate the type of an enum identifier
have been reverted to again properly take a dns_rdatatype_t.)
2000-06-01 21:42:42 +00:00
David Lawrence 6d12fdf966 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.

rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.

Some minor integer-compatibility issues.  (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast.  The type of an
enum member is int, so there are some conversion issues there, too.)

A pointers-to-function should not be cast to a pointer-to-object.

Variables should not be named for C reserved identifiers.

One or two set-but-not-used variables removed.

Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
David Lawrence 47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Michael Graff 987effb437 Be far, far noisier about 'generated file; do not edit' to keep the important message from disappearing between copyright notices (say, in rdatastruct.h) 2000-05-04 22:49:47 +00:00
Andreas Gustafsson 7a9b47e4d0 do not indent comments by one space 2000-05-03 20:24:03 +00:00
Michael Graff 95f908eb79 more bug fixes in generation of rdatatype_fromtext() processing 2000-04-26 18:30:04 +00:00
Michael Graff 88cad53724 fix problem with alpha 2000-04-26 17:27:01 +00:00
Michael Graff 18b8cd9e27 add dns_rdataclass_chaos and _reserved0 (used internally to rdata.c) to the enumclass.h file 2000-04-25 21:10:33 +00:00
Michael Graff 94a537e6ab optimize dns_rdatatype_fromtext() 2000-04-25 19:09:07 +00:00
Michael Graff 89bc8a8876 formatting, no functional change 2000-04-19 18:33:09 +00:00
Michael Graff 8de9b6a176 Add types that don't have an associated file (type 0, type 'uid', etc) to the array, rather than special-casing them when printing. This lets us sort on things easier. 2000-04-19 18:32:26 +00:00
Michael Graff 5d4660ccb5 maila/mailb are only allowed as questions, too 2000-04-14 22:59:01 +00:00
Michael Graff fa018cb51f axfr and ixfr can occur only in the question section, not in the 'body' 2000-04-14 22:42:24 +00:00
Michael Graff 7ec579cd5d Add functions to check that a type is only or is not allowed in a question section 2000-04-14 20:13:49 +00:00
Michael Graff 6324997211 add attributes (line singleton, exlcusive, meta, etc) to rdata C files, and
build a table of them using gen.c.  This means the names are stored twice,
but that will change in the near future.  This will speed up number to text
conversions for rdatatypes, and I plan on speeding up text->number as
well, soon.
2000-04-07 03:54:52 +00:00
Andreas Gustafsson 2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Bob Halley 7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Michael Graff 3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Mark Andrews b57bb9136a Ensure that islower is called with int. 1999-10-25 17:04:55 +00:00
David Lawrence 53bd3f325f gen-unix.h, gen-win32.h:
platform-specific handling of option parsing and directory iteration.

gen.c:
  use gen-unix.h/gen-win32.h
1999-10-08 22:57:20 +00:00
Bob Halley c44989e64a revert to 1.25 (unix only) 1999-10-07 02:55:00 +00:00
David Lawrence f46a6d4e43 no more dirent.h and unistd.h.
use isc_dir_* and isc_commandline_parse.
1999-10-06 19:55:29 +00:00
Bob Halley 10ba7f6f56 lint 1999-10-05 19:50:53 +00:00
Bob Halley 477437f48d digest support 1999-08-31 22:08:19 +00:00
Bob Halley 4529cdaeda make rdata functions static inline 1999-08-12 01:32:42 +00:00
Bob Halley d981ca6455 class to rdclass; additional data support 1999-08-02 22:18:31 +00:00
Bob Halley dfea6f0eaa include config.h 1999-07-03 20:55:16 +00:00
Andreas Gustafsson 5fc7ba3e1a added dns_db_dump(), $DATE, and supporting changes 1999-06-08 10:35:23 +00:00
Mark Andrews 94a3bcd132 dns_rdata_tostruct() may require memory to be allocted and hence
it will need to be freed, dns_rdata_freestruct().
	Changes to implement this.

	Added C++ support to rdatastruct.h
1999-05-07 03:24:15 +00:00
Mark Andrews 4fd3e3482c dns_rdata_tostruct() conversion 1999-05-05 01:55:13 +00:00
Michael Graff d9e3898f8e Add explicit element for initializer for flags, rather than spewing warnings.
The flags default to 0, so I set them to explicit 0 for now.
1999-04-29 06:10:27 +00:00
Bob Halley 8eea0575a0 update 1999-03-06 18:38:24 +00:00
Bob Halley 4c1132f344 update copyright 1999-03-06 04:12:06 +00:00
Bob Halley 6d5dcd0dc9 Make multiple build directories work again 1999-02-18 01:24:32 +00:00
Mark Andrews 8d3e74b168 gen to generate dns_rdata{type,class}_{type,class}
dns_rcode_{to,from}text()
	TKEY was missing the Algorithm
1999-02-04 06:38:43 +00:00
Mark Andrews 217f572018 NSAP-PTR Initial implementation.
Modified gen.c to support "-" in class and type names.
1999-02-02 22:34:20 +00:00
Mark Andrews 0c67279acb Added soacount and nscount 1999-01-28 05:03:25 +00:00
Mark Andrews ffe74cc719 Add KEY, SIG and NSAP rdata type. SIG is not complete.
Add master file reader, master.c master.h, incomplete.

	gen.c was not generate correct include file, SWITCHXXX macros were
	being terminated early if last RR type was class specific.

	Added base64 support to rdata.c.
1999-01-27 13:38:21 +00:00
Mark Andrews 4674aca9ba Make names in TYPENAMES / CLASSNAMES uppercase. 1999-01-20 07:14:35 +00:00
Mark Andrews a98551ef59 Implemented dns_rdatatype_fromtext(), dns_rdatatype_totext(),
dns_rdataclass_fromtext() and dns_rdataclass_totext().
1999-01-20 06:51:30 +00:00
Mark Andrews 3d5cad69ec Adjusted error codes.
txt_fromwire() was not coping with a zero length active buffer.
1999-01-20 05:20:24 +00:00
Mark Andrews 3761c43391 Add $Id$'s 1999-01-19 05:38:36 +00:00
Mark Andrews bfb2a81b65 Fix initial towire/fromwire so they work. 1999-01-19 05:16:32 +00:00