#257 documentation for pfwrd and pbkwd is wrong

closed
nobody
other (39)
5
2008-11-23
2008-11-15
No

Here is a patch which fixes bad documentation comments of pfwrd and pbkwd.
In addition to that, on http://joe-editor.sourceforge.net/hacking.html
please change this:

pfwrd(p,int n); Move forward n characters

pbkwd(p,int n); Move backward n characters

to this:

pfwrd(p,long n); Move forward n bytes

pbkwd(p,long n); Move backward n bytes

Index: b.c

--- b.c (revision 43)
+++ b.c (working copy)
@@ -828,7 +828,7 @@
}
}

-/* move p n characters forward */
+/* move p n bytes forward */
P *pfwrd(P *p, long n)
{
if (!n)
@@ -909,7 +909,7 @@
}
}

-/* move p n characters backwards */
+/* move p n bytes backwards */
P *pbkwd(P *p, long n)
{
if (!n)

Discussion

  • Joe Allen

    Joe Allen - 2008-11-23

    This is now fixed in CVS.

     
  • Joe Allen

    Joe Allen - 2008-11-23
    • status: open --> closed
     

Log in to post a comment.