From f09e17c3c564e8310125a10c03397cbf473ff643 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 1 Jul 2020 18:03:10 +0200 Subject: Remove $Id$ tags, update URL's, and more - remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers. --- src/Xutf8.h | 117 +++++++++++++++++++++++++++++------------------------------- 1 file changed, 56 insertions(+), 61 deletions(-) (limited to 'src/Xutf8.h') diff --git a/src/Xutf8.h b/src/Xutf8.h index 050226500..207c879b6 100644 --- a/src/Xutf8.h +++ b/src/Xutf8.h @@ -1,5 +1,4 @@ -/* "$Id$" - * +/* * Author: Jean-Marc Lienher ( http://oksid.ch ) * Copyright 2000-2010 by O'ksi'D. * @@ -7,11 +6,11 @@ * the file "COPYING" which should have been included with this file. If this * file is missing or damaged, see the license at: * - * http://www.fltk.org/COPYING.php + * https://www.fltk.org/COPYING.php * - * Please report all bugs and problems on the following page: + * Please see the following page on how to report bugs and issues: * - * http://www.fltk.org/str.php + * https://www.fltk.org/bugs.php */ #if ! ( defined(_Xutf8_h) || defined(FL_DOXYGEN) ) @@ -28,55 +27,55 @@ extern "C" { #include typedef struct { - int nb_font; - char **font_name_list; - int *encodings; - XFontStruct **fonts; - Font fid; - int ascent; - int descent; - int *ranges; + int nb_font; + char **font_name_list; + int *encodings; + XFontStruct **fonts; + Font fid; + int ascent; + int descent; + int *ranges; } XUtf8FontStruct; XUtf8FontStruct * XCreateUtf8FontStruct ( - Display *dpy, - const char *base_font_name_list); + Display *dpy, + const char *base_font_name_list); void XUtf8DrawString( - Display *display, - Drawable d, + Display *display, + Drawable d, XUtf8FontStruct *font_set, - GC gc, - int x, - int y, - const char *string, - int num_bytes); + GC gc, + int x, + int y, + const char *string, + int num_bytes); void XUtf8_measure_extents( - Display *display, - Drawable d, + Display *display, + Drawable d, XUtf8FontStruct *font_set, - GC gc, - int *xx, - int *yy, - int *ww, - int *hh, - const char *string, - int num_bytes); + GC gc, + int *xx, + int *yy, + int *ww, + int *hh, + const char *string, + int num_bytes); void XUtf8DrawRtlString( - Display *display, - Drawable d, + Display *display, + Drawable d, XUtf8FontStruct *font_set, - GC gc, - int x, - int y, - const char *string, - int num_bytes); + GC gc, + int x, + int y, + const char *string, + int num_bytes); void XUtf8DrawImageString( @@ -92,12 +91,12 @@ XUtf8DrawImageString( int XUtf8TextWidth( XUtf8FontStruct *font_set, - const char *string, - int num_bytes); + const char *string, + int num_bytes); int XUtf8UcsWidth( - XUtf8FontStruct *font_set, - unsigned int ucs); + XUtf8FontStruct *font_set, + unsigned int ucs); FL_EXPORT int fl_XGetUtf8FontAndGlyph( @@ -108,40 +107,40 @@ fl_XGetUtf8FontAndGlyph( void XFreeUtf8FontStruct( - Display *dpy, - XUtf8FontStruct *font_set); + Display *dpy, + XUtf8FontStruct *font_set); int XConvertUtf8ToUcs( - const unsigned char *buf, - int len, - unsigned int *ucs); + const unsigned char *buf, + int len, + unsigned int *ucs); int XConvertUcsToUtf8( - unsigned int ucs, - char *buf); + unsigned int ucs, + char *buf); int XUtf8CharByteLen( - const unsigned char *buf, - int len); + const unsigned char *buf, + int len); int XCountUtf8Char( - const unsigned char *buf, - int len); + const unsigned char *buf, + int len); int XFastConvertUtf8ToUcs( - const unsigned char *buf, - int len, - unsigned int *ucs); + const unsigned char *buf, + int len, + unsigned int *ucs); long XKeysymToUcs( - KeySym keysym); + KeySym keysym); #ifdef X_HAVE_UTF8_STRING #define XUtf8LookupString Xutf8LookupString @@ -161,7 +160,3 @@ XUtf8LookupString( # endif #endif - -/* - * End of "$Id$". - */ -- cgit v1.2.3