mirror of
https://github.com/fltk/fltk.git
synced 2026-08-17 16:43:10 +08:00
Remove no longer necessary #include <ctype.h>
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s
... after replacing character class function calls with fl_ascii_*().
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include <FL/Fl_Tooltip.H>
|
||||
#include <FL/fl_draw.H>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include "flstring.h"
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <FL/fl_utf8.h>
|
||||
#include "flstring.h"
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <FL/math.h>
|
||||
#include <FL/Fl_File_Icon.H>
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <map>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <FL/fl_utf8.h>
|
||||
#include "flstring.h"
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#define MAXBUF 1024
|
||||
static int l_secret;
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H"
|
||||
#include "flstring.h"
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
#include "Fl_System_Driver.H"
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "flstring.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
void Fl_Pixmap::measure() {
|
||||
int W, H;
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
#include "Fl_System_Driver.H"
|
||||
#include "flstring.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
/** \class Fl_Shortcut_Button
|
||||
A button that allows the user to type a key combination to create shortcuts.
|
||||
After clicked once, the button catches the following keyboard events and
|
||||
|
||||
+2
-3
@@ -2,7 +2,7 @@
|
||||
// Fl_Terminal - A terminal widget for Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 2022 by Greg Ercolano.
|
||||
// Copyright 2024 by Bill Spitzak and others.
|
||||
// Copyright 2024-2026 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
|
||||
@@ -24,10 +24,9 @@
|
||||
#define NDEBUG // comment out to enable assert()
|
||||
#endif
|
||||
|
||||
#include <ctype.h> // isdigit
|
||||
#include <stdlib.h> // malloc
|
||||
#include <string.h> // strlen
|
||||
#include <stdarg.h> // vprintf, va_list
|
||||
#include <stdarg.h> // va_list
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include <FL/fl_utf8.h>
|
||||
#include <FL/fl_string_functions.h>
|
||||
#include "flstring.h"
|
||||
#include <ctype.h>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Text_Buffer.H>
|
||||
#include <FL/fl_ask.H>
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <FL/fl_string_functions.h> // fl_strdup()
|
||||
#include "flstring.h"
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/platform.H>
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "flstring.h"
|
||||
#include <ctype.h>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Window.H>
|
||||
#include <FL/Fl_Text_Editor.H>
|
||||
|
||||
+1
-3
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Optional argument initialization code for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2024 by Bill Spitzak and others.
|
||||
// Copyright 1998-2026 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
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "Fl_Screen_Driver.H"
|
||||
#include "flstring.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
static int fl_match(const char *a, const char *s, int atleast = 1) {
|
||||
const char *b = s;
|
||||
while (*a && (*a == *b || fl_ascii_tolower(*a) == *b)) {a++; b++;}
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
|
||||
#include <FL/filename.H>
|
||||
#include <ctype.h>
|
||||
|
||||
/**
|
||||
Checks if a string \p s matches a pattern \p p.
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "flstring.h"
|
||||
#include "fl_oxy.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "Fl_Screen_Driver.H"
|
||||
#include <FL/fl_draw.H>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include "flstring.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
# ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
# endif /* HAVE_STRINGS_H */
|
||||
# include <ctype.h>
|
||||
# include <FL/fl_string_functions.h>
|
||||
|
||||
/*
|
||||
|
||||
@@ -22,14 +22,12 @@
|
||||
#include "../Xutf8.h"
|
||||
#include <X11/Xlib.h>
|
||||
#include <FL/fl_string_functions.h> // fl_strdup()
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "../utf8_internal.h"
|
||||
#include "../flstring.h"
|
||||
|
||||
|
||||
/* External auto generated functions : */
|
||||
#include "ucs2fontmap.c"
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user