OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_script.c versions 1.9 and 1.10
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_script.c 1.9 -> 1.10

--- rc_script.c  2002/08/01 13:25:32     1.9
+++ rc_script.c  2002/08/01 14:31:38     1.10
@@ -144,6 +144,21 @@
     nVecsize *= RC_GOOD_MEASURE; /* Add redundancy factor for error margin */
 /*    pAwesome += RC_GOOD_VIBRATIONS;*/ /* Add good vibes for super action */
 
+    /***********************************************************************/
+    /* Reminder: PCRE writes vectors to help identify substrings           */
+    /*           That means that in the following code we can              */
+    /*           execute a compiled PCRE regex (ab)(\s)(.*)$               */
+    /*                                                                     */
+    /*           piBlocend + pnVec[0] = 'start of whole matched string'    */
+    /*           piBlocend + pnVec[1] = 'end of whole matched string'      */
+    /*           piBlocend + pnVec[2] = 'start of first substring ab'      */
+    /*           piBlocend + pnVec[3] = 'end of first substring ab'        */
+    /*           piBlocend + pnVec[4] = 'start of second substring \s'     */
+    /*           piBlocend + pnVec[5] = 'end of second substring \s'       */
+    /*           piBlocend + pnVec[6] = 'start of third substring .*'      */
+    /*           piBlocend + pnVec[7] = 'end of third substring .*'        */
+    /***********************************************************************/
+
     /* Filter the rc file for the section label, do it here the first time */
     pnVec = calloc(nVecsize, sizeof(int));  /* 2/3 vec 1/3 scrapinfo */
     nFound = pcre_exec(pRegex, pExtra, *pScript,\

CVSTrac 2.0.1