Commit 5978f9b1 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in mbstrchr(), make parameter c const

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3257 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 4 deletions
+7 -4
...@@ -7,6 +7,9 @@ CVS code - ...@@ -7,6 +7,9 @@ CVS code -
atom in the default regex string for quotestr, according to atom in the default regex string for quotestr, according to
ASCII. Changes to main(), nano.1, nanorc.5, and ASCII. Changes to main(), nano.1, nanorc.5, and
nanorc.sample. (DLR) nanorc.sample. (DLR)
- chars.c:
mbstrchr()
- Make parameter c const. (DLR)
- winio.c: - winio.c:
edit_scroll() edit_scroll()
- Redraw the lines before and after the scrolled region even if - Redraw the lines before and after the scrolled region even if
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* chars.c * * chars.c *
* * * *
* Copyright (C) 2001-2004 Chris Allegretta * * Copyright (C) 2001-2004 Chris Allegretta *
* Copyright (C) 2005 David Lawrence Ramsey * * Copyright (C) 2005-2006 David Lawrence Ramsey *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) * * the Free Software Foundation; either version 2, or (at your option) *
...@@ -835,7 +835,7 @@ char *revstrpbrk(const char *s, const char *accept, const char ...@@ -835,7 +835,7 @@ char *revstrpbrk(const char *s, const char *accept, const char
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
/* This function is equivalent to strchr() for multibyte strings. */ /* This function is equivalent to strchr() for multibyte strings. */
char *mbstrchr(const char *s, char *c) char *mbstrchr(const char *s, const char *c)
{ {
assert(s != NULL && c != NULL); assert(s != NULL && c != NULL);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* proto.h * * proto.h *
* * * *
* Copyright (C) 1999-2004 Chris Allegretta * * Copyright (C) 1999-2004 Chris Allegretta *
* Copyright (C) 2005 David Lawrence Ramsey * * Copyright (C) 2005-2006 David Lawrence Ramsey *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) * * the Free Software Foundation; either version 2, or (at your option) *
...@@ -201,7 +201,7 @@ char *revstrpbrk(const char *s, const char *accept, const char ...@@ -201,7 +201,7 @@ char *revstrpbrk(const char *s, const char *accept, const char
*rev_start); *rev_start);
#endif #endif
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
char *mbstrchr(const char *s, char *c); char *mbstrchr(const char *s, const char *c);
#ifdef ENABLE_NANORC #ifdef ENABLE_NANORC
bool has_blank_chars(const char *s); bool has_blank_chars(const char *s);
bool has_blank_mbchars(const char *s); bool has_blank_mbchars(const char *s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment