]> git.sur5r.net Git - openldap/commitdiff
Remove ldaptcl from distribution. It's not actively maintained.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 12 Mar 2003 19:35:21 +0000 (19:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 12 Mar 2003 19:35:21 +0000 (19:35 +0000)
contrib/README
contrib/ldaptcl/ldaperr.tcl [deleted file]

index 5004d0f01d290b591c1ff0c92a2f1a92e2c34a0c..4ce69223aecf54ae58760c40fdfd2930c0443261 100644 (file)
@@ -15,10 +15,6 @@ Current contributions:
                LDAP SASL auxprop plugin
                Contributed by Symas Corp.
 
-       ldaptcl
-               LDAP TCL API
-               Contributed by NeoSoft
-
 Please submit your contributions using the OpenLDAP Issue Tracking
 System <http://www.openldap.org/>.
 
diff --git a/contrib/ldaptcl/ldaperr.tcl b/contrib/ldaptcl/ldaperr.tcl
deleted file mode 100644 (file)
index e9f8568..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# ldaperr.tcl: scan ldap.h for error return codes for initializing
-# errorCode table.
-#
-
-proc genstrings {path} {
-    set fp [open $path]
-    while {[gets $fp line] != -1 &&
-       ![string match "#define LDAP_SUCCESS*" $line]} { }
-    puts "/* This file automatically generated, hand edit at your own risk! */"
-    puts -nonewline "char *ldaptclerrorcode\[\] = {
-       NULL"
-    while {[gets $fp line] != -1} {
-       if {[clength $line] == 0 || [ctype space $line]} continue
-       if {[string match *typedef* $line]} break
-       if {![string match #define* $line]} continue
-       if {![string match "#define LDAP_*" $line]} continue
-       if {[string match "*LDAP_RANGE*" $line]} continue
-       if {[string match "*LDAP_API_RESULT*" $line]} continue
-       if {[string match {*\\} $line]} {
-           append line [gets $fp]
-       }
-       lassign $line define macro value
-       set ldap_errcode($macro) $value
-    }
-    #parray ldap_errcode
-    foreach i [array names ldap_errcode] {
-       set value $ldap_errcode($i)
-       #puts stderr "checking $value"
-       if [regexp {^[A-Z_]} $value] {
-           if [info exists ldap_errcode($value)] {
-               set value $ldap_errcode($value)
-               set ldap_errcode($i) $value
-           }
-       }
-       set ldap_errname($value) $i
-    }
-    set lasterr 0
-    foreach value [lsort -integer [array names ldap_errname]] {
-       incr lasterr
-       while {$lasterr < $value} {
-           puts -nonewline ",\n\tNULL"
-           incr lasterr
-       }
-       puts -nonewline ",\n\t\"$ldap_errname($value)\""
-    }
-    puts "\n};"
-    puts "#define LDAPTCL_MAXERR\t$value"
-}
-
-#cmdtrace on
-if !$tcl_interactive {
-    genstrings [lindex $argv 0]
-}