diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-18 22:46:15 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-18 22:46:15 +0100 |
| commit | dddfec57a1310defead31eee22590c3948984b27 (patch) | |
| tree | 23672cd6ab90b0352c021d278b8ae964349819b7 | |
| parent | a5bad9a39503540dcf4b053d92ff6e911491076e (diff) | |
Fix name clash on some systems (#937)
Rename local function and void using leading underscore.
| -rw-r--r-- | src/Fl_Input.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index 5a225a64e..948354d19 100644 --- a/src/Fl_Input.cxx +++ b/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 |
