|
|
commit dddfec57a1310defead31eee22590c3948984b27
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Mar 18 22:46:15 2024 +0100
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Mar 18 22:46:15 2024 +0100
Fix name clash on some systems (#937)
Rename local function and void using leading underscore.
src/Fl_Input.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git src/Fl_Input.cxx src/Fl_Input.cxx
index 5a225a6..948354d 100644
--- src/Fl_Input.cxx
+++ src/Fl_Input.cxx
@@ -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
[ Direct Link to Message ] | |
|
| |