]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
why the const hassle? it breaks in-comment const mentioning, but there probably was...
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Fri, 13 May 2005 11:06:31 +0000 (11:06 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Fri, 13 May 2005 11:06:31 +0000 (11:06 +0000)
doc/doxyparse.pl
ldns/rr.h

index 099f6bfa21c5d5757c24335f33c5d6ea882bb0ec..d1f90154e6ad7bba2129e61381b249bbe57af119 100755 (executable)
@@ -119,10 +119,10 @@ while(<>) {
        }
        if ($state == 2 and /const/) {
                # the const word exists in the function call
-               $const = "const";
-               s/[\t ]*const[\t ]*//;
+               #$const = "const";
+               #s/[\t ]*const[\t ]*//;
        } else {
-               undef $const;
+               #undef $const;
        }
        
        if (/^INLINE/) {
@@ -134,8 +134,7 @@ while(<>) {
                $_ =~ s/{/;/;
        }
        
-#print "line: $_\n";
-       if (/([\w\* ]*)[\t ]+(.*?)\((.*)\)\s*;/ and $state == 2) {
+       if (/([\w\* ]+)[\t ]+(.*?)\((.*)\)\s*;/ and $state == 2) {
                # this should also end the current comment parsing
                $return = $1;
                $key = $2;
index b81d17f330dd47c8324b2ea17f3a4c9fde42be5f..c4bb69d697b4cccffeb06b786cf3eee572961b7d 100644 (file)
--- a/ldns/rr.h
+++ b/ldns/rr.h
@@ -559,7 +559,8 @@ uint8_t ldns_rr_label_count(ldns_rr *rr);
 
 /* todo */
 
-/** returns the resource record descriptor for the given rr type.
+/**
+ * returns the resource record descriptor for the given rr type.
  *
  * \param[in] type the type value of the rr type
  *\return the ldns_rr_descriptor for this type