You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2006/06/04 10:43:49 UTC

svn commit: r411538 - /tomcat/connectors/trunk/jk/native/common/jk_map.c

Author: mturk
Date: Sun Jun  4 01:43:48 2006
New Revision: 411538

URL: http://svn.apache.org/viewvc?rev=411538&view=rev
Log:
Add checking for deprecated directives.
This is TODO, because we would need to pass the
logger to jk_map functions.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_map.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=411538&r1=411537&r2=411538&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Sun Jun  4 01:43:48 2006
@@ -382,6 +382,12 @@
                     v = tmpv;
                 }
                 else {
+                    if (jk_is_deprecated_property(prp)) {
+                        /* TODO: Log deprecated directive.
+                         * It would require to pass the jk_log_t
+                         * to jk_map_ functions.
+                         */    
+                    }
                     v = jk_pool_strdup(&m->p, v);
                 }
                 if (v) {
@@ -421,7 +427,7 @@
             while (NULL != (prp = fgets(buf, LENGTH_OF_LINE, fp))) {
                 trim_prp_comment(prp);
                 if (*prp) {
-                    if ((rc =jk_map_read_property(m, prp)) == JK_FALSE)
+                    if ((rc = jk_map_read_property(m, prp)) == JK_FALSE)
                         break;
                 }
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org