coar        97/04/22 08:52:07

  Modified:    src/modules/example  mod_example.c
  Log:
        Add numbering to each entry in the callback trace.  Still
        more memory use than appropriate, but I'm working on that..
  
  Revision  Changes    Path
  1.8       +12 -6     apache/src/modules/example/mod_example.c
  
  Index: mod_example.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/modules/example/mod_example.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -C3 -r1.7 -r1.8
  *** mod_example.c     1997/04/18 18:50:48     1.7
  --- mod_example.c     1997/04/22 15:52:06     1.8
  ***************
  *** 303,314 ****
        addon = pstrcat 
                (
                    subpool,
  !                 "   <DT><SAMP>",
                    note,
  !                 "</SAMP>\n   </DT>\n",
  !                 "   <DD><SAMP>[",
                    where,
  !                 "]</SAMP>\n   </DD>\n",
                    NULL
                );
        sofar = (trace == NULL) ? "" : trace;
  --- 303,320 ----
        addon = pstrcat 
                (
                    subpool,
  !                 "   <LI>\n",
  !                 "    <DL>\n",
  !                 "     <DT><SAMP>",
                    note,
  !                 "</SAMP>\n",
  !                 "     </DT>\n",
  !                 "     <DD><SAMP>[",
                    where,
  !                 "]</SAMP>\n",
  !                 "     </DD>\n",
  !                 "    </DL>\n",
  !                 "   </LI>\n",
                    NULL
                );
        sofar = (trace == NULL) ? "" : trace;
  ***************
  *** 438,444 ****
        rputs ("  The format for the callback trace is:\n", r);
        rputs ("  </P>\n", r);
        rputs ("  <DL>\n", r);
  !     rputs ("   <DT><SAMP>&lt;routine-name&gt;", r);
        rputs ("(&lt;routine-data&gt;)</SAMP>\n", r);
        rputs ("   </DT>\n", r);
        rputs ("   <DD><SAMP>[&lt;applies-to&gt;]</SAMP>\n", r);
  --- 444,450 ----
        rputs ("  The format for the callback trace is:\n", r);
        rputs ("  </P>\n", r);
        rputs ("  <DL>\n", r);
  !     rputs ("   <DT><EM>n</EM>.<SAMP>&lt;routine-name&gt;", r);
        rputs ("(&lt;routine-data&gt;)</SAMP>\n", r);
        rputs ("   </DT>\n", r);
        rputs ("   <DD><SAMP>[&lt;applies-to&gt;]</SAMP>\n", r);
  ***************
  *** 455,461 ****
        rputs ("  indicates a location in the URL or filesystem\n", r);
        rputs ("  namespace.\n", r);
        rputs ("  </P>\n", r);
  !     rprintf (r, "  <H2>Callbacks so far:</H2>\n  <DL>\n%s  </DL>\n", trace);
        rputs ("  <H2>Environment for <EM>this</EM> call:</H2>\n", r);
        rputs ("  <UL>\n", r);
        rprintf (r, "   <LI>Applies-to: <SAMP>%s</SAMP>\n   </LI>\n", cfg->loc);
  --- 461,467 ----
        rputs ("  indicates a location in the URL or filesystem\n", r);
        rputs ("  namespace.\n", r);
        rputs ("  </P>\n", r);
  !     rprintf (r, "  <H2>Callbacks so far:</H2>\n  <OL>\n%s  </OL>\n", trace);
        rputs ("  <H2>Environment for <EM>this</EM> call:</H2>\n", r);
        rputs ("  <UL>\n", r);
        rprintf (r, "   <LI>Applies-to: <SAMP>%s</SAMP>\n   </LI>\n", cfg->loc);
  
  
  

Reply via email to