diff options
| author | Greg Ercolano <erco@seriss.com> | 2024-04-06 23:36:04 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2024-04-06 23:36:04 -0700 |
| commit | 31170c47314a8b71331dd7d63c898478edc98c84 (patch) | |
| tree | d0e5e793358e0d42bad0c7737cf6765a682cc6fa /FL | |
| parent | 2f1b8fc726cf428165c6feeeb9e3b9ab8d403291 (diff) | |
Rename putchar() to plot_char() (#944)
Some old platforms (NetBSD, AIX) implement the common stdio "putchar()"
function as a global macro which poisons the global namespace, preventing
all C and C++ programs from using "putchar()" as a function or method.
There was a long thread about this in fltk.coredev during the period
Mar 25 2024 ~ Apr 4 2024, subject "RFC: Fl_Terminal::putchar() in public API"
as to why we have no choice but to not use putchar() as a method name.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Terminal.H | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Terminal.H b/FL/Fl_Terminal.H index 36dbf3673..3b9b39a86 100644 --- a/FL/Fl_Terminal.H +++ b/FL/Fl_Terminal.H @@ -144,7 +144,7 @@ Single character output can be done with: \par - print_char() to print a single ASCII/UTF-8 char at the cursor - - putchar() to put single ASCII/UTF-8 char at an x,y position + - plot_char() to put single ASCII/UTF-8 char at an x,y position \par \subsection Fl_Terminal_Attributes Text Attributes @@ -1017,8 +1017,8 @@ private: void utf8_cache_flush(void); // API: Character display output public: - void putchar(const char *text, int len, int drow, int dcol); - void putchar(char c, int drow, int dcol); + void plot_char(const char *text, int len, int drow, int dcol); + void plot_char(char c, int drow, int dcol); void print_char(const char *text, int len=-1); void print_char(char c); // API: String display output |
