Commit Graph
35 Commits
Author SHA1 Message Date
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence 5f73e025a1 enable ISC_MEM_TRACKLINES gnifty feature 2000-07-26 22:42:43 +00:00
Andreas Gustafsson b6dcb3d243 print_name() formatted text into a buffer of 256
character pointers, not 256 characters; also changed it to
use dns_name_format()
2000-07-21 21:13:40 +00:00
Andreas Gustafsson c3c57248e0 missing NULL initialization 2000-07-21 21:02:15 +00:00
David Lawrence 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence 1b6d529cb5 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.

Several unused functions removed from dispatch_tcp_test.c (left over
from when it was copied from dispatch_test.c).

Minor other ISC style cleanups.
2000-06-01 19:11:07 +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 c90f5e8d1e Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext(). 2000-05-03 21:11:40 +00:00
David Lawrence 6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Bob Halley 41c82f9355 conform to RBT API change 2000-04-19 18:27:24 +00:00
David Lawrence fbfc25874f fixed typo in comment 2000-04-12 21:33:01 +00:00
Michael Graff 4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Bob Halley ca41b452ed update copyrights 2000-02-03 23:08:31 +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
David Lawrence 5d5ea8cf11 more descriptive "nuking" message 1999-10-16 20:35:19 +00:00
Mark Andrews f82c4ea3f5 Adjust reported operation to reflect command performed. "nuck" was
reporting "deleting" not "nuking".
1999-10-13 01:21:58 +00:00
David Lawrence 51e416ea19 print the chain's level_matches and level_count for "c"heck command. 1999-10-12 14:22:31 +00:00
David Lawrence 6a759e3869 use isc_commandline_parse instead of getopt 1999-10-06 20:07:25 +00:00
Bob Halley f74b7e5aae make return type of main() int 1999-07-03 21:15:06 +00:00
David Lawrence 4997d113e1 Don't catenate an absolute name with "." in the detail() function's
check of dns_rbtnodechain_current().
1999-04-23 05:00:38 +00:00
David Lawrence 737807299d added "check" command to test dns_rbt_findnode and dns_rbtnodechain_current.
input can now have comments.
1999-04-16 16:18:01 +00:00
David Lawrence 266655efae When using chains, the foundname does not need to be a fixedname, just
a regular dns_name_t.
1999-04-14 14:24:51 +00:00
David Lawrence 1adfd0a911 Top level tree always has an origin of "." and all names are relative to "."
in it.

chain _first and _last now work.

Other stuff I can't recall.  Lots of little fiddling with chains.
1999-04-14 12:03:18 +00:00
David Lawrence 7bd28cb40b Preliminary testing of new iterator methods. 1999-04-09 15:17:57 +00:00
David Lawrence bbf390959d Test new foundname parameter to dns_rbt_findname. 1999-03-16 16:27:41 +00:00
Bob Halley 20c5672ca6 include unistd.h to get getopt 1999-03-11 20:00:13 +00:00
David Lawrence bfa370f29d Option to show final memory stats (-m). 1999-03-11 19:20:34 +00:00
David Lawrence ec40d2ec68 use dns_rbt_findname instead of dns_rbt_findnode, and adjust tests for
possible return values.
1999-03-04 21:04:33 +00:00
David Lawrence 7f40165c89 include the root label in names that have it, for extra clarity (especially
when the root label is the entire name).
1999-03-03 19:55:03 +00:00
Michael Graff 882350d11c Clean up many compiler warnings. 1999-02-11 06:38:12 +00:00
Bob Halley b5fd61fd19 conforming changes 1999-02-06 01:28:15 +00:00
David Lawrence 0d73b3fffe test the data deleter callback by making the data pointer for each node be
dynamic memory.

have 'search' print the name stored at the node's data pointer.
1999-01-31 16:45:48 +00:00
David Lawrence fbcd8c7a5c delete does not now do recursive deletion.
new function nuke does what delete did.

fixed up some changed interfaces to the dns_rbt library.
1999-01-31 00:54:14 +00:00
David Lawrence 0fb1c498ec Enable the deletion test. 1999-01-27 02:04:28 +00:00
David Lawrence 9e4292a2b4 New rbt_test program for the red/black trees. Sample test instructions
in rbt_test.txt.
1999-01-26 03:30:25 +00:00