slang-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] most 4.9.5 and regexp


Hi list,

My 1st port. Is there any activity here?

Just trying compiling most with SLANG_REGEXP, needed this
litte patch:

--- orig\src\search.c        Tue Jun 08 15:59:22 2004
+++ src\search.c    Sun Aug 01 12:59:47 2004
@@ -330,7 +330,7 @@
         * must be beyond the start of the window), must be a "\n",
         * otherwise do_regexec() isn't called.
         */
-       if ( ((*key != '^') || (linebeg > Most_Win->beg_pos && linebeg[-1] == '\n'))
+       if ( ((*key != '^') || (linebeg > Most_Win->beg_line && linebeg[-1] == '\n'))
            && (match = do_regexec(Most_Case_Sensitive ? linebeg : copy)) )
          {
---------------

But regexp doesn't seem to work okay:
> most.exe +/"return \d" edit.c

Doesn't find "return 1" ("Search failed: return \d"). For the record:
> grep "return [1-9]." edit.c
   return 1;

Did I completely misunderstand the S-Lang extension? It works 
the grep way though.

Compiled with MingW/gcc 3.4.1 on Win-XP.

--gv



_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]