mirror of https://github.com/fltk/fltk
Fix name clash on some systems (#937)
Rename local function and void using leading underscore.
This commit is contained in:
parent
a5bad9a395
commit
dddfec57a1
|
@ -1,7 +1,7 @@
|
|||
//
|
||||
// Input widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2023 by Bill Spitzak and others.
|
||||
// Copyright 1998-2024 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software. Distribution and use rights are outlined in
|
||||
// the file "COPYING" which should have been included with this file. If this
|
||||
|
@ -486,7 +486,7 @@ int Fl_Input::handle_key() {
|
|||
Simple function that determines if a character is a whitespace.
|
||||
\todo This function is not UTF-8-aware.
|
||||
*/
|
||||
static int _isspace(char c) {
|
||||
static int fltk__isspace(char c) {
|
||||
return (c&128 || isspace(c));
|
||||
}
|
||||
|
||||
|
@ -512,12 +512,12 @@ int Fl_Input::handle_rmb() {
|
|||
// if clicked to the right of the line or text end, clear the
|
||||
// selection and set the cursor at the end of the line
|
||||
insert_position(newpos, newpos);
|
||||
} else if (_isspace(index(newpos))) {
|
||||
} else if (fltk__isspace(index(newpos))) {
|
||||
// if clicked into a whitespace, select the entire whitespace
|
||||
oldpos = newpos;
|
||||
while (oldpos > 0 && _isspace(index(oldpos-1))) oldpos--;
|
||||
while (oldpos > 0 && fltk__isspace(index(oldpos-1))) oldpos--;
|
||||
oldmark = newpos+1;
|
||||
while (oldmark < size() && _isspace(index(oldmark))) oldmark++;
|
||||
while (oldmark < size() && fltk__isspace(index(oldmark))) oldmark++;
|
||||
insert_position(oldpos, oldmark);
|
||||
} else {
|
||||
// if clicked on a word, select the entire word
|
||||
|
|
Loading…
Reference in New Issue