summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-06-17 14:41:17 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-06-17 14:41:17 -0700
commitcf49e537014c3cb5aaee07e57400933e0bb72b6b (patch)
treee7b4fb52ba382a4609b7fcd596059b3432b264ec
parentf76fd81dfbbd5cfae75c87ce0511e88e08529cf3 (diff)
Strip whitespace from end of lines in source files
-rw-r--r--configure.ac18
-rw-r--r--include/X11/XKBlib.h24
-rw-r--r--include/X11/Xcms.h8
-rw-r--r--include/X11/Xlib.h90
-rw-r--r--include/X11/Xlibint.h44
-rw-r--r--include/X11/Xregion.h18
-rw-r--r--include/X11/Xresource.h14
-rw-r--r--include/X11/Xutil.h28
-rw-r--r--modules/im/ximcp/imCallbk.c138
-rw-r--r--modules/im/ximcp/imDefFlt.c16
-rw-r--r--modules/im/ximcp/imDefIc.c8
-rw-r--r--modules/im/ximcp/imDefIm.c24
-rw-r--r--modules/im/ximcp/imDefLkup.c8
-rw-r--r--modules/im/ximcp/imDispch.c4
-rw-r--r--modules/im/ximcp/imEvToWire.c32
-rw-r--r--modules/im/ximcp/imExten.c10
-rw-r--r--modules/im/ximcp/imImSw.c18
-rw-r--r--modules/im/ximcp/imInt.c10
-rw-r--r--modules/im/ximcp/imLcFlt.c4
-rw-r--r--modules/im/ximcp/imLcGIc.c4
-rw-r--r--modules/im/ximcp/imLcIc.c4
-rw-r--r--modules/im/ximcp/imLcIm.c28
-rw-r--r--modules/im/ximcp/imLcLkup.c8
-rw-r--r--modules/im/ximcp/imLcPrs.c4
-rw-r--r--modules/im/ximcp/imLcSIc.c4
-rw-r--r--modules/im/ximcp/imRm.c40
-rw-r--r--modules/im/ximcp/imRmAttr.c6
-rw-r--r--modules/im/ximcp/imThaiFlt.c102
-rw-r--r--modules/im/ximcp/imThaiIc.c18
-rw-r--r--modules/im/ximcp/imThaiIm.c18
-rw-r--r--modules/im/ximcp/imTrX.c16
-rw-r--r--modules/im/ximcp/imTrans.c6
-rw-r--r--modules/im/ximcp/imTransR.c4
-rw-r--r--modules/lc/gen/lcGenConv.c102
-rw-r--r--modules/lc/xlocale/lcEuc.c26
-rw-r--r--modules/lc/xlocale/lcJis.c24
-rw-r--r--modules/lc/xlocale/lcSjis.c30
-rw-r--r--modules/om/generic/omGeneric.c104
-rw-r--r--modules/om/generic/omText.c6
-rw-r--r--modules/om/generic/omTextEsc.c2
-rw-r--r--modules/om/generic/omTextPer.c2
-rw-r--r--modules/om/generic/omXChar.c12
-rw-r--r--src/AllPlanes.c10
-rw-r--r--src/ChClMode.c2
-rw-r--r--src/ChKeyCon.c2
-rw-r--r--src/ChProp.c2
-rw-r--r--src/ChkIfEv.c2
-rw-r--r--src/ChkMaskEv.c2
-rw-r--r--src/ChkTypEv.c2
-rw-r--r--src/ChkTypWEv.c2
-rw-r--r--src/ChkWinEv.c2
-rw-r--r--src/ClDisplay.c2
-rw-r--r--src/ClearArea.c2
-rw-r--r--src/ConnDis.c56
-rw-r--r--src/Context.c12
-rw-r--r--src/ConvSel.c2
-rw-r--r--src/CopyArea.c2
-rw-r--r--src/CopyCmap.c2
-rw-r--r--src/CopyGC.c20
-rw-r--r--src/CopyPlane.c4
-rw-r--r--src/CrBFData.c6
-rw-r--r--src/CrCursor.c8
-rw-r--r--src/CrGC.c12
-rw-r--r--src/CrGlCur.c6
-rw-r--r--src/CrPFBData.c8
-rw-r--r--src/CrWindow.c4
-rw-r--r--src/Cursor.c4
-rw-r--r--src/Depths.c2
-rw-r--r--src/DisName.c6
-rw-r--r--src/DrArc.c4
-rw-r--r--src/DrLine.c4
-rw-r--r--src/DrRect.c2
-rw-r--r--src/ErrDes.c12
-rw-r--r--src/ErrHndlr.c10
-rw-r--r--src/EvToWire.c6
-rw-r--r--src/FSWrap.c14
-rw-r--r--src/FetchName.c4
-rw-r--r--src/FillPoly.c2
-rw-r--r--src/FillRct.c4
-rw-r--r--src/FillRcts.c2
-rw-r--r--src/FilterEv.c4
-rw-r--r--src/Font.c10
-rw-r--r--src/FontInfo.c8
-rw-r--r--src/FontNames.c4
-rw-r--r--src/FreeEData.c2
-rw-r--r--src/FreeGC.c2
-rw-r--r--src/FreePix.c4
-rw-r--r--src/Geom.c12
-rw-r--r--src/GetAtomNm.c4
-rw-r--r--src/GetDflt.c8
-rw-r--r--src/GetFProp.c6
-rw-r--r--src/GetGeom.c4
-rw-r--r--src/GetHints.c24
-rw-r--r--src/GetIFocus.c2
-rw-r--r--src/GetImage.c10
-rw-r--r--src/GetKCnt.c2
-rw-r--r--src/GetMoEv.c8
-rw-r--r--src/GetNrmHint.c26
-rw-r--r--src/GetPCnt.c2
-rw-r--r--src/GetPntMap.c4
-rw-r--r--src/GetProp.c14
-rw-r--r--src/GetRGBCMap.c6
-rw-r--r--src/GetSSaver.c4
-rw-r--r--src/GetStCmap.c12
-rw-r--r--src/GetTxtProp.c8
-rw-r--r--src/GetWAttrs.c4
-rw-r--r--src/GetWMCMapW.c8
-rw-r--r--src/GetWMProto.c8
-rw-r--r--src/GrButton.c2
-rw-r--r--src/GrKey.c2
-rw-r--r--src/GrKeybd.c2
-rw-r--r--src/GrPointer.c2
-rw-r--r--src/Host.c4
-rw-r--r--src/Iconify.c8
-rw-r--r--src/IfEvent.c4
-rw-r--r--src/ImText.c4
-rw-r--r--src/ImText16.c4
-rw-r--r--src/ImUtil.c84
-rw-r--r--src/InitExt.c6
-rw-r--r--src/IntAtom.c2
-rw-r--r--src/KeyBind.c148
-rw-r--r--src/KeysymStr.c2
-rw-r--r--src/LiHosts.c14
-rw-r--r--src/LiICmaps.c2
-rw-r--r--src/LoadFont.c2
-rw-r--r--src/LockDis.c2
-rw-r--r--src/Macros.c32
-rw-r--r--src/MaskEvent.c2
-rw-r--r--src/ModMap.c4
-rw-r--r--src/MoveWin.c2
-rw-r--r--src/NextEvent.c6
-rw-r--r--src/OMWrap.c2
-rw-r--r--src/OpenDis.c30
-rw-r--r--src/ParseCmd.c20
-rw-r--r--src/ParseGeom.c12
-rw-r--r--src/PeekEvent.c2
-rw-r--r--src/PolyReg.c78
-rw-r--r--src/PolyTxt.c34
-rw-r--r--src/PolyTxt16.c30
-rw-r--r--src/PropAlloc.c2
-rw-r--r--src/PutBEvent.c4
-rw-r--r--src/PutImage.c18
-rw-r--r--src/QuBest.c2
-rw-r--r--src/QuCurShp.c6
-rw-r--r--src/QuExt.c2
-rw-r--r--src/QuKeybd.c4
-rw-r--r--src/QuPntr.c6
-rw-r--r--src/QuStipShp.c2
-rw-r--r--src/QuTileShp.c4
-rw-r--r--src/QuTree.c2
-rw-r--r--src/Quarks.c10
-rw-r--r--src/RdBitF.c16
-rw-r--r--src/RecolorC.c2
-rw-r--r--src/ReconfWin.c2
-rw-r--r--src/Region.c104
-rw-r--r--src/RegstFlt.c4
-rw-r--r--src/RepWindow.c4
-rw-r--r--src/RestackWs.c4
-rw-r--r--src/RotProp.c2
-rw-r--r--src/SetCRects.c4
-rw-r--r--src/SetClOrig.c2
-rw-r--r--src/SetDashes.c2
-rw-r--r--src/SetHints.c42
-rw-r--r--src/SetIFocus.c2
-rw-r--r--src/SetLocale.c16
-rw-r--r--src/SetNrmHint.c4
-rw-r--r--src/SetPMask.c2
-rw-r--r--src/SetPntMap.c4
-rw-r--r--src/SetRGBCMap.c2
-rw-r--r--src/SetSSaver.c2
-rw-r--r--src/SetStCmap.c10
-rw-r--r--src/SetTxtProp.c8
-rw-r--r--src/SetWMCMapW.c12
-rw-r--r--src/SetWMProto.c12
-rw-r--r--src/StBytes.c8
-rw-r--r--src/StColors.c4
-rw-r--r--src/StName.c4
-rw-r--r--src/StrToText.c4
-rw-r--r--src/Text.c22
-rw-r--r--src/Text16.c22
-rw-r--r--src/TextExt.c8
-rw-r--r--src/TextExt16.c8
-rw-r--r--src/TextToStr.c2
-rw-r--r--src/TrCoords.c6
-rw-r--r--src/UIThrStubs.c14
-rw-r--r--src/UnldFont.c2
-rw-r--r--src/VisUtil.c18
-rw-r--r--src/WMGeom.c14
-rw-r--r--src/WMProps.c16
-rw-r--r--src/WarpPtr.c2
-rw-r--r--src/WinEvent.c2
-rw-r--r--src/Window.c12
-rw-r--r--src/Withdraw.c8
-rw-r--r--src/WrBitF.c2
-rw-r--r--src/Xatomtype.h8
-rw-r--r--src/XlibAsync.c4
-rw-r--r--src/XlibInt.c98
-rw-r--r--src/XomGeneric.h2
-rw-r--r--src/Xrm.c56
-rw-r--r--src/XrmI.h4
-rw-r--r--src/globals.c14
-rw-r--r--src/imConv.c20
-rw-r--r--src/locking.c8
-rw-r--r--src/locking.h2
-rw-r--r--src/os2Stubs.c42
-rw-r--r--src/poly.h12
-rw-r--r--src/udcInf.c22
-rw-r--r--src/x11_trans.c2
-rw-r--r--src/xcb_disp.c2
-rw-r--r--src/xcb_io.c10
-rw-r--r--src/xcms/AddDIC.c6
-rw-r--r--src/xcms/AddSF.c6
-rw-r--r--src/xcms/CCC.c12
-rw-r--r--src/xcms/CvColW.c6
-rw-r--r--src/xcms/CvCols.c16
-rw-r--r--src/xcms/HVC.c20
-rw-r--r--src/xcms/HVCGcC.c18
-rw-r--r--src/xcms/HVCGcV.c20
-rw-r--r--src/xcms/HVCGcVC.c22
-rw-r--r--src/xcms/HVCMnV.c12
-rw-r--r--src/xcms/HVCMxC.c16
-rw-r--r--src/xcms/HVCMxV.c16
-rw-r--r--src/xcms/HVCMxVC.c34
-rw-r--r--src/xcms/HVCMxVs.c12
-rw-r--r--src/xcms/HVCWpAj.c10
-rw-r--r--src/xcms/IdOfPr.c6
-rw-r--r--src/xcms/LRGB.c50
-rw-r--r--src/xcms/Lab.c6
-rw-r--r--src/xcms/LabGcC.c12
-rw-r--r--src/xcms/LabGcL.c12
-rw-r--r--src/xcms/LabGcLC.c14
-rw-r--r--src/xcms/LabMnL.c22
-rw-r--r--src/xcms/LabMxC.c12
-rw-r--r--src/xcms/LabMxL.c20
-rw-r--r--src/xcms/LabMxLC.c34
-rw-r--r--src/xcms/LabWpAj.c6
-rw-r--r--src/xcms/Luv.c10
-rw-r--r--src/xcms/LuvGcC.c12
-rw-r--r--src/xcms/LuvGcL.c12
-rw-r--r--src/xcms/LuvGcLC.c14
-rw-r--r--src/xcms/LuvMnL.c22
-rw-r--r--src/xcms/LuvMxC.c14
-rw-r--r--src/xcms/LuvMxL.c20
-rw-r--r--src/xcms/LuvMxLC.c32
-rw-r--r--src/xcms/LuvWpAj.c6
-rw-r--r--src/xcms/OfCCC.c6
-rw-r--r--src/xcms/PrOfId.c6
-rw-r--r--src/xcms/QBlack.c6
-rw-r--r--src/xcms/QBlue.c6
-rw-r--r--src/xcms/QGreen.c6
-rw-r--r--src/xcms/QRed.c6
-rw-r--r--src/xcms/QWhite.c6
-rw-r--r--src/xcms/QuCol.c6
-rw-r--r--src/xcms/QuCols.c6
-rw-r--r--src/xcms/SetCCC.c6
-rw-r--r--src/xcms/SetGetCols.c10
-rw-r--r--src/xcms/StCol.c6
-rw-r--r--src/xcms/StCols.c6
-rw-r--r--src/xcms/UNDEFINED.c6
-rw-r--r--src/xcms/XRGB.c10
-rw-r--r--src/xcms/XYZ.c6
-rw-r--r--src/xcms/Xcmsint.h6
-rw-r--r--src/xcms/cmsAllCol.c6
-rw-r--r--src/xcms/cmsAllNCol.c8
-rw-r--r--src/xcms/cmsCmap.c8
-rw-r--r--src/xcms/cmsColNm.c14
-rw-r--r--src/xcms/cmsGlobls.c6
-rw-r--r--src/xcms/cmsInt.c10
-rw-r--r--src/xcms/cmsLkCol.c8
-rw-r--r--src/xcms/cmsMath.c4
-rw-r--r--src/xcms/cmsProp.c16
-rw-r--r--src/xcms/cmsTrig.c16
-rw-r--r--src/xcms/uvY.c6
-rw-r--r--src/xcms/xyY.c8
-rw-r--r--src/xkb/XKB.c24
-rw-r--r--src/xkb/XKBAlloc.c28
-rw-r--r--src/xkb/XKBBell.c18
-rw-r--r--src/xkb/XKBBind.c26
-rw-r--r--src/xkb/XKBCompat.c20
-rw-r--r--src/xkb/XKBCtrls.c36
-rw-r--r--src/xkb/XKBCvt.c22
-rw-r--r--src/xkb/XKBExtDev.c30
-rw-r--r--src/xkb/XKBGAlloc.c42
-rw-r--r--src/xkb/XKBGeom.c22
-rw-r--r--src/xkb/XKBGetByName.c16
-rw-r--r--src/xkb/XKBGetMap.c22
-rw-r--r--src/xkb/XKBList.c18
-rw-r--r--src/xkb/XKBMAlloc.c30
-rw-r--r--src/xkb/XKBMisc.c32
-rw-r--r--src/xkb/XKBNames.c28
-rw-r--r--src/xkb/XKBRdBuf.c18
-rw-r--r--src/xkb/XKBSetGeom.c24
-rw-r--r--src/xkb/XKBSetMap.c16
-rw-r--r--src/xkb/XKBUse.c20
-rw-r--r--src/xkb/XKBleds.c24
-rw-r--r--src/xkb/XKBlibint.h22
-rw-r--r--src/xlibi18n/ICWrap.c26
-rw-r--r--src/xlibi18n/IMWrap.c20
-rw-r--r--src/xlibi18n/XDefaultIMIF.c4
-rw-r--r--src/xlibi18n/XDefaultOMIF.c34
-rw-r--r--src/xlibi18n/Xaixlcint.h2
-rw-r--r--src/xlibi18n/XimImSw.h4
-rw-r--r--src/xlibi18n/XimProto.h4
-rw-r--r--src/xlibi18n/XimThai.h30
-rw-r--r--src/xlibi18n/XimTrX.h2
-rw-r--r--src/xlibi18n/XimTrans.h2
-rw-r--r--src/xlibi18n/Ximint.h16
-rw-r--r--src/xlibi18n/XimintL.h18
-rw-r--r--src/xlibi18n/XimintP.h4
-rw-r--r--src/xlibi18n/XlcDL.c12
-rw-r--r--src/xlibi18n/XlcGeneric.h4
-rw-r--r--src/xlibi18n/XlcPubI.h2
-rw-r--r--src/xlibi18n/Xlcint.h38
-rw-r--r--src/xlibi18n/imKStoUCS.c6
-rw-r--r--src/xlibi18n/lcCT.c10
-rw-r--r--src/xlibi18n/lcCharSet.c8
-rw-r--r--src/xlibi18n/lcConv.c4
-rw-r--r--src/xlibi18n/lcDB.c10
-rw-r--r--src/xlibi18n/lcFile.c38
-rw-r--r--src/xlibi18n/lcGeneric.c30
-rw-r--r--src/xlibi18n/lcInit.c2
-rw-r--r--src/xlibi18n/lcPrTxt.c4
-rw-r--r--src/xlibi18n/lcPubWrap.c8
-rw-r--r--src/xlibi18n/lcPublic.c8
-rw-r--r--src/xlibi18n/lcStd.c4
-rw-r--r--src/xlibi18n/lcTxtPr.c4
-rw-r--r--src/xlibi18n/lcUtil.c4
-rw-r--r--src/xlibi18n/lcWrap.c44
-rw-r--r--src/xlibi18n/mbWrap.c14
-rw-r--r--src/xlibi18n/utf8Wrap.c14
-rw-r--r--src/xlibi18n/wcWrap.c14
331 files changed, 2334 insertions, 2334 deletions
diff --git a/configure.ac b/configure.ac
index a5947e2d..ad0e383b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,7 +103,7 @@ if test x$XLIB_LOADABLE_I18N = xyes; then
AC_SUBST(I18N_MODULE_LIBS,'${top_builddir}/src/libX11.la')
fi
AC_MSG_RESULT($XLIB_LOADABLE_I18N)
-
+
AM_CONDITIONAL(XLIB_LOADABLE_I18N, test x$XLIB_LOADABLE_I18N = xyes)
AC_MSG_CHECKING([if loadable Xcursor library support should be enabled])
@@ -117,7 +117,7 @@ if test x$XLIB_LOADABLE_XCURSOR = xyes; then
[Use the X cursor library to load cursors])
fi
AC_MSG_RESULT($XLIB_LOADABLE_XCURSOR)
-
+
# Checks for header files.
AC_HEADER_STDC
dnl AC_CHECK_HEADERS([stdio.h stdlib.h math.h])
@@ -232,7 +232,7 @@ AC_SUBST(KEYSYMDEF)
AM_CONDITIONAL(UDC, test xfalse = xtrue)
-AC_ARG_ENABLE(xcms,
+AC_ARG_ENABLE(xcms,
AC_HELP_STRING([--disable-xcms],
[Disable Xlib support for CMS *EXPERIMENTAL*]),
[XCMS=$enableval],[XCMS=yes])
@@ -275,18 +275,18 @@ if test "x$XF86BIGFONT" = "xyes"; then
AC_SUBST(BIGFONT_LIBS)
fi
-AC_ARG_ENABLE(xkb,
+AC_ARG_ENABLE(xkb,
AC_HELP_STRING([--disable-xkb],
[Disable XKB support *EXPERIMENTAL*]),
[XKB=$enableval],[XKB=yes])
XORG_MANPAGE_SECTIONS
-AC_ARG_ENABLE(man-pages,
- AC_HELP_STRING([--enable-man-pages=section],
+AC_ARG_ENABLE(man-pages,
+ AC_HELP_STRING([--enable-man-pages=section],
[Choose manual section for installing man pages]),
[LIBMAN=$enableval],[LIBMAN=yes])
-
+
if test "x$LIBMAN" != "xyes"; then
LIB_MAN_SUFFIX=$LIBMAN
fi
@@ -308,7 +308,7 @@ AC_SUBST(XKBPROTO_REQUIRES)
AC_FUNC_MMAP()
composecache_default=$ac_cv_func_mmap_fixed_mapped
AC_CHECK_FUNC(nl_langinfo, , [composecache_default=no])
-AC_ARG_ENABLE(composecache,
+AC_ARG_ENABLE(composecache,
AC_HELP_STRING([--disable-composecache],
[Disable compose table cache support]),
[COMPOSECACHE=$enableval],[COMPOSECACHE=$composecache_default])
@@ -382,7 +382,7 @@ XORG_RELEASE_VERSION
AC_OUTPUT([Makefile
include/Makefile
man/Makefile
- man/xkb/Makefile
+ man/xkb/Makefile
src/Makefile
src/util/Makefile
src/xcms/Makefile
diff --git a/include/X11/XKBlib.h b/include/X11/XKBlib.h
index 6a5dc8a7..e5e69b17 100644
--- a/include/X11/XKBlib.h
+++ b/include/X11/XKBlib.h
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -78,7 +78,7 @@ typedef struct _XkbMapNotifyEvent {
KeyCode first_key_act;
KeyCode first_key_behavior;
KeyCode first_key_explicit;
- KeyCode first_modmap_key;
+ KeyCode first_modmap_key;
KeyCode first_vmodmap_key;
int num_key_syms;
int num_key_acts;
@@ -215,7 +215,7 @@ typedef struct _XkbActionMessage {
Bool key_event_follows;/* true if key event also generated */
int group; /* effective group */
unsigned int mods; /* effective mods */
- char message[XkbActionMessageLength+1];
+ char message[XkbActionMessageLength+1];
/* message -- leave space for NUL */
} XkbActionMessageEvent;
@@ -241,8 +241,8 @@ typedef struct _XkbExtensionDeviceNotify {
Time time; /* milliseconds */
int xkb_type; /* XkbExtensionDeviceNotify */
int device; /* device ID */
- unsigned int reason; /* reason for the event */
- unsigned int supported; /* mask of supported features */
+ unsigned int reason; /* reason for the event */
+ unsigned int supported; /* mask of supported features */
unsigned int unsupported; /* mask of unsupported features */
/* that some app tried to use */
int first_btn; /* first button that changed */
diff --git a/include/X11/Xcms.h b/include/X11/Xcms.h
index 779bc52f..26571963 100644
--- a/include/X11/Xcms.h
+++ b/include/X11/Xcms.h
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -252,7 +252,7 @@ typedef void (*XcmsScreenFreeProc)(
* XXX: The use of the XcmsConversionProc type is broken. The
* device-independent colour conversion code uses it as:
-typedef Status (*XcmsConversionProc)(XcmsCCC, XcmsColor *, XcmsColor *,
+typedef Status (*XcmsConversionProc)(XcmsCCC, XcmsColor *, XcmsColor *,
unsigned int);
* while the device-dependent code uses it as:
diff --git a/include/X11/Xlib.h b/include/X11/Xlib.h
index 73cfacda..44557eaa 100644
--- a/include/X11/Xlib.h
+++ b/include/X11/Xlib.h
@@ -1,6 +1,6 @@
/* $XdotOrg: lib/X11/include/X11/Xlib.h,v 1.6 2005-11-08 06:33:25 jkj Exp $ */
/* $Xorg: Xlib.h,v 1.6 2001/02/09 02:03:38 xorgcvs Exp $ */
-/*
+/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
@@ -84,7 +84,7 @@ typedef unsigned long wchar_t;
#if defined(ISC) && defined(USE_XMBTOWC)
#define wctomb(a,b) _Xwctomb(a,b)
-#define mblen(a,b) _Xmblen(a,b)
+#define mblen(a,b) _Xmblen(a,b)
#ifndef USE_XWCHAR_STRING
#define mbtowc(a,b,c) _Xmbtowc(a,b,c)
#endif
@@ -217,10 +217,10 @@ typedef struct {
unsigned long background;/* background pixel */
int line_width; /* line width */
int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
- int cap_style; /* CapNotLast, CapButt,
+ int cap_style; /* CapNotLast, CapButt,
CapRound, CapProjecting */
int join_style; /* JoinMiter, JoinRound, JoinBevel */
- int fill_style; /* FillSolid, FillTiled,
+ int fill_style; /* FillSolid, FillTiled,
FillStippled, FillOpaeueStippled */
int fill_rule; /* EvenOddRule, WindingRule */
int arc_mode; /* ArcChord, ArcPieSlice */
@@ -271,7 +271,7 @@ typedef struct {
/*
* Depth structure; contains information for each possible depth.
- */
+ */
typedef struct {
int depth; /* this depth (Z) of the depth */
int nvisuals; /* number of Visual types at this depth */
@@ -302,7 +302,7 @@ typedef struct {
unsigned long black_pixel; /* White and Black pixel values */
int max_maps, min_maps; /* max and min color maps */
int backing_store; /* Never, WhenMapped, Always */
- Bool save_unders;
+ Bool save_unders;
long root_input_mask; /* initial root input mask */
} Screen;
@@ -425,7 +425,7 @@ typedef struct _XImage {
} f;
} XImage;
-/*
+/*
* Data structure for XReconfigureWindow
*/
typedef struct {
@@ -446,7 +446,7 @@ typedef struct {
char pad;
} XColor;
-/*
+/*
* Data structures for graphics operations. On most machines, these are
* congruent with the wire protocol structures, so reformatting the data
* can be avoided on these architectures.
@@ -458,12 +458,12 @@ typedef struct {
typedef struct {
short x, y;
} XPoint;
-
+
typedef struct {
short x, y;
unsigned short width, height;
} XRectangle;
-
+
typedef struct {
short x, y;
unsigned short width, height;
@@ -522,7 +522,7 @@ typedef struct _XDisplay Display;
struct _XPrivate; /* Forward declare before use for C++ */
struct _XrmHashBucketRec;
-typedef struct
+typedef struct
#ifdef XLIB_ILLEGAL_ACCESS
_XDisplay
#endif
@@ -577,7 +577,7 @@ _XDisplay
/* there is more to this structure, but it is private to Xlib */
}
#ifdef XLIB_ILLEGAL_ACCESS
-Display,
+Display,
#endif
*_XPrivDisplay;
@@ -653,7 +653,7 @@ typedef struct {
int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
int detail;
/*
- * NotifyAncestor, NotifyVirtual, NotifyInferior,
+ * NotifyAncestor, NotifyVirtual, NotifyInferior,
* NotifyNonlinear,NotifyNonlinearVirtual
*/
Bool same_screen; /* same screen flag */
@@ -673,9 +673,9 @@ typedef struct {
NotifyGrab, NotifyUngrab */
int detail;
/*
- * NotifyAncestor, NotifyVirtual, NotifyInferior,
+ * NotifyAncestor, NotifyVirtual, NotifyInferior,
* NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
- * NotifyPointerRoot, NotifyDetailNone
+ * NotifyPointerRoot, NotifyDetailNone
*/
} XFocusChangeEvent;
typedef XFocusChangeEvent XFocusInEvent;
@@ -689,7 +689,7 @@ typedef struct {
Display *display; /* Display the event was read from */
Window window;
char key_vector[32];
-} XKeymapEvent;
+} XKeymapEvent;
typedef struct {
int type;
@@ -977,7 +977,7 @@ typedef struct {
* GenericEvent. This event is the standard event for all newer extensions.
*/
-typedef struct
+typedef struct
{
int type; /* of event. Always GenericEvent */
unsigned long serial; /* # of last request processed */
@@ -1264,7 +1264,7 @@ typedef struct {
typedef unsigned long XIMFeedback;
#define XIMReverse 1L
-#define XIMUnderline (1L<<1)
+#define XIMUnderline (1L<<1)
#define XIMHighlight (1L<<2)
#define XIMPrimary (1L<<5)
#define XIMSecondary (1L<<6)
@@ -1276,11 +1276,11 @@ typedef unsigned long XIMFeedback;
typedef struct _XIMText {
unsigned short length;
XIMFeedback *feedback;
- Bool encoding_is_wchar;
+ Bool encoding_is_wchar;
union {
char *multi_byte;
wchar_t *wide_char;
- } string;
+ } string;
} XIMText;
typedef unsigned long XIMPreeditState;
@@ -1310,11 +1310,11 @@ typedef unsigned long XIMStringConversionFeedback;
typedef struct _XIMStringConversionText {
unsigned short length;
XIMStringConversionFeedback *feedback;
- Bool encoding_is_wchar;
+ Bool encoding_is_wchar;
union {
char *mbs;
wchar_t *wcs;
- } string;
+ } string;
} XIMStringConversionText;
typedef unsigned short XIMStringConversionPosition;
@@ -1336,7 +1336,7 @@ typedef enum {
XIMForwardWord, XIMBackwardWord,
XIMCaretUp, XIMCaretDown,
XIMNextLine, XIMPreviousLine,
- XIMLineStart, XIMLineEnd,
+ XIMLineStart, XIMLineEnd,
XIMAbsolutePosition,
XIMDontChange
} XIMCaretDirection;
@@ -1357,7 +1357,7 @@ typedef struct _XIMPreeditDrawCallbackStruct {
} XIMPreeditDrawCallbackStruct;
typedef enum {
- XIMIsInvisible, /* Disable caret feedback */
+ XIMIsInvisible, /* Disable caret feedback */
XIMIsPrimary, /* UI defined caret feedback */
XIMIsSecondary /* UI defined caret feedback */
} XIMCaretStyle;
@@ -1372,7 +1372,7 @@ typedef enum {
XIMTextType,
XIMBitmapType
} XIMStatusDataType;
-
+
typedef struct _XIMStatusDrawCallbackStruct {
XIMStatusDataType type;
union {
@@ -1450,7 +1450,7 @@ extern XModifierKeymap *XInsertModifiermapEntry(
#else
KeyCode /* keycode_entry */,
#endif
- int /* modifier */
+ int /* modifier */
);
extern XModifierKeymap *XNewModifiermap(
@@ -1496,7 +1496,7 @@ extern XImage *XGetSubImage(
int /* dest_y */
);
-/*
+/*
* X function declarations.
*/
extern Display *XOpenDisplay(
@@ -1529,7 +1529,7 @@ extern Status XGetAtomNames(
extern char *XGetDefault(
Display* /* display */,
_Xconst char* /* program */,
- _Xconst char* /* option */
+ _Xconst char* /* option */
);
extern char *XDisplayName(
_Xconst char* /* string */
@@ -1555,7 +1555,7 @@ extern int (*XSetAfterFunction(
extern Atom XInternAtom(
Display* /* display */,
_Xconst char* /* atom_name */,
- Bool /* only_if_exists */
+ Bool /* only_if_exists */
);
extern Status XInternAtoms(
Display* /* dpy */,
@@ -1572,7 +1572,7 @@ extern Colormap XCreateColormap(
Display* /* display */,
Window /* w */,
Visual* /* visual */,
- int /* alloc */
+ int /* alloc */
);
extern Cursor XCreatePixmapCursor(
Display* /* display */,
@@ -1581,7 +1581,7 @@ extern Cursor XCreatePixmapCursor(
XColor* /* foreground_color */,
XColor* /* background_color */,
unsigned int /* x */,
- unsigned int /* y */
+ unsigned int /* y */
);
extern Cursor XCreateGlyphCursor(
Display* /* display */,
@@ -1618,7 +1618,7 @@ extern Pixmap XCreatePixmap(
Drawable /* d */,
unsigned int /* width */,
unsigned int /* height */,
- unsigned int /* depth */
+ unsigned int /* depth */
);
extern Pixmap XCreateBitmapFromData(
Display* /* display */,
@@ -1665,7 +1665,7 @@ extern Window XCreateWindow(
Visual* /* visual */,
unsigned long /* valuemask */,
XSetWindowAttributes* /* attributes */
-);
+);
extern Colormap *XListInstalledColormaps(
Display* /* display */,
Window /* w */,
@@ -1960,7 +1960,7 @@ extern int XAddHost(
extern int XAddHosts(
Display* /* display */,
XHostAddress* /* hosts */,
- int /* num_hosts */
+ int /* num_hosts */
);
extern int XAddToExtensionList(
@@ -2183,7 +2183,7 @@ extern int XConfigureWindow(
Display* /* display */,
Window /* w */,
unsigned int /* value_mask */,
- XWindowChanges* /* values */
+ XWindowChanges* /* values */
);
extern int XConnectionNumber(
@@ -2269,7 +2269,7 @@ extern int XDestroySubwindows(
);
extern int XDoesBackingStore(
- Screen* /* screen */
+ Screen* /* screen */
);
extern Bool XDoesSaveUnders(
@@ -2554,7 +2554,7 @@ extern int XFreeCursor(
);
extern int XFreeExtensionList(
- char** /* list */
+ char** /* list */
);
extern int XFreeFont(
@@ -2928,7 +2928,7 @@ extern int XPutImage(
int /* dest_x */,
int /* dest_y */,
unsigned int /* width */,
- unsigned int /* height */
+ unsigned int /* height */
);
extern int XQLength(
@@ -3018,7 +3018,7 @@ extern int XQueryTextExtents(
int* /* direction_return */,
int* /* font_ascent_return */,
int* /* font_descent_return */,
- XCharStruct* /* overall_return */
+ XCharStruct* /* overall_return */
);
extern int XQueryTextExtents16(
@@ -3083,7 +3083,7 @@ extern int XRecolorCursor(
);
extern int XRefreshKeyboardMapping(
- XMappingEvent* /* event_map */
+ XMappingEvent* /* event_map */
);
extern int XRemoveFromSaveSet(
@@ -3239,7 +3239,7 @@ extern int XSetFont(
extern int XSetFontPath(
Display* /* display */,
char** /* directories */,
- int /* ndirs */
+ int /* ndirs */
);
extern int XSetForeground(
@@ -3538,7 +3538,7 @@ extern int XWarpPointer(
unsigned int /* src_width */,
unsigned int /* src_height */,
int /* dest_x */,
- int /* dest_y */
+ int /* dest_y */
);
extern int XWidthMMOfScreen(
@@ -3563,7 +3563,7 @@ extern int XWriteBitmapFile(
unsigned int /* width */,
unsigned int /* height */,
int /* x_hot */,
- int /* y_hot */
+ int /* y_hot */
);
extern Bool XSupportsLocale (void);
@@ -3971,7 +3971,7 @@ typedef void (*XConnectionWatchProc)(
Bool /* opening */, /* open or close flag */
XPointer* /* watch_data */ /* open sets, close uses */
);
-
+
extern Status XInternalConnectionNumbers(
Display* /* dpy */,
@@ -3998,7 +3998,7 @@ extern void XRemoveConnectionWatch(
extern void XSetAuthorization(
char * /* name */,
- int /* namelen */,
+ int /* namelen */,
char * /* data */,
int /* datalen */
);
diff --git a/include/X11/Xlibint.h b/include/X11/Xlibint.h
index 8aab764a..5abf5d5a 100644
--- a/include/X11/Xlibint.h
+++ b/include/X11/Xlibint.h
@@ -121,7 +121,7 @@ struct _XDisplay
struct _XExten *ext_procs; /* extensions initialized on this display */
/*
* the following can be fixed size, as the protocol defines how
- * much address space is available.
+ * much address space is available.
* While this could be done using the extension vector, there
* may be MANY events processed, so a search through the extension
* list to find the right procedure for each event might be
@@ -417,7 +417,7 @@ extern LockInfoPtr _Xglobal_lock;
/*
* GetReq - Get the next available X request packet in the buffer and
- * return it.
+ * return it.
*
* "name" is the name of the request, e.g. CreatePixmap, OpenFont, etc.
* "req" is the name of the request pointer.
@@ -474,9 +474,9 @@ extern LockInfoPtr _Xglobal_lock;
/*
- * GetResReq is for those requests that have a resource ID
+ * GetResReq is for those requests that have a resource ID
* (Window, Pixmap, GContext, etc.) as their single argument.
- * "rid" is the name of the resource.
+ * "rid" is the name of the resource.
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
@@ -505,7 +505,7 @@ extern LockInfoPtr _Xglobal_lock;
/*
* GetEmptyReq is for those requests that have no arguments
- * at all.
+ * at all.
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetEmptyReq(name, req) \
@@ -611,7 +611,7 @@ extern void _XFlushGCCache(Display *dpy, GC gc);
* "ptr" is the pointer being assigned to.
* "n" is the number of bytes to allocate.
*
- * Example:
+ * Example:
* xTextElt *elt;
* BufAlloc (xTextElt *, elt, nbytes)
*/
@@ -661,7 +661,7 @@ extern void _XRead32(
(((cs)->rbearing|(cs)->lbearing| \
(cs)->ascent|(cs)->descent) == 0))
-/*
+/*
* CI_GET_CHAR_INFO_1D - return the charinfo struct for the indicated 8bit
* character. If the character is in the column and exists, then return the
* appropriate metrics (note that fonts with common per-character metrics will
@@ -687,7 +687,7 @@ extern void _XRead32(
/*
- * CI_GET_CHAR_INFO_2D - return the charinfo struct for the indicated row and
+ * CI_GET_CHAR_INFO_2D - return the charinfo struct for the indicated row and
* column. This is used for fonts that have more than row zero.
*/
#define CI_GET_CHAR_INFO_2D(fs,row,col,def,cs) \
@@ -1045,7 +1045,7 @@ extern int (*XESetCopyGC(
Display* /* display */,
GC /* gc */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, GC, XExtCodes*
);
@@ -1057,7 +1057,7 @@ extern int (*XESetFlushGC(
Display* /* display */,
GC /* gc */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, GC, XExtCodes*
);
@@ -1069,7 +1069,7 @@ extern int (*XESetFreeGC(
Display* /* display */,
GC /* gc */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, GC, XExtCodes*
);
@@ -1081,7 +1081,7 @@ extern int (*XESetCreateFont(
Display* /* display */,
XFontStruct* /* fs */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, XFontStruct*, XExtCodes*
);
@@ -1093,10 +1093,10 @@ extern int (*XESetFreeFont(
Display* /* display */,
XFontStruct* /* fs */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, XFontStruct*, XExtCodes*
-);
+);
extern int (*XESetCloseDisplay(
Display* /* display */,
@@ -1104,7 +1104,7 @@ extern int (*XESetCloseDisplay(
int (*) (
Display* /* display */,
XExtCodes* /* codes */
- ) /* proc */
+ ) /* proc */
))(
Display*, XExtCodes*
);
@@ -1117,7 +1117,7 @@ extern int (*XESetError(
xError* /* err */,
XExtCodes* /* codes */,
int* /* ret_code */
- ) /* proc */
+ ) /* proc */
))(
Display*, xError*, XExtCodes*, int*
);
@@ -1131,7 +1131,7 @@ extern char* (*XESetErrorString(
XExtCodes* /* codes */,
char* /* buffer */,
int /* nbytes */
- ) /* proc */
+ ) /* proc */
))(
Display*, int, XExtCodes*, char*, int
);
@@ -1155,7 +1155,7 @@ extern Bool (*XESetWireToEvent(
Display* /* display */,
XEvent* /* re */,
xEvent* /* event */
- ) /* proc */
+ ) /* proc */
))(
Display*, XEvent*, xEvent*
);
@@ -1167,7 +1167,7 @@ extern Status (*XESetEventToWire(
Display* /* display */,
XEvent* /* re */,
xEvent* /* event */
- ) /* proc */
+ ) /* proc */
))(
Display*, XEvent*, xEvent*
);
@@ -1179,7 +1179,7 @@ extern Bool (*XESetWireToError(
Display* /* display */,
XErrorEvent* /* he */,
xError* /* we */
- ) /* proc */
+ ) /* proc */
))(
Display*, XErrorEvent*, xError*
);
@@ -1192,7 +1192,7 @@ extern void (*XESetBeforeFlush(
XExtCodes* /* codes */,
_Xconst char* /* data */,
long /* len */
- ) /* proc */
+ ) /* proc */
))(
Display*, XExtCodes*, _Xconst char*, long
);
@@ -1321,7 +1321,7 @@ Status _XGetWindowAttributes(
XWindowAttributes *attr);
int _XPutBackEvent (
- register Display *dpy,
+ register Display *dpy,
register XEvent *event);
_XFUNCPROTOEND
diff --git a/include/X11/Xregion.h b/include/X11/Xregion.h
index 2ddf12ca..aca9e7a5 100644
--- a/include/X11/Xregion.h
+++ b/include/X11/Xregion.h
@@ -28,13 +28,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -69,7 +69,7 @@ typedef struct {
#endif
-/*
+/*
* clip region
*/
@@ -80,13 +80,13 @@ typedef struct _XRegion {
BOX extents;
} REGION;
-/* Xutil.h contains the declaration:
- * typedef struct _XRegion *Region;
- */
+/* Xutil.h contains the declaration:
+ * typedef struct _XRegion *Region;
+ */
/* 1 if two BOXs overlap.
* 0 if two BOXs do not overlap.
- * Remember, x2 and y2 are not in the region
+ * Remember, x2 and y2 are not in the region
*/
#define EXTENTCHECK(r1, r2) \
((r1)->x2 > (r2)->x1 && \
diff --git a/include/X11/Xresource.h b/include/X11/Xresource.h
index ce121374..56cc5adb 100644
--- a/include/X11/Xresource.h
+++ b/include/X11/Xresource.h
@@ -29,13 +29,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -178,7 +178,7 @@ typedef struct _XrmHashBucketRec *XrmDatabase;
extern void XrmDestroyDatabase(
- XrmDatabase /* database */
+ XrmDatabase /* database */
);
extern void XrmQPutResource(
@@ -333,7 +333,7 @@ typedef enum {
XrmoptionResArg, /* Resource and value in next argument in argv */
XrmoptionSkipArg, /* Ignore this option and the next argument in argv */
XrmoptionSkipLine, /* Ignore this option and the rest of argv */
- XrmoptionSkipNArgs /* Ignore this option and the next
+ XrmoptionSkipNArgs /* Ignore this option and the next
OptionDescRes.value arguments in argv */
} XrmOptionKind;
@@ -351,7 +351,7 @@ extern void XrmParseCommand(
int /* table_count */,
_Xconst char* /* name */,
int* /* argc_in_out */,
- char** /* argv_in_out */
+ char** /* argv_in_out */
);
_XFUNCPROTOEND
diff --git a/include/X11/Xutil.h b/include/X11/Xutil.h
index 9f2ef630..9e37c35c 100644
--- a/include/X11/Xutil.h
+++ b/include/X11/Xutil.h
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -55,7 +55,7 @@ SOFTWARE.
#include <X11/Xlib.h>
#include <X11/keysym.h>
-/*
+/*
* Bitmask returned by XParseGeometry(). Each bit tells if the corresponding
* value (x, y, width, height) was found in the parsed string.
*/
@@ -151,7 +151,7 @@ IconPositionHint|IconMaskHint|WindowGroupHint)
/*
- * new structure for manipulating TEXT properties; used with WM_NAME,
+ * new structure for manipulating TEXT properties; used with WM_NAME,
* WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
*/
typedef struct {
@@ -262,16 +262,16 @@ typedef struct _XComposeStatus {
|| ((KeySym)(keysym) == XK_Num_Lock))
#endif
/*
- * opaque reference to Region data type
+ * opaque reference to Region data type
*/
-typedef struct _XRegion *Region;
+typedef struct _XRegion *Region;
/* Return values from XRectInRegion() */
-
+
#define RectangleOut 0
#define RectangleIn 1
#define RectanglePart 2
-
+
/*
* Information used by the visual utility routines to find desired visual
@@ -452,7 +452,7 @@ extern Status XGetStandardColormap(
Display* /* display */,
Window /* w */,
XStandardColormap* /* colormap_return */,
- Atom /* property */
+ Atom /* property */
);
extern Status XGetTextProperty(
@@ -477,7 +477,7 @@ extern Status XGetWMClientMachine(
extern XWMHints *XGetWMHints(
Display* /* display */,
- Window /* w */
+ Window /* w */
);
extern Status XGetWMIconName(
@@ -496,7 +496,7 @@ extern Status XGetWMNormalHints(
Display* /* display */,
Window /* w */,
XSizeHints* /* hints_return */,
- long* /* supplied_return */
+ long* /* supplied_return */
);
extern Status XGetWMSizeHints(
@@ -584,7 +584,7 @@ extern int XSetIconSizes(
Display* /* display */,
Window /* w */,
XIconSize* /* size_list */,
- int /* count */
+ int /* count */
);
extern int XSetNormalHints(
diff --git a/modules/im/ximcp/imCallbk.c b/modules/im/ximcp/imCallbk.c
index 867746cb..f0f4382e 100644
--- a/modules/im/ximcp/imCallbk.c
+++ b/modules/im/ximcp/imCallbk.c
@@ -6,14 +6,14 @@ Copyright 1994 by Sony Corporation
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital, FUJITSU
LIMITED and Sony Corporation not be used in advertising or publicity
pertaining to distribution of the software without specific, written
-prior permission.
+prior permission.
DIGITAL, FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
@@ -30,7 +30,7 @@ PERFORMANCE OF THIS SOFTWARE.
fujiwara@a80.tech.yk.fujitsu.co.jp
Makoto Wakamatsu Sony Corporation
makoto@sm.sony.co.jp
-
+
***********************************************************************/
/* $XFree86: xc/lib/X11/imCallbk.c,v 3.9 2003/08/22 13:29:16 pascal Exp $ */
@@ -70,11 +70,11 @@ extern int _Xmblen ();
#define sz_ximStatusDone 0
typedef enum {
- XimCbSuccess,
- XimCbNoCallback,
- XimCbError,
- XimCbQueued,
- XimCbBadContextID,
+ XimCbSuccess,
+ XimCbNoCallback,
+ XimCbError,
+ XimCbQueued,
+ XimCbBadContextID,
XimCbBadOpcode
} XimCbStatus;
@@ -113,7 +113,7 @@ Private XimCbStatus _XimPreeditStateNotifyCallback(Xim, Xic, char *, int);
#endif
/* NOTE:
- * the table below depends on the protocol number
+ * the table below depends on the protocol number
* defined in the IM Protocol document.
*/
static RConst XimCb callback_table[] = {
@@ -151,11 +151,11 @@ _XimProcessPendingCallbacks(Xic ic)
{
XimPendingCallback pcbq;
- while (((pcbq = ic->private.proto.pend_cb_que) != (XimPendingCallback)NULL)
+ while (((pcbq = ic->private.proto.pend_cb_que) != (XimPendingCallback)NULL)
&& _XimIsReadyForProcess(ic)) {
- (void) (*callback_table[pcbq->major_opcode])(pcbq->im,
- pcbq->ic,
- pcbq->proto,
+ (void) (*callback_table[pcbq->major_opcode])(pcbq->im,
+ pcbq->ic,
+ pcbq->proto,
pcbq->proto_len);
ic->private.proto.pend_cb_que = pcbq->next;
Xfree(pcbq->proto); /* free memory of XimPendingCallback */
@@ -185,9 +185,9 @@ _XimPutCbIntoQueue(Xic ic, XimPendingCallback call_data)
}
Public Bool
-_XimCbDispatch(Xim xim,
- INT16 len,
- XPointer data,
+_XimCbDispatch(Xim xim,
+ INT16 len,
+ XPointer data,
XPointer call_data)
{
/* `data' points to the beginning of the packet defined in IM Protocol doc.
@@ -262,16 +262,16 @@ _XimCbDispatch(Xim xim,
}
Private XimCbStatus
-_XimGeometryCallback(Xim im,
- Xic ic,
- char* proto,
+_XimGeometryCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.geometry_callback;
/* invoke the callack
*/
- if (cb && cb->callback) {
+ if (cb && cb->callback) {
(*cb->callback)((XIC)ic, cb->client_data, (XPointer)NULL);
}
else {
@@ -285,9 +285,9 @@ _XimGeometryCallback(Xim im,
}
Private XimCbStatus
-_XimStrConversionCallback(Xim im,
- Xic ic,
- char* proto,
+_XimStrConversionCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.string_conversion_callback; /* check HM */
@@ -312,10 +312,10 @@ _XimStrConversionCallback(Xim im,
/* no callback registered
*/
- _XimError(im, ic,
- (CARD16)XIM_BadSomething,
- (INT16)len,
- (CARD16)XIM_STR_CONVERSION,
+ _XimError(im, ic,
+ (CARD16)XIM_BadSomething,
+ (INT16)len,
+ (CARD16)XIM_STR_CONVERSION,
(char*)proto); /* send XIM_ERROR */
return XimCbNoCallback;
}
@@ -334,9 +334,9 @@ _XimStrConversionCallback(Xim im,
length_in_bytes = (cbrec.text->encoding_is_wchar)?
sizeof(wchar_t) * cbrec.text->length: /* wchar */
strlen(cbrec.text->string.mbs); /* mb */
- buf_len = XIM_HEADER_SIZE +
+ buf_len = XIM_HEADER_SIZE +
sz_CARD16 +
- 2 + length_in_bytes +
+ 2 + length_in_bytes +
XIM_PAD(2 + length_in_bytes) +
2 + 2 + sz_CARD32 * cbrec.text->length;
buf = (CARD8*)Xmalloc(buf_len);
@@ -368,9 +368,9 @@ _XimStrConversionCallback(Xim im,
}
Private XimCbStatus
-_XimPreeditStartCallback(Xim im,
- Xic ic,
- char* proto,
+_XimPreeditStartCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.preedit_attr.start_callback;
@@ -383,12 +383,12 @@ _XimPreeditStartCallback(Xim im,
}
else {
- /* no callback registered
+ /* no callback registered
*/
- _XimError(im, ic,
- (CARD16)XIM_BadSomething,
- (INT16)len,
- (CARD16)XIM_PREEDIT_START,
+ _XimError(im, ic,
+ (CARD16)XIM_BadSomething,
+ (INT16)len,
+ (CARD16)XIM_PREEDIT_START,
(char*)proto); /* send XIM_ERROR */
return XimCbNoCallback;
}
@@ -417,9 +417,9 @@ _XimPreeditStartCallback(Xim im,
}
Private XimCbStatus
-_XimPreeditDoneCallback(Xim im,
- Xic ic,
- char* proto,
+_XimPreeditDoneCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.preedit_attr.done_callback;
@@ -440,8 +440,8 @@ _XimPreeditDoneCallback(Xim im,
}
Private void
-_read_text_from_packet(Xim im,
- char* buf,
+_read_text_from_packet(Xim im,
+ char* buf,
XIMText** text_ptr)
{
int status;
@@ -471,8 +471,8 @@ _read_text_from_packet(Xim im,
tmp_buf[tmp_len] = '\0';
text->encoding_is_wchar = False;
- text->length = im->methods->ctstombs((XIM)im,
- tmp_buf, tmp_len,
+ text->length = im->methods->ctstombs((XIM)im,
+ tmp_buf, tmp_len,
NULL, 0, &s); /* CT? HM */
if (s != XLookupNone) {
#ifndef NO_DEC_I18N_FIX
@@ -489,12 +489,12 @@ _read_text_from_packet(Xim im,
int char_len;
#endif
tmp = im->methods->ctstombs((XIM)im,
- tmp_buf, tmp_len,
+ tmp_buf, tmp_len,
#ifndef NO_DEC_I18N_FIX
text->string.multi_byte,
text->length * XLC_PUBLIC(im->core.lcd,mb_cur_max) + 1,
#else
- text->string.multi_byte, text->length,
+ text->string.multi_byte, text->length,
#endif
&s);
text->string.multi_byte[tmp] = '\0';
@@ -538,7 +538,7 @@ _read_text_from_packet(Xim im,
i -= sz_CARD32;
j++;
}
- /*
+ /*
* text->length tells how long both the status string and
* the feedback array are. If there's "no string" the
* text->length was set to zero previously. See above.
@@ -567,9 +567,9 @@ _free_memory_for_text(XIMText* text)
}
Private XimCbStatus
-_XimPreeditDrawCallback(Xim im,
- Xic ic,
- char* proto,
+_XimPreeditDrawCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.preedit_attr.draw_callback;
@@ -598,8 +598,8 @@ _XimPreeditDrawCallback(Xim im,
}
Private XimCbStatus
-_XimPreeditCaretCallback(Xim im,
- Xic ic,
+_XimPreeditCaretCallback(Xim im,
+ Xic ic,
char* proto,
int len)
{
@@ -617,12 +617,12 @@ _XimPreeditCaretCallback(Xim im,
}
else {
- /* no callback registered
+ /* no callback registered
*/
- _XimError(im, ic,
- (CARD16)XIM_BadSomething,
- (INT16)len,
- (CARD16)XIM_PREEDIT_CARET,
+ _XimError(im, ic,
+ (CARD16)XIM_BadSomething,
+ (INT16)len,
+ (CARD16)XIM_PREEDIT_CARET,
(char*)proto); /* send XIM_ERROR */
return XimCbNoCallback;
}
@@ -650,9 +650,9 @@ _XimPreeditCaretCallback(Xim im,
}
Private XimCbStatus
-_XimStatusStartCallback(Xim im,
- Xic ic,
- char* proto,
+_XimStatusStartCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.status_attr.start_callback;
@@ -673,9 +673,9 @@ _XimStatusStartCallback(Xim im,
}
Private XimCbStatus
-_XimStatusDoneCallback(Xim im,
- Xic ic,
- char* proto,
+_XimStatusDoneCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.status_attr.done_callback;
@@ -696,9 +696,9 @@ _XimStatusDoneCallback(Xim im,
}
Private XimCbStatus
-_XimStatusDrawCallback(Xim im,
- Xic ic,
- char* proto,
+_XimStatusDrawCallback(Xim im,
+ Xic ic,
+ char* proto,
int len)
{
XICCallback* cb = &ic->core.status_attr.draw_callback;
@@ -737,7 +737,7 @@ _XimPreeditStateNotifyCallback( Xim im, Xic ic, char* proto, int len )
/* invoke the callack
*/
- if( cb && cb->callback ) {
+ if( cb && cb->callback ) {
XIMPreeditStateNotifyCallbackStruct cbrec;
cbrec.state = *(BITMASK32 *)proto;
diff --git a/modules/im/ximcp/imDefFlt.c b/modules/im/ximcp/imDefFlt.c
index ccf3ba34..685d5156 100644
--- a/modules/im/ximcp/imDefFlt.c
+++ b/modules/im/ximcp/imDefFlt.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -264,7 +264,7 @@ _XimFilterKeyrelease(
return _XimProtoKeyreleaseFilter((Xic)client_data, (XKeyEvent *)ev);
}
-Private void
+Private void
_XimRegisterKeyPressFilter(
Xic ic)
{
@@ -281,7 +281,7 @@ _XimRegisterKeyPressFilter(
return;
}
-Private void
+Private void
_XimRegisterKeyReleaseFilter(
Xic ic)
{
@@ -298,7 +298,7 @@ _XimRegisterKeyReleaseFilter(
return;
}
-Private void
+Private void
_XimUnregisterKeyPressFilter(
Xic ic)
{
@@ -314,7 +314,7 @@ _XimUnregisterKeyPressFilter(
return;
}
-Private void
+Private void
_XimUnregisterKeyReleaseFilter(
Xic ic)
{
@@ -383,7 +383,7 @@ _XimFilterServerDestroy(
return True;
}
-Public void
+Public void
_XimRegisterServerFilter(
Xim im)
{
@@ -402,7 +402,7 @@ _XimRegisterServerFilter(
return;
}
-Public void
+Public void
_XimUnregisterServerFilter(
Xim im)
{
diff --git a/modules/im/ximcp/imDefIc.c b/modules/im/ximcp/imDefIc.c
index c04744bb..36ab1016 100644
--- a/modules/im/ximcp/imDefIc.c
+++ b/modules/im/ximcp/imDefIc.c
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -918,7 +918,7 @@ _XimProtoSetFocus(
CARD8 *buf = (CARD8 *)buf32;
CARD16 *buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE];
INT16 len;
-
+
#ifndef XIM_CONNECTABLE
if (!IS_IC_CONNECTED(ic))
return;
@@ -997,7 +997,7 @@ _XimProtoUnsetFocus(
_XimFlush(im);
UNMARK_FOCUSED(ic);
-
+
_XimUnregisterFilter(ic);
return;
}
@@ -1317,7 +1317,7 @@ _XimDelayModeCreateIC(
XimDefICValues ic_values;
int len;
XIMStyle input_style;
-
+
bzero((char *)&ic_values, sizeof(XimDefICValues));
_XimGetCurrentICValues(ic, &ic_values);
if (!(_XimGetInputStyle(values, &input_style)))
diff --git a/modules/im/ximcp/imDefIm.c b/modules/im/ximcp/imDefIm.c
index 4ce03baa..8cc56f54 100644
--- a/modules/im/ximcp/imDefIm.c
+++ b/modules/im/ximcp/imDefIm.c
@@ -13,7 +13,7 @@ Corporation not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
Sun Microsystems, Inc., FUJITSU LIMITED and Sony Corporation makes no
representations about the suitability of this software for any purpose. It
-is provided "as is" without express or implied warranty.
+is provided "as is" without express or implied warranty.
Sun Microsystems Inc., FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
@@ -22,10 +22,10 @@ FUJITSU LIMITED AND SONY CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
-OF THIS SOFTWARE.
+OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Makoto Wakamatsu Sony Corporation
makoto@sm.sony.co.jp
@@ -109,7 +109,7 @@ _XimCheckServerName(
if(strncmp(str, XIM_SERVER_CATEGORY, category_len))
return False;
-
+
pp = &str[category_len];
for(;;) {
@@ -145,7 +145,7 @@ _XimCheckLocaleName(
if(strncmp(address, XIM_LOCAL_CATEGORY, category_len))
return (char*)NULL;
-
+
pp = &address[category_len];
for(;;) {
@@ -182,7 +182,7 @@ _XimCheckTransport(
if(strncmp(address, XIM_TRANSPORT_CATEGORY, category_len))
return False;
-
+
pp = &address[category_len];
for(;;) {
@@ -257,7 +257,7 @@ _XimPreConnectionIM(
Xim im,
Atom selection)
{
- Display *display = im->core.display;
+ Display *display = im->core.display;
Atom locales, transport;
char *address;
XLCd lcd;
@@ -367,14 +367,14 @@ Error:
if( locale_name[i] != NULL )
XFree( locale_name[i] );
XDestroyWindow(display, window);
- return False;
+ return False;
}
Private Bool
_XimPreConnect(
Xim im)
{
- Display *display = im->core.display;
+ Display *display = im->core.display;
Atom imserver;
Atom actual_type;
int actual_format;
@@ -389,7 +389,7 @@ _XimPreConnect(
return False;
if(XGetWindowProperty(display, RootWindow(display, 0),
- imserver, 0L, 1000000L, False, XA_ATOM, &actual_type,
+ imserver, 0L, 1000000L, False, XA_ATOM, &actual_type,
&actual_format, &nitems, &bytes_after,
&prop_return) != Success)
return False;
@@ -684,7 +684,7 @@ _XimConnection(
}
}
- if (!( buf_s[0] == im->private.proto.protocol_major_version
+ if (!( buf_s[0] == im->private.proto.protocol_major_version
&& buf_s[1] == im->private.proto.protocol_minor_version)) {
if(reply != preply)
Xfree(preply);
@@ -918,7 +918,7 @@ _XimClose(
buf_s[1] = 0; /* unused */
len = sizeof(CARD16) /* sizeof imid */
+ sizeof(CARD16); /* sizeof unused */
-
+
_XimSetHeader((XPointer)buf, XIM_CLOSE, 0, &len);
if (!(_XimWrite(im, len, (XPointer)buf)))
return False;
diff --git a/modules/im/ximcp/imDefLkup.c b/modules/im/ximcp/imDefLkup.c
index 66e4add4..7909e937 100644
--- a/modules/im/ximcp/imDefLkup.c
+++ b/modules/im/ximcp/imDefLkup.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -222,7 +222,7 @@ _XimRespSyncReply(
else
_XimProcSyncReply(ic->core.im, ic);
}
-
+
return True;
}
@@ -938,7 +938,7 @@ _Ximctstowcs(
/* Reset the converter. The CompoundText at 'from' starts in
initial state. */
_XlcResetConverter(conv);
-
+
from_left = from_len;
to_left = BUFSIZ;
from_cnvlen = 0;
diff --git a/modules/im/ximcp/imDispch.c b/modules/im/ximcp/imDispch.c
index c0c4bc72..b79df4ad 100644
--- a/modules/im/ximcp/imDispch.c
+++ b/modules/im/ximcp/imDispch.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/modules/im/ximcp/imEvToWire.c b/modules/im/ximcp/imEvToWire.c
index f407296d..0849115a 100644
--- a/modules/im/ximcp/imEvToWire.c
+++ b/modules/im/ximcp/imEvToWire.c
@@ -4,13 +4,13 @@ Copyright 1993 by Digital Equipment Corporation, Maynard, Massachusetts,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -59,14 +59,14 @@ _XimProtoEventToWire(
event->u.keyButtonPointer.root = sw32(ev->root, sw);
event->u.keyButtonPointer.event =
sw32(ev->window, sw);
- event->u.keyButtonPointer.child =
+ event->u.keyButtonPointer.child =
sw32(ev->subwindow, sw);
event->u.keyButtonPointer.time = sw32(ev->time, sw);
event->u.keyButtonPointer.eventX = sw16(ev->x, sw) ;
event->u.keyButtonPointer.eventY = sw16(ev->y, sw) ;
event->u.keyButtonPointer.rootX =
sw16(ev->x_root, sw);
- event->u.keyButtonPointer.rootY =
+ event->u.keyButtonPointer.rootY =
sw16(ev->y_root, sw);
event->u.keyButtonPointer.state = sw16(ev->state, sw);
event->u.keyButtonPointer.sameScreen = ev->same_screen;
@@ -143,7 +143,7 @@ _XimProtoEventToWire(
{
register XKeymapEvent *ev = (XKeymapEvent *) re;
memcpy((char *)(((xKeymapEvent *) event)->map),
- &ev->key_vector[1],
+ &ev->key_vector[1],
sizeof (((xKeymapEvent *) event)->map));
}
break;
@@ -360,12 +360,12 @@ _XimProtoEventToWire(
case ClientMessage:
{
register int i;
- register XClientMessageEvent *ev
+ register XClientMessageEvent *ev
= (XClientMessageEvent *) re;
event->u.clientMessage.window = sw32(ev->window, sw);
event->u.u.detail = ev->format;
switch (ev->format) {
- case 8:
+ case 8:
event->u.clientMessage.u.b.type = sw32(ev->message_type, sw);
for (i = 0; i < 20; i++)
event->u.clientMessage.u.b.bytes[i] = ev->data.b[i];
@@ -405,7 +405,7 @@ _XimProtoEventToWire(
event->u.mappingNotify.count = ev->count;
}
break;
-
+
default:
return(0);
}
@@ -433,7 +433,7 @@ _XimProtoWireToEvent(
((XAnyEvent *)re)->serial = sw16(event->u.u.sequenceNumber, sw);
((XAnyEvent *)re)->send_event = ((event->u.u.type & 0x80) != 0);
((XAnyEvent *)re)->display = NULL;
-
+
/* Ignore the leading bit of the event type since it is set when a
client sends an event rather than the server. */
@@ -502,7 +502,7 @@ _XimProtoWireToEvent(
ev->y_root = cvtINT16toInt(sw16(event->u.enterLeave.rootY, sw));
ev->state = sw16(event->u.enterLeave.state, sw);
ev->mode = event->u.enterLeave.mode;
- ev->same_screen = (event->u.enterLeave.flags &
+ ev->same_screen = (event->u.enterLeave.flags &
ELFlagSameScreen) && True;
ev->focus = (event->u.enterLeave.flags &
ELFlagFocus) && True;
@@ -522,7 +522,7 @@ _XimProtoWireToEvent(
{
register XKeymapEvent *ev = (XKeymapEvent *) re;
ev->window = None;
- memcpy(&ev->key_vector[1],
+ memcpy(&ev->key_vector[1],
(char *)((xKeymapEvent *) event)->map,
sizeof (((xKeymapEvent *) event)->map));
}
@@ -740,14 +740,14 @@ _XimProtoWireToEvent(
case ClientMessage:
{
register int i;
- register XClientMessageEvent *ev
+ register XClientMessageEvent *ev
= (XClientMessageEvent *) re;
ev->window = sw32(event->u.clientMessage.window, sw);
ev->format = event->u.u.detail;
switch (ev->format) {
- case 8:
+ case 8:
ev->message_type = sw32(event->u.clientMessage.u.b.type, sw);
- for (i = 0; i < 20; i++)
+ for (i = 0; i < 20; i++)
ev->data.b[i] = event->u.clientMessage.u.b.bytes[i];
break;
case 16:
diff --git a/modules/im/ximcp/imExten.c b/modules/im/ximcp/imExten.c
index 15569150..ea598e35 100644
--- a/modules/im/ximcp/imExten.c
+++ b/modules/im/ximcp/imExten.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -60,7 +60,7 @@ typedef struct _XIM_QueryExtRec {
Private XIM_QueryExtRec extensions[] = {
{False, "XIM_EXT_SET_EVENT_MASK", 0, 0, 0,
- XIM_EXT_SET_EVENT_MASK_IDX},
+ XIM_EXT_SET_EVENT_MASK_IDX},
#ifdef EXT_FORWARD
{False, "XIM_EXT_FORWARD_KEYEVENT", 0, 0, 0,
XIM_EXT_FORWARD_KEYEVENT_IDX},
@@ -225,7 +225,7 @@ _XimExtForwardKeyEvent(
Xim im = (Xim) ic->core.im;
CARD32 buf32[BUFSIZE/4];
CARD8 *buf = (CARD8 *)buf32;
- CARD8 *buf_b = &buf[XIM_HEADER_SIZE];
+ CARD8 *buf_b = &buf[XIM_HEADER_SIZE];
CARD16 *buf_s = (CARD16 *)buf_b;
CARD32 *buf_l = (CARD32 *)buf_b;
CARD32 reply32[BUFSIZE/4];
@@ -385,7 +385,7 @@ _XimParseExtensionList(
+ sizeof(CARD8) /* sizeof minor_opcode */
+ sizeof(INT16) /* sizeof length */
+ XIM_PAD(len); /* sizeof pad */
- buf += len;
+ buf += len;
}
return True;
diff --git a/modules/im/ximcp/imImSw.c b/modules/im/ximcp/imImSw.c
index e2c113b2..a03d2c95 100644
--- a/modules/im/ximcp/imImSw.c
+++ b/modules/im/ximcp/imImSw.c
@@ -16,17 +16,17 @@ makes no representations about the suitability of this software for
any purpose. It is provided "as is" without express or implied
warranty.
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
+ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Franky Ling Digital Equipment Corporation
frankyling@hgrd01.enet.dec.com
diff --git a/modules/im/ximcp/imInt.c b/modules/im/ximcp/imInt.c
index c759cf37..c4b177b2 100644
--- a/modules/im/ximcp/imInt.c
+++ b/modules/im/ximcp/imInt.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -63,7 +63,7 @@ _XimSetIMStructureList(
}
}
if(i >= _XimCurrentIMcount) {
- if(!(xim = (Xim *)Xrealloc(_XimCurrentIMlist,
+ if(!(xim = (Xim *)Xrealloc(_XimCurrentIMlist,
((i + 1) * sizeof(Xim)))))
return False;
_XimCurrentIMlist = xim;
@@ -157,7 +157,7 @@ _XimStrstr(
register const char *dest)
{
int len;
-
+
len = strlen(dest);
while((src = strchr(src, *dest))) {
if(!strncmp(src, dest, len))
@@ -207,7 +207,7 @@ _XimOpenIM(
{
Xim im;
register int i;
-
+
if (!(im = (Xim)Xmalloc(sizeof(XimRec))))
return (XIM)NULL;
bzero(im, sizeof(XimRec));
diff --git a/modules/im/ximcp/imLcFlt.c b/modules/im/ximcp/imLcFlt.c
index 3b8f69e7..ca0dd463 100644
--- a/modules/im/ximcp/imLcFlt.c
+++ b/modules/im/ximcp/imLcFlt.c
@@ -8,7 +8,7 @@ Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
-in supporting documentation, and that the name of Fuji Xerox,
+in supporting documentation, and that the name of Fuji Xerox,
FUJITSU LIMITED not be used in advertising or publicity pertaining
to distribution of the software without specific, written prior
permission. Fuji Xerox, FUJITSU LIMITED make no representations
@@ -25,7 +25,7 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Author : Kazunori Nishihara Fuji Xerox
- Modifier : Takashi Fujiwara FUJITSU LIMITED
+ Modifier : Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/modules/im/ximcp/imLcGIc.c b/modules/im/ximcp/imLcGIc.c
index e4f89a0f..59ea833f 100644
--- a/modules/im/ximcp/imLcGIc.c
+++ b/modules/im/ximcp/imLcGIc.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/modules/im/ximcp/imLcIc.c b/modules/im/ximcp/imLcIc.c
index fd6a4e1f..2d325d25 100644
--- a/modules/im/ximcp/imLcIc.c
+++ b/modules/im/ximcp/imLcIc.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/modules/im/ximcp/imLcIm.c b/modules/im/ximcp/imLcIm.c
index b1bbce5b..3744e7ea 100644
--- a/modules/im/ximcp/imLcIm.c
+++ b/modules/im/ximcp/imLcIm.c
@@ -16,17 +16,17 @@ makes no representations about the suitability of this software for
any purpose. It is provided "as is" without express or implied
warranty.
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
+ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Franky Ling Digital Equipment Corporation
frankyling@hgrd01.enet.dec.com
@@ -366,7 +366,7 @@ Private int _XimCachedFileName (
else
sprintf (*res, "%s%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(),
XIM_CACHE_VERSION, sizeof (DefTree), hash, hash2);
-
+
/* fprintf (stderr, "-> %s\n", *res); */
if ( (fd = _XOpenFile (*res, O_RDONLY)) == -1)
return -1;
@@ -417,7 +417,7 @@ Private int _XimCachedFileName (
return -1;
}
munmap (m, sizeof (struct _XimCacheStruct));
-
+
return fd;
}
@@ -555,7 +555,7 @@ _XimCreateDefaultTree(
tmpname = name = _XlcFileName(im->core.lcd, COMPOSE_FILE);
}
intname = name;
-
+
#ifdef COMPOSECACHE
if (getuid () == euid && getgid () == egid && euid != 0) {
char *c;
@@ -591,7 +591,7 @@ _XimCreateDefaultTree(
Xfree (cachename);
cachename = NULL;
}
-
+
if (getuid () == euid && getgid () == egid && euid != 0 && home) {
if (! cachedir) {
@@ -635,7 +635,7 @@ _XimCreateDefaultTree(
_XimWriteCachedDefaultTree (intname, encoding, cachename, im);
}
#endif
-
+
if (tmpcachedir)
Xfree (tmpcachedir);
if (tmpname)
diff --git a/modules/im/ximcp/imLcLkup.c b/modules/im/ximcp/imLcLkup.c
index b6a6ff60..e952b5b5 100644
--- a/modules/im/ximcp/imLcLkup.c
+++ b/modules/im/ximcp/imLcLkup.c
@@ -17,7 +17,7 @@ It is provided "as is" without express or implied warranty.
FUJI XEROX, FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL FUJI XEROX,
+MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL FUJI XEROX,
FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
@@ -25,7 +25,7 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Author: Kazunori Nishihara Fuji Xerox
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -63,7 +63,7 @@ _XimLocalMbLookupString(xic, ev, buffer, bytes, keysym, status)
if(status) *status = XLookupNone;
return(0);
}
- if(ev->keycode == 0 &&
+ if(ev->keycode == 0 &&
( (ic->private.local.composed != 0)
||(ic->private.local.brl_committed != 0))) {
if (ic->private.local.brl_committed != 0) { /* Braille Event */
@@ -386,7 +386,7 @@ _XimLcctstowcs(xim, from, from_len, to, to_len, state)
/* Reset the converter. The CompoundText at 'from' starts in
initial state. */
_XlcResetConverter(conv);
-
+
from_left = from_len;
to_left = BUFSIZ;
from_cnvlen = 0;
diff --git a/modules/im/ximcp/imLcPrs.c b/modules/im/ximcp/imLcPrs.c
index 42f8f2a2..29ed1890 100644
--- a/modules/im/ximcp/imLcPrs.c
+++ b/modules/im/ximcp/imLcPrs.c
@@ -404,7 +404,7 @@ get_mb_string (Xim im, char *buf, KeySym ks)
return len;
}
-#define AllMask (ShiftMask | LockMask | ControlMask | Mod1Mask)
+#define AllMask (ShiftMask | LockMask | ControlMask | Mod1Mask)
#define LOCAL_WC_BUFSIZE 128
#define LOCAL_UTF8_BUFSIZE 256
#define SEQUENCE_MAX 10
@@ -445,7 +445,7 @@ parseline(
do {
token = nexttoken(fp, tokenbuf, &lastch);
} while (token == ENDOFLINE);
-
+
if (token == ENDOFFILE) {
return(-1);
}
diff --git a/modules/im/ximcp/imLcSIc.c b/modules/im/ximcp/imLcSIc.c
index a32211ce..6a7a0be8 100644
--- a/modules/im/ximcp/imLcSIc.c
+++ b/modules/im/ximcp/imLcSIc.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/modules/im/ximcp/imRm.c b/modules/im/ximcp/imRm.c
index f6599eb6..e6ca30fa 100644
--- a/modules/im/ximcp/imRm.c
+++ b/modules/im/ximcp/imRm.c
@@ -24,7 +24,7 @@ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Makoto Wakamatsu Sony Corporation
makoto@sm.sony.co.jp
@@ -98,11 +98,11 @@ _XimSetProtoResource(im)
else res_class = Xmalloc (strlen (im->core.res_class) + 50);
/* pretend malloc always works */
- (void) sprintf (res_name, "%s%s%s",
+ (void) sprintf (res_name, "%s%s%s",
im->core.res_name != NULL ? im->core.res_name : "*",
im->core.res_name != NULL ? dotximdot : ximdot,
"useAuth");
- (void) sprintf (res_class, "%s%s%s",
+ (void) sprintf (res_class, "%s%s%s",
im->core.res_class != NULL ? im->core.res_class : "*",
im->core.res_class != NULL ? dotXimdot : Ximdot,
"UseAuth");
@@ -113,11 +113,11 @@ _XimSetProtoResource(im)
}
}
- (void) sprintf (res_name, "%s%s%s",
+ (void) sprintf (res_name, "%s%s%s",
im->core.res_name != NULL ? im->core.res_name : "*",
im->core.res_name != NULL ? dotximdot : ximdot,
"delaybinding");
- (void) sprintf (res_class, "%s%s%s",
+ (void) sprintf (res_class, "%s%s%s",
im->core.res_class != NULL ? im->core.res_class : "*",
im->core.res_class != NULL ? dotXimdot : Ximdot,
"Delaybinding");
@@ -128,11 +128,11 @@ _XimSetProtoResource(im)
}
}
- (void) sprintf (res_name, "%s%s%s",
+ (void) sprintf (res_name, "%s%s%s",
im->core.res_name != NULL ? im->core.res_name : "*",
im->core.res_name != NULL ? dotximdot : ximdot,
"reconnect");
- (void) sprintf (res_class, "%s%s%s",
+ (void) sprintf (res_class, "%s%s%s",
im->core.res_class != NULL ? im->core.res_class : "*",
im->core.res_class != NULL ? dotXimdot : Ximdot,
"Reconnect");
@@ -149,11 +149,11 @@ _XimSetProtoResource(im)
return;
}
- (void) sprintf (res_name, "%s%s%s",
+ (void) sprintf (res_name, "%s%s%s",
im->core.res_name != NULL ? im->core.res_name : "*",
im->core.res_name != NULL ? dotximdot : ximdot,
"preeditDefaultStyle");
- (void) sprintf (res_class, "%s%s%s",
+ (void) sprintf (res_class, "%s%s%s",
im->core.res_class != NULL ? im->core.res_class : "*",
im->core.res_class != NULL ? dotXimdot : Ximdot,
"PreeditDefaultStyle");
@@ -172,11 +172,11 @@ _XimSetProtoResource(im)
if(!preedit_style)
preedit_style = XIMPreeditNothing;
- (void) sprintf (res_name, "%s%s%s",
+ (void) sprintf (res_name, "%s%s%s",
im->core.res_name != NULL ? im->core.res_name : "*",
im->core.res_name != NULL ? dotximdot : ximdot,
"statusDefaultStyle");
- (void) sprintf (res_class, "%s%s%s",
+ (void) sprintf (res_class, "%s%s%s",
im->core.res_class != NULL ? im->core.res_class : "*",
im->core.res_class != NULL ? dotXimdot : Ximdot,
"StatusDefaultStyle");
@@ -628,7 +628,7 @@ _XimDefaultColormap(
&win_attr) == (Status)NULL) {
return True;
}
-
+
out = (Colormap *)((char *)top + info->offset);
*out = win_attr.colormap;
return True;
@@ -1096,7 +1096,7 @@ _XimDecodeStyles(
if(num >0) {
out->count_styles = (unsigned short)num;
out->supported_styles = (XIMStyle *)((char *)tmp + sizeof(XIMStyles));
-
+
for(i = 0; i < num; i++) {
out->supported_styles[i] = styles->supported_styles[i];
}
@@ -1135,7 +1135,7 @@ _XimDecodeValues(
if(num) {
out->count_values = (unsigned short)num;
out->supported_values = (char **)((char *)tmp + sizeof(XIMValuesList));
-
+
for(i = 0; i < num; i++) {
out->supported_values[i] = values_list->supported_values[i];
}
@@ -2267,13 +2267,13 @@ _XimSetIMValueData(
if(!(res = _XimGetResourceListRec(res_list, list_num, p->name))) {
return p->value;
}
- check = _XimCheckIMMode(res, XIM_SETIMVALUES);
+ check = _XimCheckIMMode(res, XIM_SETIMVALUES);
if(check == XIM_CHECK_INVALID) {
continue;
} else if (check == XIM_CHECK_ERROR) {
return p->value;
}
-
+
if(!_XimEncodeLocalIMAttr(res, top, p->value)) {
return p->value;
}
@@ -2297,13 +2297,13 @@ _XimGetIMValueData(
if(!(res = _XimGetResourceListRec(res_list, list_num, p->name))) {
return p->value;
}
- check = _XimCheckIMMode(res, XIM_GETIMVALUES);
+ check = _XimCheckIMMode(res, XIM_GETIMVALUES);
if(check == XIM_CHECK_INVALID) {
continue;
} else if (check == XIM_CHECK_ERROR) {
return p->value;
}
-
+
if(!_XimDecodeLocalIMAttr(res, top, p->value)) {
return p->value;
}
@@ -2632,7 +2632,7 @@ _XimSetLocalIMDefaults(
for(i = 0; i < num; i++) {
if((res = _XimGetResourceListRecByQuark( res_list, list_num,
- info[i].quark)) == (XIMResourceList)NULL) {
+ info[i].quark)) == (XIMResourceList)NULL) {
return False;
}
@@ -2977,7 +2977,7 @@ _XimDecodeAttr(
if(!info[i].decode) {
return False;
}
- return (*info[i].decode)(&info[i], top, val);
+ return (*info[i].decode)(&info[i], top, val);
}
}
return False;
diff --git a/modules/im/ximcp/imRmAttr.c b/modules/im/ximcp/imRmAttr.c
index af4db3db..b749a949 100644
--- a/modules/im/ximcp/imRmAttr.c
+++ b/modules/im/ximcp/imRmAttr.c
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -459,7 +459,7 @@ _XimDecodeIMATTRIBUTE(
if (total < min_len)
return p->name;
- if (!(_XimAttributeToValue((Xic) im->private.local.current_ic,
+ if (!(_XimAttributeToValue((Xic) im->private.local.current_ic,
res, &buf[2], buf[1], p->value, mode)))
return p->name;
}
diff --git a/modules/im/ximcp/imThaiFlt.c b/modules/im/ximcp/imThaiFlt.c
index ac851963..77da54ed 100644
--- a/modules/im/ximcp/imThaiFlt.c
+++ b/modules/im/ximcp/imThaiFlt.c
@@ -28,13 +28,13 @@ Copyright 1993 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -48,20 +48,20 @@ SOFTWARE.
/* $XFree86: xc/lib/X11/imThaiFlt.c,v 3.22tsi Exp $ */
/*
-**++
-** FACILITY:
-**
-** Xlib
-**
-** ABSTRACT:
-**
+**++
+** FACILITY:
+**
+** Xlib
+**
+** ABSTRACT:
+**
** Thai specific functions.
** Handles character classifications, composibility checking,
** Input sequence check and other Thai specific requirements
** according to WTT specification and DEC extensions.
-**
-** MODIFICATION HISTORY:
-**
+**
+** MODIFICATION HISTORY:
+**
**/
#ifdef HAVE_CONFIG_H
@@ -318,17 +318,17 @@ THAI_istone (unsigned char ch)
Private Bool
THAI_iscomposible (
- unsigned char follow_ch,
+ unsigned char follow_ch,
unsigned char lead_ch)
{/* "Can follow_ch be put in the same display cell as lead_ch?" */
- return (write_rules_lookup[THAI_chtype(lead_ch)][THAI_chtype(follow_ch)]
+ return (write_rules_lookup[THAI_chtype(lead_ch)][THAI_chtype(follow_ch)]
== CP);
}
Private Bool
THAI_isaccepted (
- unsigned char follow_ch,
+ unsigned char follow_ch,
unsigned char lead_ch,
unsigned char mode)
{
@@ -337,11 +337,11 @@ THAI_isaccepted (
switch (mode)
{
case WTT_ISC1:
- iskeyvalid =
+ iskeyvalid =
(wtt_isc1_lookup[THAI_chtype(lead_ch)][THAI_chtype(follow_ch)] != RJ);
break;
case WTT_ISC2:
- iskeyvalid =
+ iskeyvalid =
(wtt_isc2_lookup[THAI_chtype(lead_ch)][THAI_chtype(follow_ch)] != RJ);
break;
case THAICAT_ISC:
@@ -357,15 +357,15 @@ THAI_isaccepted (
}
#ifdef UNUSED
-Private void
+Private void
THAI_apply_write_rules(
- unsigned char *instr,
- unsigned char *outstr,
- unsigned char insert_ch,
+ unsigned char *instr,
+ unsigned char *outstr,
+ unsigned char insert_ch,
int *num_insert_ch)
{
/*
-Input parameters:
+Input parameters:
instr - input string
insert_ch specify what char to be added when invalid composition is found
Output parameters:
@@ -389,8 +389,8 @@ Output parameters:
*out_ch++ = *lead_ch;
while (*follow_ch != '\0') /* more char in string to check */
{
- if (THAI_isdead(*follow_ch) &&
- !THAI_iscomposible(*follow_ch,*lead_ch))
+ if (THAI_isdead(*follow_ch) &&
+ !THAI_iscomposible(*follow_ch,*lead_ch))
{
*out_ch++ = SPACE;
(*num_insert_ch)++;
@@ -403,9 +403,9 @@ Output parameters:
}
}
-Private int
+Private int
THAI_find_chtype (
- unsigned char *instr,
+ unsigned char *instr,
int chtype)
{
/*
@@ -423,7 +423,7 @@ Output parameters:
case DEAD:
for (i = 0; *instr != '\0' && THAI_isdead(*instr); i++, instr++)
;
- if (*instr != '\0') position = i;
+ if (*instr != '\0') position = i;
break;
default:
break;
@@ -432,12 +432,12 @@ Output parameters:
}
-Private int
+Private int
THAI_apply_scm(
- unsigned char *instr,
- unsigned char *outstr,
- unsigned char spec_ch,
- int num_sp,
+ unsigned char *instr,
+ unsigned char *outstr,
+ unsigned char spec_ch,
+ int num_sp,
unsigned char insert_ch)
{
unsigned char *scan, *outch;
@@ -452,7 +452,7 @@ THAI_apply_scm(
if (THAI_isdead(*scan))
dead_count++; /* count number of non-spacing char */
if (*scan == spec_ch)
- if (!isconsecutive)
+ if (!isconsecutive)
found_count++; /* count number consecutive spec char found */
*outch++ = *scan++;
if (found_count == num_sp) {
@@ -474,7 +474,7 @@ Private void SetLed(Display *dpy, int num, int state);
Private CARD8 FindKeyCode();
-/* The following functions are specific to this module */
+/* The following functions are specific to this module */
Private int XThaiTranslateKey();
Private int XThaiTranslateKeySym();
@@ -794,12 +794,12 @@ XThaiTranslateKey(
}
/*
* ThaiCat keyboard support :
- * When the Shift and Thai keys are hold for some keys a 'Thai Compose'
+ * When the Shift and Thai keys are hold for some keys a 'Thai Compose'
* character code is generated which is different from column 3 and
- * 4 of the keymap.
+ * 4 of the keymap.
* Since we don't know whether ThaiCat keyboard or WTT keyboard is
* in use, the same mapping is done for all Thai input.
- * We just arbitary choose to use column 3 keysyms as the indices of
+ * We just arbitary choose to use column 3 keysyms as the indices of
* this mapping.
* When the control key is also hold, this mapping has no effect.
*/
@@ -817,7 +817,7 @@ XThaiTranslateKey(
return 1;
}
-/*
+/*
* XThaiTranslateKeySym
*
* Translate KeySym to TACTIS code output.
@@ -836,7 +836,7 @@ XThaiTranslateKeySym(
int nbytes)
{
KeySym ckey = 0;
- register struct _XKeytrans *p;
+ register struct _XKeytrans *p;
int length;
unsigned long hiBytes;
register unsigned char c;
@@ -913,8 +913,8 @@ XThaiTranslateKeySym(
}
/*
* ThaiCat has a key that generates two TACTIS codes D1 & E9.
- * It is represented by the latin-1 keysym XK_thorn (0xfe).
- * If c is XK_thorn, this key is pressed and it is converted to
+ * It is represented by the latin-1 keysym XK_thorn (0xfe).
+ * If c is XK_thorn, this key is pressed and it is converted to
* 0xd1 0xe9.
*/
if (c == XK_thorn) {
@@ -940,7 +940,7 @@ FindKeyCode(
register KeySym code)
{
- register KeySym *kmax = dpy->keysyms +
+ register KeySym *kmax = dpy->keysyms +
(dpy->max_keycode - dpy->min_keycode + 1) * dpy->keysyms_per_keycode;
register KeySym *k = dpy->keysyms;
while (k < kmax) {
@@ -990,8 +990,8 @@ ComputeMaskFromKeytrans(
*
*
* Compose handling routines - compose handlers 0,1,2
- *
- *
+ *
+ *
************************************************************************/
#define NORMAL_KEY_STATE 0
@@ -1087,7 +1087,7 @@ int tactis_code;
hi_digit = ks1 - XK_a + 10;
else /* out of range */
return NoSymbol;
-
+
if ((ks2 >= XK_0) && (ks2 <= XK_9))
lo_digit = ks2 - XK_0;
else if ((ks2 >= XK_A) && (ks2 <= XK_F))
@@ -1156,7 +1156,7 @@ void SetLed(
#endif
/*
- * Initialize ISC mode from im modifier
+ * Initialize ISC mode from im modifier
*/
Private void InitIscMode(Xic ic)
{
@@ -1187,7 +1187,7 @@ Private void InitIscMode(Xic ic)
return;
}
-
+
/*
* Helper functions for _XimThaiFilter()
*/
@@ -1285,7 +1285,7 @@ XPointer client_data;
IsMiscFunctionKey(symbol) ||
IsFunctionKey(symbol))))
{
- IC_ClearPreviousChar(ic);
+ IC_ClearPreviousChar(ic);
return False;
}
if (((symbol >> 8 == 0xFF) &&
@@ -1304,7 +1304,7 @@ XPointer client_data;
return False;
/*
- * Hex input method processing
+ * Hex input method processing
*/
thai_part = &ic->private.local.thai;
diff --git a/modules/im/ximcp/imThaiIc.c b/modules/im/ximcp/imThaiIc.c
index 73cf7f1e..2b644bc7 100644
--- a/modules/im/ximcp/imThaiIc.c
+++ b/modules/im/ximcp/imThaiIc.c
@@ -16,17 +16,17 @@ makes no representations about the suitability of this software for
any purpose. It is provided "as is" without express or implied
warranty.
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
+ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Franky Ling Digital Equipment Corporation
frankyling@hgrd01.enet.dec.com
diff --git a/modules/im/ximcp/imThaiIm.c b/modules/im/ximcp/imThaiIm.c
index cc0f4a29..a80a02a6 100644
--- a/modules/im/ximcp/imThaiIm.c
+++ b/modules/im/ximcp/imThaiIm.c
@@ -16,17 +16,17 @@ makes no representations about the suitability of this software for
any purpose. It is provided "as is" without express or implied
warranty.
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
+ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Franky Ling Digital Equipment Corporation
frankyling@hgrd01.enet.dec.com
diff --git a/modules/im/ximcp/imTrX.c b/modules/im/ximcp/imTrX.c
index 5076839d..08309bfb 100644
--- a/modules/im/ximcp/imTrX.c
+++ b/modules/im/ximcp/imTrX.c
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -105,12 +105,12 @@ _XimXFilterWaitEvent(
spec->ev = (XPointer)ev;
ret = _XimFilterWaitEvent(im);
- /*
+ /*
* If ev is a pointer to a stack variable, there could be
* a coredump later on if the pointer is dereferenced.
* Therefore, reset to NULL to force reinitialization in
* _XimXRead().
- *
+ *
* Keep in mind _XimXRead may be called again when the stack
* is very different.
*/
@@ -198,7 +198,7 @@ _XimXConnect(Xim im)
((major_code == 2) && (minor_code == 1))) {
spec->BoundarySize = (CARD32)event.xclient.data.l[3];
}
-
+
/* ClientMessage Event Filter */
_XRegisterFilterByType(im->core.display, spec->lib_connect_wid,
ClientMessage, ClientMessage,
@@ -238,7 +238,7 @@ _NewAtom(
}
Private Bool
-_XimXWrite(Xim im, INT16 len, XPointer data)
+_XimXWrite(Xim im, INT16 len, XPointer data)
{
Atom atom;
char atomName[16];
@@ -365,7 +365,7 @@ _XimXGetReadData(
&prop_ret);
XChangeProperty(im->core.display, spec->lib_connect_wid, prop,
XA_STRING, 8, PropModePrepend, &prop_ret[length],
- (nitems - length));
+ (nitems - length));
}
} else {
(void)memcpy(buf, prop_ret, buf_len);
@@ -380,7 +380,7 @@ _XimXGetReadData(
&type_ret, &format_ret, &nitems, &bytes_after_ret, &prop_ret);
}
XChangeProperty(im->core.display, spec->lib_connect_wid, prop,
- XA_STRING, 8, PropModePrepend, &prop_ret[buf_len], len);
+ XA_STRING, 8, PropModePrepend, &prop_ret[buf_len], len);
event->xclient.data.l[0] = (long)len;
event->xclient.data.l[1] = (long)prop;
XPutBackEvent(im->core.display, event);
@@ -405,7 +405,7 @@ _XimXGetReadData(
*ret_len = buf_len;
len = nitems - buf_len;
XChangeProperty(im->core.display, spec->lib_connect_wid, prop,
- XA_STRING, 8, PropModePrepend, &prop_ret[buf_len], len);
+ XA_STRING, 8, PropModePrepend, &prop_ret[buf_len], len);
}
XFree(prop_ret);
}
diff --git a/modules/im/ximcp/imTrans.c b/modules/im/ximcp/imTrans.c
index cb17ca06..f9f5d884 100644
--- a/modules/im/ximcp/imTrans.c
+++ b/modules/im/ximcp/imTrans.c
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -98,8 +98,8 @@ _XimTransConnect(
_XRegisterFilterByType(im->core.display, window, KeyPress, KeyPress,
_XimTransFilterWaitEvent, (XPointer)im);
- return _XRegisterInternalConnection(im->core.display, spec->fd,
- (_XInternalConnectionProc)_XimTransInternalConnection,
+ return _XRegisterInternalConnection(im->core.display, spec->fd,
+ (_XInternalConnectionProc)_XimTransInternalConnection,
(XPointer)im);
}
diff --git a/modules/im/ximcp/imTransR.c b/modules/im/ximcp/imTransR.c
index 5ca4a39c..44d043fa 100644
--- a/modules/im/ximcp/imTransR.c
+++ b/modules/im/ximcp/imTransR.c
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
@@ -39,7 +39,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Ximint.h"
Public TransportSW _XimTransportRec[] = {
- { "X", _XimXConf }, /* 1st entry must be X.
+ { "X", _XimXConf }, /* 1st entry must be X.
This will be a fallback */
#ifdef TCPCONN
{ "tcp", _XimTransConf }, /* use X transport lib */
diff --git a/modules/lc/gen/lcGenConv.c b/modules/lc/gen/lcGenConv.c
index 96b17b83..8276bb3b 100644
--- a/modules/lc/gen/lcGenConv.c
+++ b/modules/lc/gen/lcGenConv.c
@@ -32,7 +32,7 @@
*
*/
/*
- * 2000
+ * 2000
* Modifier: Ivan Pascal The XFree86 Project
*/
/* $XFree86: xc/lib/X11/lcGenConv.c,v 3.27tsi Exp $ */
@@ -201,7 +201,7 @@ mb_to_gi(
return(mb_tmp);
}
- if (codeset->side == XlcC0 || codeset->side == XlcGL ||
+ if (codeset->side == XlcC0 || codeset->side == XlcGL ||
codeset->side == XlcC1 || codeset->side == XlcGR) {
for (i = 0; i < codeset->length; i++)
@@ -283,7 +283,7 @@ wc_to_gi(
wc = wc & ~wc_encode_mask;
for (*glyph_index = 0, i = (*codeset)->length - 1; i >= 0; i--)
- *glyph_index = (*glyph_index << 8) |
+ *glyph_index = (*glyph_index << 8) |
( ((unsigned long)wc >> (i * wc_shift_bits)) & mask );
return(True);
@@ -302,7 +302,7 @@ mb_parse_codeset(
ParseInfo *mb_parse_list = XLC_GENERIC(state->lcd, mb_parse_list);
ParseInfo parse_info;
CodeSet codeset;
-
+
for (--num ; (parse_info = mb_parse_list[num]) != NULL; num++) {
len = compare(src, parse_info->encoding, from_len);
if (len > 0) {
@@ -344,7 +344,7 @@ byteM_parse_codeset(
continue;
for (j = 0; j < codeset->length; j++) {
- ch = *((unsigned char *)(inbufptr + j));
+ ch = *((unsigned char *)(inbufptr + j));
byteM_rec = byteM[j];
byteinfo = byteM_rec.byteinfo;
@@ -365,7 +365,7 @@ byteM_parse_codeset(
}
return(NULL);
-}
+}
#define GLGR_parse_codeset(ch) \
(isrightside(ch) ? (state->GR_codeset) : \
@@ -430,7 +430,7 @@ ct_parse_csi(
if ( !(*ctr_seq_len = strlen(directionality_data[i].encoding)) )
continue;
- if ( strncmp(inbufptr, directionality_data[i].encoding,
+ if ( strncmp(inbufptr, directionality_data[i].encoding,
*ctr_seq_len) == 0)
return(True);
}
@@ -573,7 +573,7 @@ segment_conversion(
range = segment_conv[i].range;
if (*glyph_index < range.start || range.end < *glyph_index)
return(True);
-
+
*charset = segment_conv[i].dest;
conv_rec.conv_num = segment_conv[i].conv_num;
conv_rec.convlist = segment_conv[i].conv;
@@ -801,7 +801,7 @@ mbstowcs_org(
continue;
}
}
-
+
/* next mb char data for byteM ? */
if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1))))
goto next_mb_char;
@@ -809,7 +809,7 @@ mbstowcs_org(
/* next mb char data for GL or GR side ? */
if ((codeset = GLGR_parse_codeset(ch)))
goto next_mb_char;
-
+
/* can't find codeset for the ch */
unconv_num++;
continue;
@@ -878,7 +878,7 @@ stdc_mbstowcs(
/* null ? */
src++;
src_left--;
- if (dst)
+ if (dst)
*dst++ = L'\0';
dst_left--;
}
@@ -918,7 +918,7 @@ wcstombs_org(
const wchar_t *inbufptr = (const wchar_t *) *from;
char *outbufptr = *to;
int from_size = *from_left;
-
+
const char *default_string = XLC_PUBLIC(lcd, default_string);
int defstr_len = strlen(default_string);
@@ -1033,14 +1033,14 @@ stdc_wcstombs(
if (length > 0) {
src++;
src_left--;
- if (dst)
+ if (dst)
dst += length;
dst_left -= length;
} else if (length < 0) {
src++;
src_left--;
unconv_num++;
- }
+ }
}
*from = (XPointer) src;
@@ -1119,7 +1119,7 @@ wcstocts(
* +-----+-----+-----+-----+-----+-----+-----+---- ----+-----+-----+
* | esc sequence | M | L | encoding name | STX |
* +-----+-----+-----+-----+-----+-----+-----+---- ----+-----+-----+
- * 4bytes 1byte 1byte variable length 1byte
+ * 4bytes 1byte 1byte variable length 1byte
* | |
* +-----------------------------------------+
* name length = ((M - 128) * 128) + (L - 128)
@@ -1147,7 +1147,7 @@ wcstocts(
*ext_seg_len = i % 128 + 128;
ext_seg_len = NULL;
}
-
+
if (*to_left < total_len + 1) {
unconv_num++;
break;
@@ -1221,14 +1221,14 @@ stdc_wcstocts(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = stdc_wcstombs(conv,
+ unconv_num1 = stdc_wcstombs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = buf_ptr1 - buf_ptr2;
- unconv_num2 = mbstocts(conv,
+ unconv_num2 = mbstocts(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -1321,25 +1321,25 @@ ctstowcs(
/* escape sequence ? */
if (ch == ESC) {
- if ( !ct_parse_charset(lcd,
+ if ( !ct_parse_charset(lcd,
inbufptr - 1, &state->charset, &ctr_seq_len) )
goto skip_the_seg;
- if (state->charset->side == XlcC0 ||
+ if (state->charset->side == XlcC0 ||
state->charset->side == XlcGL)
{
state->GL_charset = state->charset;
}
- else if (state->charset->side == XlcC1 ||
+ else if (state->charset->side == XlcC1 ||
state->charset->side == XlcGR)
{
state->GR_charset = state->charset;
- }
+ }
else if (state->charset->side == XlcGLGR)
{
state->GL_charset = state->charset;
state->GR_charset = state->charset;
- }
+ }
if (*from_left + 1 < ctr_seq_len) {
inbufptr--;
@@ -1353,7 +1353,7 @@ ctstowcs(
*from_left -= (ctr_seq_len - 1);
continue;
- }
+ }
/* check current state */
if (isleftside(ch))
@@ -1380,7 +1380,7 @@ output_one_wc:
segment_conversion(lcd, &charset_tmp, &glyph_index);
/* get codeset */
- if ( !_XlcGetCodeSetFromCharSet(lcd, charset_tmp,
+ if ( !_XlcGetCodeSetFromCharSet(lcd, charset_tmp,
&codeset, &glyph_index) ) {
unconv_num += gi_len;
continue;
@@ -1499,7 +1499,7 @@ cstowcs(
segment_conversion(lcd, &charset_tmp, &glyph_index);
/* get codeset */
- if ( !_XlcGetCodeSetFromCharSet(lcd, charset_tmp,
+ if ( !_XlcGetCodeSetFromCharSet(lcd, charset_tmp,
&codeset, &glyph_index) ) {
unconv_num += gi_len;
continue;
@@ -1544,14 +1544,14 @@ stdc_ctstowcs(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = ctstombs(conv,
+ unconv_num1 = ctstombs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = buf_ptr1 - buf_ptr2;
- unconv_num2 = stdc_mbstowcs(conv,
+ unconv_num2 = stdc_mbstowcs(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -1580,14 +1580,14 @@ stdc_cstowcs(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = cstombs(conv,
+ unconv_num1 = cstombs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = buf_ptr1 - buf_ptr2;
- unconv_num2 = stdc_mbstowcs(conv,
+ unconv_num2 = stdc_mbstowcs(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -1616,14 +1616,14 @@ mbstocts(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = mbstowcs_org(conv,
+ unconv_num1 = mbstowcs_org(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = (buf_ptr1 - buf_ptr2) / sizeof(wchar_t);
- unconv_num2 += wcstocts(conv,
+ unconv_num2 += wcstocts(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -1711,7 +1711,7 @@ mbstostr(
/* next char data : GL or GR side ? */
if ((codeset = GLGR_parse_codeset(ch)))
goto next_mb_char;
-
+
/* can't find codeset for the ch */
unconv_num++;
continue;
@@ -1823,7 +1823,7 @@ mbtocs(
/* next mb char data for GL or GR side ? */
if ((codeset = GLGR_parse_codeset(ch)))
goto next_mb_char;
-
+
/* can't find codeset for the ch */
unconv_num = 1;
break;
@@ -1906,7 +1906,7 @@ mbstocs(
ret = mbtocs(conv, from, from_left, to, to_left, tmp_args, 1);
charset_old = charset;
-
+
while ( ret == 0 && *from_left && *to_left) {
inbufptr = *from;
in_left = *from_left;
@@ -1957,7 +1957,7 @@ wcstostr(
const wchar_t *inbufptr = (const wchar_t *) *from;
char *outbufptr = *to;
int from_size = *from_left;
-
+
const char *default_string = XLC_PUBLIC(lcd, default_string);
int defstr_len = strlen(default_string);
@@ -2073,14 +2073,14 @@ stdc_wcstostr(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = stdc_wcstombs(conv,
+ unconv_num1 = stdc_wcstombs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = buf_ptr1 - buf_ptr2;
- unconv_num2 = mbstostr(conv,
+ unconv_num2 = mbstostr(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -2206,7 +2206,7 @@ stdc_wctocs(
} else {
goto end;
}
-
+
if (length < 0)
goto end;
@@ -2351,14 +2351,14 @@ ctstombs(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = ctstowcs(conv,
+ unconv_num1 = ctstowcs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = (buf_ptr1 - buf_ptr2) / sizeof(wchar_t);
- unconv_num2 += wcstombs_org(conv,
+ unconv_num2 += wcstombs_org(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -2387,14 +2387,14 @@ cstombs(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = cstowcs(conv,
+ unconv_num1 = cstowcs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = (buf_ptr1 - buf_ptr2) / sizeof(wchar_t);
- unconv_num2 += wcstombs_org(conv,
+ unconv_num2 += wcstombs_org(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -2602,14 +2602,14 @@ stdc_strtowcs(
int buf_left2;
int unconv_num1 = 0, unconv_num2 = 0;
- unconv_num1 = strtombs(conv,
+ unconv_num1 = strtombs(conv,
from, from_left, &buf_ptr1, &buf_left1, args, num_args);
if (unconv_num1 < 0)
goto ret;
buf_left2 = buf_ptr1 - buf_ptr2;
- unconv_num2 = stdc_mbstowcs(conv,
+ unconv_num2 = stdc_mbstowcs(conv,
&buf_ptr2, &buf_left2, to, to_left, args, num_args);
if (unconv_num2 < 0)
goto ret;
@@ -2655,23 +2655,23 @@ create_conv(
conv = (XlcConv) Xmalloc(sizeof(XlcConvRec));
if (conv == NULL)
return (XlcConv) NULL;
-
+
conv->methods = (XlcConvMethods) Xmalloc(sizeof(XlcConvMethodsRec));
if (conv->methods == NULL)
goto err;
*conv->methods = *methods;
- conv->methods->reset = init_state;
+ conv->methods->reset = init_state;
conv->state = (XPointer) Xmalloc(sizeof(StateRec));
if (conv->state == NULL)
goto err;
bzero((char *) conv->state, sizeof(StateRec));
-
+
state = (State) conv->state;
state->lcd = lcd;
-
+
_XlcResetConverter(conv);
-
+
return conv;
err:
@@ -3112,7 +3112,7 @@ _XlcGenericLoader(
_XlcSetConverter(lcd, XlcNCompoundText, lcd, XlcNMultiByte, open_ctstombs);
_XlcSetConverter(lcd, XlcNString, lcd, XlcNMultiByte, open_strtombs);
_XlcSetConverter(lcd, XlcNCharSet, lcd, XlcNMultiByte, open_cstombs);
-
+
#ifdef STDCVT
gen = XLC_GENERIC_PART(lcd);
diff --git a/modules/lc/xlocale/lcEuc.c b/modules/lc/xlocale/lcEuc.c
index 1b54508b..907c4f04 100644
--- a/modules/lc/xlocale/lcEuc.c
+++ b/modules/lc/xlocale/lcEuc.c
@@ -64,7 +64,7 @@ OF THIS SOFTWARE.
#define KANJI_CODESET 1
#define KANA_CODESET 2
#define USERDEF_CODESET 3
-#define MAX_CODESETS
+#define MAX_CODESETS
#define GR 0x80 /* begins right-side (non-ascii) region */
#define GL 0x7f /* ends left-side (ascii) region */
@@ -125,7 +125,7 @@ euc_mbstowcs(
const char *inbufptr = *from;
wchar_t *outbufptr = (wchar_t *) *to;
- CodeSet *codesets = XLC_GENERIC(lcd, codeset_list);
+ CodeSet *codesets = XLC_GENERIC(lcd, codeset_list);
int codeset_num = XLC_GENERIC(lcd, codeset_num);
Ulong wc_shift = XLC_GENERIC(lcd, wc_shift_bits);
@@ -215,7 +215,7 @@ euc_mbstowcs(
chrcode <<= (wc_shift * shift_mult);
shift_mult--;
- wc_tmp |= chrcode;
+ wc_tmp |= chrcode;
if (--chr_len == 0) {
wc_tmp |= wc_encode;
@@ -440,11 +440,11 @@ euc_mbstocs(
*from_left = tmp_from_left;
*to = (XPointer) tmp_to;
*to_left = tmp_to_left;
- }
+ }
if (num_args > 0)
*((XlcCharSet *) args[0]) = charset;
-
+
return unconv_num;
}
@@ -530,7 +530,7 @@ euc_cstombs(
if (num_args < 1)
return -1;
-
+
if (!(codeset = GetCodeSetFromCharSet(lcd, (XlcCharSet) args[0])))
return -1;
@@ -588,10 +588,10 @@ euc_cstowcs(
int length;
Ulong wc_shift_bits = XLC_GENERIC(lcd, wc_shift_bits);
CodeSet codeset;
-
+
if (num_args < 1)
return -1;
-
+
if (!(codeset = GetCodeSetFromCharSet(lcd, (XlcCharSet) args[0])))
return -1;
@@ -604,7 +604,7 @@ euc_cstowcs(
toptr += buf_len;
*to = (XPointer) toptr;
-
+
while (buf_len--) {
wch = (wchar_t) BIT8OFF(*csptr);
@@ -676,7 +676,7 @@ create_conv(
conv = (XlcConv) Xmalloc(sizeof(XlcConvRec));
if (conv == NULL)
return (XlcConv) NULL;
-
+
conv->methods = methods;
conv->state = (XPointer) lcd;
return conv;
@@ -1070,7 +1070,7 @@ euc_wcstocts(
}
- } while (length);
+ } while (length);
} /* end for */
@@ -1329,7 +1329,7 @@ euc_mbstocts(
unconv_num++;
break;
}
-
+
if (ctptr) {
strcpy(ctptr, ctdptr[cs_num]->ct_encoding);
ctptr += ctdptr[cs_num]->ct_encoding_len;
@@ -1349,7 +1349,7 @@ euc_mbstocts(
do {
*ctptr++ = charset == ct_state.GR_charset ?
BIT8ON(*inbufptr++) : BIT8OFF(*inbufptr++);
- } while (--clen);
+ } while (--clen);
}
*to = (XPointer)ctptr;
diff --git a/modules/lc/xlocale/lcJis.c b/modules/lc/xlocale/lcJis.c
index bdd46e36..12b344ea 100644
--- a/modules/lc/xlocale/lcJis.c
+++ b/modules/lc/xlocale/lcJis.c
@@ -222,7 +222,7 @@ mbstocs(
if (num_args > 0)
*((XlcCharSet *) args[0]) = charset;
-
+
return unconv_num;
}
@@ -374,7 +374,7 @@ cstombs(
if (num_args < 1)
return -1;
-
+
charset = (XlcCharSet) args[0];
codeset = GetCodeSetFromCharSet(state->lcd, charset);
@@ -420,7 +420,7 @@ cstombs(
buf_len /= codeset->length + encoding_len;
if (csstr_len < buf_len)
buf_len = csstr_len;
-
+
cvt_length += buf_len * (encoding_len + codeset->length);
if (bufptr) {
while (buf_len--) {
@@ -480,7 +480,7 @@ cstowcs(
if (num_args < 1)
return -1;
-
+
codeset = GetCodeSetFromCharSet(lcd, (XlcCharSet) args[0]);
if (codeset == NULL)
return -1;
@@ -489,7 +489,7 @@ cstowcs(
csstr_len /= length;
if (csstr_len < buf_len)
buf_len = csstr_len;
-
+
code_mask = ~XLC_GENERIC(lcd, wc_encode_mask);
wc_encoding = codeset->wc_encoding;
wc_shift_bits = XLC_GENERIC(lcd, wc_shift_bits);
@@ -539,7 +539,7 @@ create_conv(
conv = (XlcConv) Xmalloc(sizeof(XlcConvRec));
if (conv == NULL)
return (XlcConv) NULL;
-
+
conv->methods = (XlcConvMethods) Xmalloc(sizeof(XlcConvMethodsRec));
if (conv->methods == NULL)
goto err;
@@ -551,11 +551,11 @@ create_conv(
if (conv->state == NULL)
goto err;
bzero((char *) conv->state, sizeof(StateRec));
-
+
state = (State) conv->state;
state->lcd = lcd;
init_state(conv);
-
+
return conv;
err:
@@ -762,7 +762,7 @@ stdc_wcstocs(
length = 1;
*tmp = '\0';
}
-
+
if (length < 0)
break;
@@ -788,7 +788,7 @@ stdc_wcstocs(
if (num_args > 0)
*((XlcCharSet *) args[0]) = charset;
-
+
return unconv_num;
}
@@ -810,7 +810,7 @@ stdc_cstowcs(
DefineLocalBuf;
XPointer buf, save_buf;
int length, left, ret;
-
+
left = length = *to_left * XLC_PUBLIC(lcd, mb_cur_max);
buf = save_buf = (XPointer) AllocLocalBuf(length);
if (buf == NULL)
@@ -819,7 +819,7 @@ stdc_cstowcs(
ret = cstombs(conv, from, from_left, &buf, &left, args, num_args);
if (ret < 0)
goto err;
-
+
buf = save_buf;
length -= left;
if (stdc_mbstowcs(conv, &buf, &length, to, to_left, args, num_args) < 0)
diff --git a/modules/lc/xlocale/lcSjis.c b/modules/lc/xlocale/lcSjis.c
index 6adb2945..c4b60765 100644
--- a/modules/lc/xlocale/lcSjis.c
+++ b/modules/lc/xlocale/lcSjis.c
@@ -156,7 +156,7 @@ sjis_mbstowcs(
wchar_t *outbufptr = (wchar_t *) *to;
wchar_t *outbuf_base = outbufptr;
- CodeSet *codesets = XLC_GENERIC(lcd, codeset_list);
+ CodeSet *codesets = XLC_GENERIC(lcd, codeset_list);
int codeset_num = XLC_GENERIC(lcd, codeset_num);
Ulong wc_shift = XLC_GENERIC(lcd, wc_shift_bits);
@@ -323,7 +323,7 @@ sjis_wcstombs(
}
*outbufptr++ = (char)tmp;
- } while (length);
+ } while (length);
} /* end for */
@@ -392,7 +392,7 @@ wc_codeset(
return( codesets[0] );
#endif
}
-
+
static int
sjis_mbtocs(
@@ -421,7 +421,7 @@ sjis_mbtocs(
if (*from_left >= char_size && *to_left >= char_size) {
*dst++ = *src++;
- *dst++ = *src++;
+ *dst++ = *src++;
if (!VALID_MULTIBYTE((Uchar) *(src-1))) /* check 2nd byte */
unconv_num++;
sjis_to_jis((Uchar *)(dst-2), (Uchar *)(dst-1));
@@ -433,10 +433,10 @@ sjis_mbtocs(
return -1;
charset = *CS3->charset_list;
char_size = charset->char_size;
-
+
if (*from_left >= char_size && *to_left >= char_size) {
*dst++ = *src++;
- *dst++ = *src++;
+ *dst++ = *src++;
if (!VALID_MULTIBYTE((Uchar) *(src-1))) /* check 2nd byte */
unconv_num++;
sjis_to_jis((Uchar *)(dst-2), (Uchar *)(dst-1));
@@ -530,11 +530,11 @@ sjis_mbstocs(
*from_left = tmp_from_left;
*to = (XPointer) tmp_to;
*to_left = tmp_to_left;
- }
+ }
if (num_args > 0)
*((XlcCharSet *) args[0]) = charset;
-
+
return unconv_num;
}
@@ -662,7 +662,7 @@ sjis_cstombs(
if (num_args < 1)
return -1;
-
+
if (!(codeset = GetCodeSetFromCharSet(lcd, (XlcCharSet) args[0])))
return -1;
@@ -670,7 +670,7 @@ sjis_cstombs(
buf_len /= codeset->length;
if (csstr_len < buf_len)
buf_len = csstr_len;
-
+
cvt_length += buf_len * codeset->length;
if (bufptr) {
@@ -964,7 +964,7 @@ sjis_mbstocts(
unconv_num++;
break;
}
-
+
if (ctptr) {
strcpy(ctptr, ctdptr[cs_num]->ct_encoding);
ctptr += ctdptr[cs_num]->ct_encoding_len;
@@ -974,7 +974,7 @@ sjis_mbstocts(
clen = charset->length;
do {
*ctptr++ = *inbufptr++;
- } while (--clen);
+ } while (--clen);
if (charset->length >= 2) {
sjis_to_jis((Uchar *)(ctptr-2), (Uchar *)(ctptr-1));
@@ -1120,7 +1120,7 @@ sjis_wcstocts(
}
*ctptr++ = (char)tmp;
}
- } while (length);
+ } while (length);
} /* end for */
@@ -1299,7 +1299,7 @@ sjis_ctstowcs(
if (*from_left > *to_left)
*from_left = *to_left;
-
+
for (length = ctdata[Ascii].length; *from_left > 0; (*from_left) -= length )
{
ct_type = CT_STD;
@@ -1436,7 +1436,7 @@ create_conv(
conv = (XlcConv) Xmalloc(sizeof(XlcConvRec));
if (conv == NULL)
return (XlcConv) NULL;
-
+
conv->methods = methods;
conv->state = (XPointer) lcd;
return conv;
diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c
index 3a813b35..f036252f 100644
--- a/modules/om/generic/omGeneric.c
+++ b/modules/om/generic/omGeneric.c
@@ -41,7 +41,7 @@
* so that you can figure out what in the heck we're doing. We
* realize this is a departure from the norm, but hey, we're
* rebels! :-) :-)
- *
+ *
* Modifiers: Jeff Walls, Paul Anderson: HEWLETT-PACKARD
*/
/*
@@ -223,7 +223,7 @@ get_prop_name(
unsigned long fp;
if (XGetFontProperty(fs, XA_FONT, &fp))
- return XGetAtomName(dpy, fp);
+ return XGetAtomName(dpy, fp);
return (char *) NULL;
}
@@ -261,7 +261,7 @@ load_fontset_data(
if(font_set->font_name == (char *)NULL) return False ;
/* If font_set->font is not NULL, it contains the *best*
- * match font for this FontSet.
+ * match font for this FontSet.
* -- jjw/pma (HP)
*/
if(font_set->font == NULL) {
@@ -338,7 +338,7 @@ load_font_info(
&font_set->info);
if (font_set->info == NULL)
return False;
-
+
XFreeFontNames(fn_list);
}
}
@@ -529,7 +529,7 @@ get_font_name(
name = (char *) Xmalloc(strlen(*list) + 1);
if (name)
strcpy(name, *list);
-
+
XFreeFontNames(list);
return name;
@@ -568,7 +568,7 @@ get_rotate_fontname(
for(field_num = 0 ; field_num < CHARSET_ENCODING_FIELD && ptr && *ptr ;
ptr++, field_num++) {
fields[field_num] = ptr;
-
+
if((ptr = strchr(ptr, '-'))) {
*ptr = '\0';
}
@@ -604,7 +604,7 @@ get_rotate_fontname(
}
/* Max XLFD length is 255 */
- if (len > XLFD_MAX_LEN)
+ if (len > XLFD_MAX_LEN)
return NULL;
rotate_font_ptr = (char *)Xmalloc(len + 1);
@@ -638,7 +638,7 @@ is_match_charset(
length = strlen(font_data->name);
if (length > name_len)
return False;
-
+
if (_XlcCompareISOLatin1(last - length, font_data->name) == 0)
return True;
@@ -668,7 +668,7 @@ get_font_name_from_list(
break;
}
}
-
+
XFreeFontNames(list);
return name;
@@ -758,7 +758,7 @@ parse_omit_name(
if (length > XLFD_MAX_LEN)
return -1;
-
+
strcpy(buf, pattern);
last = buf + length - 1;
@@ -771,12 +771,12 @@ parse_omit_name(
switch (num_fields) {
case 12:
/* This is the best way to have specifed the fontset. In this
- * case, there is no original encoding. E.g.,
+ * case, there is no original encoding. E.g.,
* -*-*-*-*-*-*-14-*-*-*-*-*
* To this, we'll append a dash:
* -*-*-*-*-*-*-14-*-*-*-*-*-
* then append the encoding to get:
- * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
+ * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
*/
/*
* Take care of:
@@ -789,7 +789,7 @@ parse_omit_name(
break;
case 13:
/* Got the charset, not the encoding, zap the charset In this
- * case, there is no original encoding, but there is a charset. E.g.,
+ * case, there is no original encoding, but there is a charset. E.g.,
* -*-*-*-*-*-*-14-*-*-*-*-*-jisx0212.1990
* To this, we remove the charset:
* -*-*-*-*-*-*-14-*-*-*-*-*-
@@ -802,11 +802,11 @@ parse_omit_name(
case 14:
/* Both the charset and the encoding are specified. Get rid
* of them so that we can append the new charset encoding. E.g.,
- * -*-*-*-*-*-*-14-*-*-*-*-*-jisx0212.1990-0
+ * -*-*-*-*-*-*-14-*-*-*-*-*-jisx0212.1990-0
* To this, we'll remove the encoding and charset to get:
* -*-*-*-*-*-*-14-*-*-*-*-*-
* then append the new encoding to get:
- * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
+ * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
*/
last = strrchr (buf, '-');
*last = '\0';
@@ -819,17 +819,17 @@ parse_omit_name(
break;
}
- /* At this point, "last" is pointing to the last "-" in the
+ /* At this point, "last" is pointing to the last "-" in the
* xlfd, and all xlfd's at this point take a form similar to:
* -*-*-*-*-*-*-14-*-*-*-*-*-
* (i.e., no encoding).
* After the strcpy, we'll end up with something similar to:
- * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
+ * -*-*-*-*-*-*-14-*-*-*-*-*-JISX0208.1990-0
*
- * If the modified font is found in the current FontSet,
+ * If the modified font is found in the current FontSet,
* we've found a match.
*/
-
+
last++;
if ((last - buf) + strlen(font_data->name) > XLFD_MAX_LEN)
@@ -846,12 +846,12 @@ parse_omit_name(
*last = '*';
*(last + 1) = '-';
strcpy(last + 2, font_data->name);
- num_fields++;
+ num_fields++;
last+=2;
if ((font_data->xlfd_name = get_font_name(oc, buf)) != NULL)
- return True;
+ return True;
}
-
+
return False;
}
@@ -884,7 +884,7 @@ parse_fontdata(
if(font_data == NULL || font_data_count <= 0) {
return False;
}
-
+
/* Loop through each font encoding defined in the "font_data" FontSet. */
for ( ; font_data_count-- > 0; font_data++) {
Bool is_found = False;
@@ -904,7 +904,7 @@ parse_fontdata(
fprintf(stderr,"Font pattern: %s %s\n",
pattern,font_data->name);
#endif
-
+
/*
* If the current font is fully specified (i.e., the
* xlfd contains no wildcards) and the font exists on
@@ -925,16 +925,16 @@ parse_fontdata(
if (ret == False) continue;
/*
* Since there was an exact match of a fully-specified font
- * or a font alias, we can return now since the desired font
+ * or a font alias, we can return now since the desired font
* was found for the current font encoding for this FontSet.
*
* Previous implementations of this algorithm would
- * not return here. Instead, they continued searching
- * through the font encodings for this FontSet. The side-effect
- * of that behavior is you may return a "substitute" match
- * instead of an "exact" match. We believe there should be a
+ * not return here. Instead, they continued searching
+ * through the font encodings for this FontSet. The side-effect
+ * of that behavior is you may return a "substitute" match
+ * instead of an "exact" match. We believe there should be a
* preference on exact matches. Therefore, as soon as we
- * find one, we bail.
+ * find one, we bail.
*
* Also, previous implementations seemed to think it was
* important to find either a primary or substitute font
@@ -942,7 +942,7 @@ parse_fontdata(
* acceptable font. We don't believe this is necessary.
* All the client cares about is finding a reasonable font
* for what was passed in. If we find an exact match,
- * there's no reason to look any further.
+ * there's no reason to look any further.
*
* -- jjw/pma (HP)
*/
@@ -973,7 +973,7 @@ parse_fontdata(
if (ret == False) continue;
/*
- * A font which matched the wild-carded specification was found.
+ * A font which matched the wild-carded specification was found.
* Only update the return data if a font has not yet been found.
* This maintains the convention that FontSets listed higher in
* a CodeSet in the Locale Database have higher priority than
@@ -990,7 +990,7 @@ parse_fontdata(
*
* a font found in the JISX0208.1990-0 FontSet will have a
* higher priority than a font found in the JISX0208.1983-0
- * FontSet.
+ * FontSet.
*/
if (font_data_return && font_data_return->xlfd_name == NULL) {
@@ -1017,7 +1017,7 @@ parse_fontdata(
/*
* Did not find a font for the current FontSet. Check the
* FontSet's "substitute" font for a match. If we find a
- * match, we'll keep searching in hopes of finding an exact
+ * match, we'll keep searching in hopes of finding an exact
* match later down the FontSet list.
*
* when we return and we have found a font font_data_return
@@ -1025,8 +1025,8 @@ parse_fontdata(
* is a C_PRIMARY or a C_SUBSTITUTE font
*/
ret = parse_fontdata(oc, font_set, font_set->substitute,
- font_set->substitute_num, name_list,
- name_list_count, C_SUBSTITUTE,
+ font_set->substitute_num, name_list,
+ name_list_count, C_SUBSTITUTE,
font_data_return);
if (ret == -1) return -1;
if (ret == False) continue;
@@ -1115,7 +1115,7 @@ parse_vw(
if(font_set->vrotate == (VRotate)NULL)
return (-1);
memset(font_set->vrotate, 0x00, sizeof(VRotateRec) * sub_num);
-
+
for(i = 0 ; i < sub_num ; i++) {
vrotate[i].charset_name = font_set->substitute[i].name;
vrotate[i].side = font_set->substitute[i].side;
@@ -1168,12 +1168,12 @@ parse_fontname(
if(font_set->font_data_count > 0) {
/*
- * If there are a non-zero number of FontSets defined
+ * If there are a non-zero number of FontSets defined
* for this CharSet.
* Try to find a font for this CharSet. If we find an
* acceptable font, we save the information for return
* to the client. If we do not find an acceptable font,
- * a "missing_charset" will be reported to the client
+ * a "missing_charset" will be reported to the client
* for this CharSet.
*/
font_data_return. xlfd_name = NULL;
@@ -1210,7 +1210,7 @@ parse_fontname(
} else if(font_set->substitute_num > 0) {
/*
- * If there are no FontSets defined for this
+ * If there are no FontSets defined for this
* CharSet. We can only find "substitute" fonts.
*/
ret = parse_fontdata(oc, font_set, font_set->substitute,
@@ -1277,14 +1277,14 @@ set_missing_list(
if (font_set->info || font_set->font) {
continue;
}
-
+
/* Change 1996.01.23 start */
if(font_set->font_data_count <= 0 ||
font_set->font_data == (FontData)NULL) {
if(font_set->substitute_num <= 0 ||
font_set->substitute == (FontData)NULL) {
if(font_set->charset_list != NULL){
- length +=
+ length +=
strlen(font_set->charset_list[0]->encoding_name) + 1;
} else {
length += 1;
@@ -1346,7 +1346,7 @@ set_missing_list(
/* Change 1996.01.23 end */
*charset_list++ = charset_buf;
charset_buf += strlen(charset_buf) + 1;
- }
+ }
if(result == 0) {
return(False);
@@ -1408,7 +1408,7 @@ free_fontdataOC(
XFreeFontInfo(NULL, font_data->font, 1);/* Add 1996.01.23 */
font_data->font = NULL;
}
-/*
+/*
* font_data->name and font_data->scopes belong to the OM not OC.
* To save space this data is shared between OM and OC. We are
* not allowed to free it here.
@@ -1496,7 +1496,7 @@ destroy_oc(
_XlcCloseConverter(gen->utf8_to_cs);
/* For VW/UDC start */ /* Change 1996.01.8 */
- destroy_fontdata(gen,dpy);
+ destroy_fontdata(gen,dpy);
/*
*/
/* For VW/UDC end */
@@ -1520,7 +1520,7 @@ destroy_oc(
if (oc->core.res_class)
Xfree(oc->core.res_class);
#endif
-
+
Xfree(oc);
}
@@ -1659,12 +1659,12 @@ create_oc(
if (oc == NULL)
return (XOC) NULL;
bzero((char *) oc, sizeof(XOCGenericRec));
-
+
oc->core.om = om;
if (oc_resources[0].xrm_name == NULLQUARK)
_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
-
+
if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),
args, num_args, XlcCreateMask | XlcDefaultMask))
goto err;
@@ -1847,7 +1847,7 @@ create_om(
if (om == NULL)
return (XOM) NULL;
bzero((char *) om, sizeof(XOMGenericRec));
-
+
om->methods = &methods;
om->core.lcd = lcd;
om->core.display = dpy;
@@ -1867,7 +1867,7 @@ create_om(
if (om_resources[0].xrm_name == NULLQUARK)
_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
-
+
om->core.resources = om_resources;
om->core.num_resources = XlcNumber(om_resources);
@@ -2037,7 +2037,7 @@ init_om(
data = add_data(om);
if (data == NULL)
return False;
-
+
charset_list = (XlcCharSet *) Xmalloc(sizeof(XlcCharSet) * count);
if (charset_list == NULL)
return False;
@@ -2165,7 +2165,7 @@ _XomGenericOpenOM(XLCd lcd, Display *dpy, XrmDatabase rdb,
om = create_om(lcd, dpy, rdb, res_name, res_class);
if (om == NULL)
return (XOM) NULL;
-
+
if (init_om(om) == False)
goto err;
diff --git a/modules/om/generic/omText.c b/modules/om/generic/omText.c
index 189aabd1..bffc9809 100644
--- a/modules/om/generic/omText.c
+++ b/modules/om/generic/omText.c
@@ -110,7 +110,7 @@ draw_vertical(
int direction = 0;
int font_ascent_return = 0, font_descent_return = 0;
int i;
- XCharStruct overall;
+ XCharStruct overall;
wy = y;
if (is_xchar2b) {
@@ -192,7 +192,7 @@ DrawStringWithFontSet(
* If it was, use that font. If it was not set, then use the
* font defined by font_set->font_data[0] (which is what
* _XomGetFontDataFromFontSet() always seems to return for
- * non-VW text). Note that given the new algorithm in
+ * non-VW text). Note that given the new algorithm in
* parse_fontname() and parse_fontdata(), fs->font will
* *always* contain good data. We should probably remove
* the check for "fd->font", but we won't :-) -- jjw/pma (HP)
@@ -307,7 +307,7 @@ _XomGenericDrawString(
conv = _XomInitConverter(oc, type);
if (conv == NULL)
return -1;
-
+
args[0] = (XPointer) &font;
args[1] = (XPointer) &is_xchar2b;
args[2] = (XPointer) &fs;
diff --git a/modules/om/generic/omTextEsc.c b/modules/om/generic/omTextEsc.c
index 03b76d9f..3d3e62a8 100644
--- a/modules/om/generic/omTextEsc.c
+++ b/modules/om/generic/omTextEsc.c
@@ -259,7 +259,7 @@ _XomGenericTextEscapement(
conv = _XomInitConverter(oc, type);
if (conv == NULL)
return escapement;
-
+
args[0] = (XPointer) &font;
args[1] = (XPointer) &is_xchar2b;
args[2] = (XPointer) &font_set;
diff --git a/modules/om/generic/omTextPer.c b/modules/om/generic/omTextPer.c
index 17a18657..84cee943 100644
--- a/modules/om/generic/omTextPer.c
+++ b/modules/om/generic/omTextPer.c
@@ -59,7 +59,7 @@ _XomGenericTextPerCharExtents(
conv = _XomInitConverter(oc, type);
if (conv == NULL)
return 0;
-
+
bzero((char *) &overall, sizeof(XCharStruct));
logical_ascent = logical_descent = require_num = *num_chars = 0;
diff --git a/modules/om/generic/omXChar.c b/modules/om/generic/omXChar.c
index c910cfed..b15ff4dd 100644
--- a/modules/om/generic/omXChar.c
+++ b/modules/om/generic/omXChar.c
@@ -120,7 +120,7 @@ _XomGetFontDataFromFontSet(
unsigned char *str,
int len,
int *len_ret,
- int is2b,
+ int is2b,
int type) /* VMAP , VROTATE , else */
{
unsigned long value;
@@ -128,7 +128,7 @@ _XomGetFontDataFromFontSet(
FontData fontdata;
unsigned char *c;
int vfont_type;
-
+
c = str;
hit = -1;
if(type == VMAP){
@@ -164,7 +164,7 @@ _XomGetFontDataFromFontSet(
} else {
value = (unsigned long)*c;
}
-
+
/* ### NOTE: This routine DOES NOT WORK!
* ### We can work around the problem in the calling routine,
* ### but we really need to understand this better. As it
@@ -332,7 +332,7 @@ load_font(
oc->core.font_info.font_name_list[font_set->id]);
if (font_set->font == NULL)
return False;
-
+
oc->core.font_info.font_struct_list[font_set->id] = font_set->font;
XFreeFontInfo(NULL, font_set->info, 1);
font_set->info = NULL;
@@ -364,7 +364,7 @@ _XomConvert(
XChar2b *xchar2b;
char *buf, buf_local[BUFSIZ];
#endif
-
+
cs = *to;
cs_left = *to_left;
lc_args[0] = (XPointer) &charset;
@@ -400,7 +400,7 @@ _XomConvert(
cs_to_xchar2b_gr(buf, xchar2b, length);
else
cs_to_xchar2b(buf, xchar2b, length);
-
+
if (buf != buf_local)
Xfree(buf);
diff --git a/src/AllPlanes.c b/src/AllPlanes.c
index 7e714c0d..9ce9c22a 100644
--- a/src/AllPlanes.c
+++ b/src/AllPlanes.c
@@ -38,11 +38,11 @@ Status XAllocColorPlanes(
Bool contig,
unsigned long *pixels, /* LISTofCARD32 */ /* RETURN */
int ncolors,
- int nreds,
- int ngreens,
+ int nreds,
+ int ngreens,
int nblues,
- unsigned long *rmask,
- unsigned long *gmask,
+ unsigned long *rmask,
+ unsigned long *gmask,
unsigned long *bmask) /* CARD32 */ /* RETURN */
{
xAllocColorPlanesReply rep;
@@ -74,4 +74,4 @@ Status XAllocColorPlanes(
UnlockDisplay(dpy);
SyncHandle();
return(status);
-}
+}
diff --git a/src/ChClMode.c b/src/ChClMode.c
index 80895b6b..7267c2d2 100644
--- a/src/ChClMode.c
+++ b/src/ChClMode.c
@@ -33,7 +33,7 @@ in this Software without prior written authorization from The Open Group.
int
XSetCloseDownMode(
- register Display *dpy,
+ register Display *dpy,
int mode)
{
register xSetCloseDownModeReq *req;
diff --git a/src/ChKeyCon.c b/src/ChKeyCon.c
index 495f3dfe..2a02f860 100644
--- a/src/ChKeyCon.c
+++ b/src/ChKeyCon.c
@@ -48,7 +48,7 @@ XChangeKeyboardControl(
if (mask & KBKeyClickPercent)
*value++ = value_list->key_click_percent;
-
+
if (mask & KBBellPercent)
*value++ = value_list->bell_percent;
diff --git a/src/ChProp.c b/src/ChProp.c
index 8c524caf..b8f596a0 100644
--- a/src/ChProp.c
+++ b/src/ChProp.c
@@ -67,7 +67,7 @@ XChangeProperty (
Data (dpy, (char *)data, nelements);
} /* else force BadLength */
break;
-
+
case 16:
len = ((long)nelements + 1)>>1;
if (dpy->bigreq_size || req->length + len <= (unsigned) 65535) {
diff --git a/src/ChkIfEv.c b/src/ChkIfEv.c
index 037fe291..9bef64f8 100644
--- a/src/ChkIfEv.c
+++ b/src/ChkIfEv.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Check existing events in queue to find if any match. If so, return.
* If not, flush buffer and see if any more events are readable. If one
* matches, return. If all else fails, tell the user no events found.
diff --git a/src/ChkMaskEv.c b/src/ChkMaskEv.c
index 3d1e7873..e19a991f 100644
--- a/src/ChkMaskEv.c
+++ b/src/ChkMaskEv.c
@@ -38,7 +38,7 @@ extern long const _Xevent_to_mask[];
#define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\
Button4MotionMask|Button5MotionMask)
-/*
+/*
* Check existing events in queue to find if any match. If so, return.
* If not, flush buffer and see if any more events are readable. If one
* matches, return. If all else fails, tell the user no events found.
diff --git a/src/ChkTypEv.c b/src/ChkTypEv.c
index ef54f764..fc4c7d18 100644
--- a/src/ChkTypEv.c
+++ b/src/ChkTypEv.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Check existing events in queue to find if any match. If so, return.
* If not, flush buffer and see if any more events are readable. If one
* matches, return. If all else fails, tell the user no events found.
diff --git a/src/ChkTypWEv.c b/src/ChkTypWEv.c
index acd6b94e..6214c365 100644
--- a/src/ChkTypWEv.c
+++ b/src/ChkTypWEv.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Check existing events in queue to find if any match. If so, return.
* If not, flush buffer and see if any more events are readable. If one
* matches, return. If all else fails, tell the user no events found.
diff --git a/src/ChkWinEv.c b/src/ChkWinEv.c
index ff1dc919..42720e45 100644
--- a/src/ChkWinEv.c
+++ b/src/ChkWinEv.c
@@ -37,7 +37,7 @@ extern long const _Xevent_to_mask[];
#define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\
Button4MotionMask|Button5MotionMask)
-/*
+/*
* Check existing events in queue to find if any match. If so, return.
* If not, flush buffer and see if any more events are readable. If one
* matches, return. If all else fails, tell the user no events found.
diff --git a/src/ClDisplay.c b/src/ClDisplay.c
index 3a52d8bd..a09f016e 100644
--- a/src/ClDisplay.c
+++ b/src/ClDisplay.c
@@ -41,7 +41,7 @@ from The Open Group.
#include "Xlibint.h"
#include "Xintconn.h"
-/*
+/*
* XCloseDisplay - XSync the connection to the X Server, close the connection,
* and free all associated storage. Extension close procs should only free
* memory and must be careful about the types of requests they generate.
diff --git a/src/ClearArea.c b/src/ClearArea.c
index 95b1f491..16635339 100644
--- a/src/ClearArea.c
+++ b/src/ClearArea.c
@@ -35,7 +35,7 @@ int
XClearArea (
register Display *dpy,
Window w,
- int x,
+ int x,
int y,
unsigned int width,
unsigned int height,
diff --git a/src/ConnDis.c b/src/ConnDis.c
index e61e0f05..22e643cb 100644
--- a/src/ConnDis.c
+++ b/src/ConnDis.c
@@ -1,7 +1,7 @@
/* $XdotOrg: lib/X11/src/ConnDis.c,v 1.10 2005-07-03 07:00:55 daniels Exp $ */
/* $Xorg: ConnDis.c,v 1.8 2001/02/09 02:03:31 xorgcvs Exp $ */
/*
-
+
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
@@ -27,7 +27,7 @@ in this Software without prior written authorization from The Open Group.
*/
/* $XFree86: xc/lib/X11/ConnDis.c,v 3.28 2003/12/02 23:33:17 herrb Exp $ */
-/*
+/*
* This file contains operating system dependencies.
*/
@@ -90,7 +90,7 @@ static char *copystring (char *src, int len)
}
-/*
+/*
* Attempts to connect to server, given display name. Returns file descriptor
* (network socket) or -1 if connection fails. Display names may be of the
* following format:
@@ -107,7 +107,7 @@ static char *copystring (char *src, int len)
* by IETF RFC 2732.
*
* If no hostname and no protocol is specified, the string is interpreted
- * as the most efficient local connection to a server on the same machine.
+ * as the most efficient local connection to a server on the same machine.
* This is usually:
*
* o shared memory
@@ -156,9 +156,9 @@ _X11TransConnectDisplay (
#endif
#ifdef LOCALCONN
struct utsname sys;
-# ifdef UNIXCONN
+# ifdef UNIXCONN
Bool try_unix_socket = False; /* Try unix if local fails */
-# endif
+# endif
#endif
#ifdef TCPCONN
char *tcphostname = NULL; /* A place to save hostname pointer */
@@ -170,7 +170,7 @@ _X11TransConnectDisplay (
saddr = NULL;
/*
- * Step 0, find the protocol. This is delimited by the optional
+ * Step 0, find the protocol. This is delimited by the optional
* slash ('/').
*/
for (lastp = p; *p && *p != ':' && *p != '/'; p++) ;
@@ -187,7 +187,7 @@ _X11TransConnectDisplay (
/*
* Step 1, find the hostname. This is delimited by either one colon,
* or two colons in the case of DECnet (DECnet Phase V allows a single
- * colon in the hostname). (See note above regarding IPv6 numeric
+ * colon in the hostname). (See note above regarding IPv6 numeric
* addresses with triple colons or [] brackets.)
*/
@@ -199,7 +199,7 @@ _X11TransConnectDisplay (
if (!lastc) return NULL; /* must have a colon */
- if ((lastp != lastc) && (*(lastc - 1) == ':')
+ if ((lastp != lastc) && (*(lastc - 1) == ':')
#if defined(IPv6) && defined(AF_INET6)
&& ( ((lastc - 1) == lastp) || (*(lastc - 2) != ':'))
#endif
@@ -230,8 +230,8 @@ _X11TransConnectDisplay (
#ifdef LOCALCONN
/* check if phostname == localnodename AND protocol not specified */
if (!pprotocol && (!phostname || (phostname && uname(&sys) >= 0 &&
- !strncmp(phostname, sys.nodename,
- (strlen(sys.nodename) < strlen(phostname) ?
+ !strncmp(phostname, sys.nodename,
+ (strlen(sys.nodename) < strlen(phostname) ?
strlen(phostname) : strlen(sys.nodename))))))
{
/*
@@ -258,7 +258,7 @@ _X11TransConnectDisplay (
/*
- * Step 2, find the display number. This field is required and is
+ * Step 2, find the display number. This field is required and is
* delimited either by a nul or a period, depending on whether or not
* a screen number is present.
*/
@@ -272,7 +272,7 @@ _X11TransConnectDisplay (
/*
- * Step 3, find the screen number. This field is optional. It is
+ * Step 3, find the screen number. This field is optional. It is
* present only if the display number was followed by a period (which
* we've already verified is the only non-nul character).
*/
@@ -295,7 +295,7 @@ _X11TransConnectDisplay (
* idisplay display number
* iscreen screen number
* dnet DECnet boolean
- *
+ *
* We can now decide which transport to use based on the ConnectionFlags
* build parameter the hostname string. If phostname is NULL or equals
* the string "local", then choose the best transport. If phostname
@@ -325,7 +325,7 @@ _X11TransConnectDisplay (
#if defined(UNIXCONN) || defined(LOCALCONN) || defined(OS2PIPECONN)
/*
- * Now that the defaults have been established, see if we have any
+ * Now that the defaults have been established, see if we have any
* special names that we have to override:
*
* :N => if UNIXCONN then unix-domain-socket
@@ -359,8 +359,8 @@ _X11TransConnectDisplay (
*/
{
- int olen = 3 + (pprotocol ? strlen(pprotocol) : 0) +
- (phostname ? strlen(phostname) : 0) +
+ int olen = 3 + (pprotocol ? strlen(pprotocol) : 0) +
+ (phostname ? strlen(phostname) : 0) +
(pdpynum ? strlen(pdpynum) : 0);
if (olen > sizeof addrbuf) address = Xmalloc (olen);
}
@@ -439,7 +439,7 @@ _X11TransConnectDisplay (
/*
* If we computed the host name, get rid of it so that
* XDisplayString() and XDisplayName() agree.
- */
+ */
if (reset_hostname) {
Xfree (phostname);
phostname = NULL;
@@ -451,7 +451,7 @@ _X11TransConnectDisplay (
if (!*fullnamep) goto bad;
#ifdef HAVE_LAUNCHD
- if (phostname && strlen(phostname) > 11 && !strncmp(phostname, "/tmp/launch", 11))
+ if (phostname && strlen(phostname) > 11 && !strncmp(phostname, "/tmp/launch", 11))
sprintf (*fullnamep, "%s%s%d",
(phostname ? phostname : ""),
(dnet ? "::" : ":"),
@@ -496,7 +496,7 @@ _X11TransConnectDisplay (
goto connect;
}
#endif
-
+
#if defined(TCPCONN)
if (tcphostname) {
pprotocol = copystring("tcp", 3);
@@ -552,7 +552,7 @@ int _XConnectDisplay (
* *
*****************************************************************************/
-/*
+/*
* Disconnect from server.
*/
@@ -688,7 +688,7 @@ static _Xconst int default_xauth_lengths[] = {
};
#define NUM_DEFAULT_AUTH (sizeof (default_xauth_names) / sizeof (default_xauth_names[0]))
-
+
static char **xauth_names = default_xauth_names;
static _Xconst int *xauth_lengths = default_xauth_lengths;
@@ -1137,18 +1137,18 @@ GetAuthorization(
{
unsigned char ipv4mappedprefix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff };
-
- /* In the case of v4 mapped addresses send the v4
+
+ /* In the case of v4 mapped addresses send the v4
part of the address - addr is already in network byte order */
if (memcmp((char*)addr+8, ipv4mappedprefix, 12) == 0) {
for (i = 20 ; i < 24; i++)
xdmcp_data[j++] = ((char *)addr)[i];
-
+
/* Port number */
for (i=2; i<4; i++)
xdmcp_data[j++] = ((char *)addr)[i];
} else {
- /* Fake data to keep the data aligned. Otherwise the
+ /* Fake data to keep the data aligned. Otherwise the
the server will bail about incorrect timing data */
for (i = 0; i < 6; i++) {
xdmcp_data[j++] = 0;
@@ -1172,14 +1172,14 @@ GetAuthorization(
unsigned short the_port;
unsigned long the_utime;
struct timeval tp;
-
+
X_GETTIMEOFDAY(&tp);
_XLockMutex(_Xglobal_lock);
the_addr = unix_addr--;
_XUnlockMutex(_Xglobal_lock);
the_utime = (unsigned long) tp.tv_usec;
the_port = getpid ();
-
+
xdmcp_data[j++] = (the_utime >> 24) & 0xFF;
xdmcp_data[j++] = (the_utime >> 16) & 0xFF;
xdmcp_data[j++] = ((the_utime >> 8) & 0xF0)
diff --git a/src/Context.c b/src/Context.c
index 747bb6be..0020a605 100644
--- a/src/Context.c
+++ b/src/Context.c
@@ -5,13 +5,13 @@ Copyright 1987, 1988, 1990 by Digital Equipment Corporation, Maynard,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -156,7 +156,7 @@ static void _XFreeContextDB(Display *display)
/* Save the given value of data to correspond with the keys XID and context.
Returns nonzero error code if an error has occured, 0 otherwise.
Possible errors are Out-of-memory.
-*/
+*/
int XSaveContext(
Display *display,
@@ -230,7 +230,7 @@ int XSaveContext(
-/* Given an XID and context, returns the associated data. Note that data
+/* Given an XID and context, returns the associated data. Note that data
here is a pointer since it is a return value. Returns nonzero error code
if an error has occured, 0 otherwise. Possible errors are Entry-not-found.
*/
diff --git a/src/ConvSel.c b/src/ConvSel.c
index e60148ee..bb7a6b71 100644
--- a/src/ConvSel.c
+++ b/src/ConvSel.c
@@ -34,7 +34,7 @@ in this Software without prior written authorization from The Open Group.
int
XConvertSelection(
register Display *dpy,
- Atom selection,
+ Atom selection,
Atom target,
Atom property,
Window requestor,
diff --git a/src/CopyArea.c b/src/CopyArea.c
index a2dc6fa9..d32144e1 100644
--- a/src/CopyArea.c
+++ b/src/CopyArea.c
@@ -41,7 +41,7 @@ XCopyArea(
int src_y,
unsigned int width,
unsigned int height,
- int dst_x,
+ int dst_x,
int dst_y)
{
diff --git a/src/CopyCmap.c b/src/CopyCmap.c
index 127c15b1..94a9d018 100644
--- a/src/CopyCmap.c
+++ b/src/CopyCmap.c
@@ -61,6 +61,6 @@ Colormap XCopyColormapAndFree(
#if XCMS
_XcmsCopyCmapRecAndFree(dpy, src_cmap, mid);
#endif
-
+
return(mid);
}
diff --git a/src/CopyGC.c b/src/CopyGC.c
index f94914ae..9e78c351 100644
--- a/src/CopyGC.c
+++ b/src/CopyGC.c
@@ -46,7 +46,7 @@ XCopyGC (
LockDisplay(dpy);
mask &= (1L << (GCLastBit + 1)) - 1;
- /* if some of the source values to be copied are "dirty", flush them
+ /* if some of the source values to be copied are "dirty", flush them
out before sending the CopyGC request. */
if (srcGC->dirty & mask)
_XFlushGCCache(dpy, srcGC);
@@ -61,7 +61,7 @@ XCopyGC (
if (mask & GCFunction)
destgv->function = srcgv->function;
-
+
if (mask & GCPlaneMask)
destgv->plane_mask = srcgv->plane_mask;
@@ -79,14 +79,14 @@ XCopyGC (
if (mask & GCCapStyle)
destgv->cap_style = srcgv->cap_style;
-
+
if (mask & GCJoinStyle)
destgv->join_style = srcgv->join_style;
if (mask & GCFillStyle)
destgv->fill_style = srcgv->fill_style;
- if (mask & GCFillRule)
+ if (mask & GCFillRule)
destgv->fill_rule = srcgv->fill_rule;
if (mask & GCArcMode)
@@ -104,19 +104,19 @@ XCopyGC (
if (mask & GCTileStipYOrigin)
destgv->ts_y_origin = srcgv->ts_y_origin;
- if (mask & GCFont)
+ if (mask & GCFont)
destgv->font = srcgv->font;
- if (mask & GCSubwindowMode)
+ if (mask & GCSubwindowMode)
destgv->subwindow_mode = srcgv->subwindow_mode;
- if (mask & GCGraphicsExposures)
+ if (mask & GCGraphicsExposures)
destgv->graphics_exposures = srcgv->graphics_exposures;
- if (mask & GCClipXOrigin)
+ if (mask & GCClipXOrigin)
destgv->clip_x_origin = srcgv->clip_x_origin;
- if (mask & GCClipYOrigin)
+ if (mask & GCClipYOrigin)
destgv->clip_y_origin = srcgv->clip_y_origin;
if (mask & GCClipMask) {
@@ -124,7 +124,7 @@ XCopyGC (
destgv->clip_mask = srcgv->clip_mask;
}
- if (mask & GCDashOffset)
+ if (mask & GCDashOffset)
destgv->dash_offset = srcgv->dash_offset;
if (mask & GCDashList) {
diff --git a/src/CopyPlane.c b/src/CopyPlane.c
index 5d1dbb9d..fd512dfe 100644
--- a/src/CopyPlane.c
+++ b/src/CopyPlane.c
@@ -39,13 +39,13 @@ XCopyPlane(
GC gc,
int src_x,
int src_y,
- unsigned int width,
+ unsigned int width,
unsigned int height,
int dst_x,
int dst_y,
unsigned long bit_plane)
-{
+{
register xCopyPlaneReq *req;
LockDisplay(dpy);
diff --git a/src/CrBFData.c b/src/CrBFData.c
index 2e665dfe..844ba92a 100644
--- a/src/CrBFData.c
+++ b/src/CrBFData.c
@@ -32,10 +32,10 @@ in this Software without prior written authorization from The Open Group.
#include "Xlib.h"
/*
- * XCreateBitmapFromData: Routine to make a pixmap of depth 1 from user
+ * XCreateBitmapFromData: Routine to make a pixmap of depth 1 from user
* supplied data.
* D is any drawable on the same screen that the pixmap will be used in.
- * Data is a pointer to the bit data, and
+ * Data is a pointer to the bit data, and
* width & height give the size in bits of the pixmap.
*
* The following format is assumed for data:
@@ -47,7 +47,7 @@ in this Software without prior written authorization from The Open Group.
* bitmap_unit=8
* xoffset=0
* no extra bytes per line
- */
+ */
Pixmap XCreateBitmapFromData(
Display *display,
Drawable d,
diff --git a/src/CrCursor.c b/src/CrCursor.c
index ba1b0c2b..6417b0eb 100644
--- a/src/CrCursor.c
+++ b/src/CrCursor.c
@@ -41,22 +41,22 @@ _XTryShapeBitmapCursor (Display *dpy,
unsigned int x,
unsigned int y);
#endif
-
+
Cursor XCreatePixmapCursor(
register Display *dpy,
Pixmap source,
Pixmap mask,
- XColor *foreground,
+ XColor *foreground,
XColor *background,
unsigned int x,
unsigned int y)
-{
+{
register xCreateCursorReq *req;
Cursor cid;
#ifdef USE_DYNAMIC_XCURSOR
- cid = _XTryShapeBitmapCursor (dpy, source, mask,
+ cid = _XTryShapeBitmapCursor (dpy, source, mask,
foreground, background, x, y);
if (cid)
return cid;
diff --git a/src/CrGC.c b/src/CrGC.c
index e6aa3580..23fd279f 100644
--- a/src/CrGC.c
+++ b/src/CrGC.c
@@ -150,10 +150,10 @@ _XGenerateGCList (
req->length += (nvalues = value - values);
- /*
+ /*
* note: Data is a macro that uses its arguments multiple
* times, so "nvalues" is changed in a separate assignment
- * statement
+ * statement
*/
nvalues <<= 2;
@@ -175,7 +175,7 @@ _XUpdateGCCache (
gv->function = attr->function;
gc->dirty |= GCFunction;
}
-
+
if (mask & GCPlaneMask)
if (gv->plane_mask != attr->plane_mask) {
gv->plane_mask = attr->plane_mask;
@@ -211,7 +211,7 @@ _XUpdateGCCache (
gv->cap_style = attr->cap_style;
gc->dirty |= GCCapStyle;
}
-
+
if (mask & GCJoinStyle)
if (gv->join_style != attr->join_style) {
gv->join_style = attr->join_style;
@@ -333,7 +333,7 @@ void _XFlushGCCache(
}
}
-void
+void
XFlushGC(
Display *dpy,
GC gc)
@@ -342,6 +342,6 @@ XFlushGC(
}
GContext XGContextFromGC(GC gc)
-{
+{
return (gc->gid);
}
diff --git a/src/CrGlCur.c b/src/CrGlCur.c
index 0adb4a4a..d698d960 100644
--- a/src/CrGlCur.c
+++ b/src/CrGlCur.c
@@ -89,7 +89,7 @@ fetch_symbol (XModuleType module, const char *under_symbol)
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
-
+
getsyms_cnt = shl_getsymbols(module, TYPE_PROCEDURE,
EXPORT_SYMBOLS, malloc, &symbols);
@@ -228,12 +228,12 @@ Cursor XCreateGlyphCursor(
unsigned int mask_char,
XColor _Xconst *foreground,
XColor _Xconst *background)
-{
+{
Cursor cid;
register xCreateGlyphCursorReq *req;
#ifdef USE_DYNAMIC_XCURSOR
- cid = _XTryShapeCursor (dpy, source_font, mask_font,
+ cid = _XTryShapeCursor (dpy, source_font, mask_font,
source_char, mask_char, foreground, background);
if (cid)
return cid;
diff --git a/src/CrPFBData.c b/src/CrPFBData.c
index e08b65c2..8ec88abb 100644
--- a/src/CrPFBData.c
+++ b/src/CrPFBData.c
@@ -34,7 +34,7 @@ in this Software without prior written authorization from The Open Group.
/*
* XCreatePixmapFromBitmapData: Routine to make a pixmap from user supplied bitmap data.
* D is any drawable on the same screen that the pixmap will be used in.
- * Data is a pointer to the bit data, and
+ * Data is a pointer to the bit data, and
* width & height give the size in bits of the pixmap.
* Fg and Bg are the pixel values to use for the two colors.
* Depth is the depth of the pixmap to create.
@@ -48,14 +48,14 @@ in this Software without prior written authorization from The Open Group.
* bitmap_unit=8
* xoffset=0
* no extra bytes per line
- */
+ */
Pixmap XCreatePixmapFromBitmapData(
Display *display,
Drawable d,
char *data,
- unsigned int width,
+ unsigned int width,
unsigned int height,
- unsigned long fg,
+ unsigned long fg,
unsigned long bg,
unsigned int depth)
{
diff --git a/src/CrWindow.c b/src/CrWindow.c
index d0b17a2a..ca56d60f 100644
--- a/src/CrWindow.c
+++ b/src/CrWindow.c
@@ -33,9 +33,9 @@ in this Software without prior written authorization from The Open Group.
Window XCreateSimpleWindow(
register Display *dpy,
Window parent,
- int x,
+ int x,
int y,
- unsigned int width,
+ unsigned int width,
unsigned int height,
unsigned int borderWidth,
unsigned long border,
diff --git a/src/Cursor.c b/src/Cursor.c
index 76ac3be7..4bacfc97 100644
--- a/src/Cursor.c
+++ b/src/Cursor.c
@@ -37,7 +37,7 @@ Cursor XCreateFontCursor(
Display *dpy,
unsigned int which)
{
- /*
+ /*
* the cursor font contains the shape glyph followed by the mask
* glyph; so character position 0 contains a shape, 1 the mask for 0,
* 2 a shape, etc. <X11/cursorfont.h> contains hash define names
@@ -49,7 +49,7 @@ Cursor XCreateFontCursor(
if (dpy->cursor_font == None) return None;
}
- return XCreateGlyphCursor (dpy, dpy->cursor_font, dpy->cursor_font,
+ return XCreateGlyphCursor (dpy, dpy->cursor_font, dpy->cursor_font,
which, which + 1, &foreground, &background);
}
diff --git a/src/Depths.c b/src/Depths.c
index dba1471d..7285be1c 100644
--- a/src/Depths.c
+++ b/src/Depths.c
@@ -52,7 +52,7 @@ int *XListDepths (
depths = (int *) Xmalloc (count * sizeof(int));
if (!depths) return NULL;
- for (i = 0, dp = scr->depths; i < count; i++, dp++)
+ for (i = 0, dp = scr->depths; i < count; i++, dp++)
depths[i] = dp->depth;
} else {
/* a screen must have a depth */
diff --git a/src/DisName.c b/src/DisName.c
index 59b5b3e1..385ec39d 100644
--- a/src/DisName.c
+++ b/src/DisName.c
@@ -30,14 +30,14 @@ from The Open Group.
/* $XFree86$ */
/* XDisplayName.c */
-/*
+/*
* Returns the name of the display XOpenDisplay would use. This is better
* than just printing the "display" variable in a program because that
* could be NULL and/or there could be an environment variable set.
* This makes it easier for programmers to provide meaningful error
- * messages.
+ * messages.
+ *
*
- *
* For example, this is used in XOpenDisplay() as
* strncpy( displaybuf, XDisplayName( display ), sizeof(displaybuf) );
* if ( *displaybuf == '\0' ) return( NULL );
diff --git a/src/DrArc.c b/src/DrArc.c
index 1f1c86a7..5bc6c4a0 100644
--- a/src/DrArc.c
+++ b/src/DrArc.c
@@ -31,7 +31,7 @@ in this Software without prior written authorization from The Open Group.
We don't do this because X_PolyArc applies the GC's join-style if
the last point in one arc coincides with the first point in another.
The client wouldn't expect this and would have no easy way to defeat it. */
-
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -46,7 +46,7 @@ XDrawArc(
int y, /* INT16 */
unsigned int width,
unsigned int height, /* CARD16 */
- int angle1,
+ int angle1,
int angle2) /* INT16 */
{
register xPolyArcReq *req;
diff --git a/src/DrLine.c b/src/DrLine.c
index 9c5275b0..29a3ecbf 100644
--- a/src/DrLine.c
+++ b/src/DrLine.c
@@ -42,8 +42,8 @@ XDrawLine (
Drawable d,
GC gc,
int x1,
- int y1,
- int x2,
+ int y1,
+ int x2,
int y2)
{
register xSegment *segment;
diff --git a/src/DrRect.c b/src/DrRect.c
index 682c0024..a707228a 100644
--- a/src/DrRect.c
+++ b/src/DrRect.c
@@ -41,7 +41,7 @@ XDrawRectangle(
register Display *dpy,
Drawable d,
GC gc,
- int x,
+ int x,
int y, /* INT16 */
unsigned int width,
unsigned int height) /* CARD16 */
diff --git a/src/ErrDes.c b/src/ErrDes.c
index ca5dfeb3..d60ca213 100644
--- a/src/ErrDes.c
+++ b/src/ErrDes.c
@@ -32,13 +32,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -126,7 +126,7 @@ XGetErrorText(
ext->codes.first_error < code &&
(!bext || ext->codes.first_error > bext->codes.first_error))
bext = ext;
- }
+ }
if (!buffer[0] && bext) {
sprintf(buf, "%s.%d", bext->name, code - bext->codes.first_error);
(void) XGetErrorDatabaseText(dpy, "XProtoError", buf, "", buffer, nbytes);
@@ -194,7 +194,7 @@ XGetErrorDatabaseText(
tptr = Xmalloc (tlen);
if (tptr) {
sprintf(tptr, "%s.%s", name, type);
- XrmGetResource(db, tptr, "ErrorType.ErrorNumber",
+ XrmGetResource(db, tptr, "ErrorType.ErrorNumber",
&type_str, &result);
if (tptr != temp)
Xfree (tptr);
diff --git a/src/ErrHndlr.c b/src/ErrHndlr.c
index b3c2ce5a..52205fbe 100644
--- a/src/ErrHndlr.c
+++ b/src/ErrHndlr.c
@@ -31,12 +31,12 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* XErrorHandler - This procedure sets the X non-fatal error handler
* (_XErrorFunction) to be the specified routine. If NULL is passed in
* the original error handler is restored.
*/
-
+
XErrorHandler
XSetErrorHandler(XErrorHandler handler)
{
@@ -59,12 +59,12 @@ XSetErrorHandler(XErrorHandler handler)
return (XErrorHandler) oldhandler;
}
-/*
+/*
* XIOErrorHandler - This procedure sets the X fatal I/O error handler
- * (_XIOErrorFunction) to be the specified routine. If NULL is passed in
+ * (_XIOErrorFunction) to be the specified routine. If NULL is passed in
* the original error handler is restored.
*/
-
+
XIOErrorHandler
XSetIOErrorHandler(XIOErrorHandler handler)
{
diff --git a/src/EvToWire.c b/src/EvToWire.c
index 14335279..124fb744 100644
--- a/src/EvToWire.c
+++ b/src/EvToWire.c
@@ -355,12 +355,12 @@ register xEvent *event) /* wire protocol event */
case ClientMessage:
{
register int i;
- register XClientMessageEvent *ev
+ register XClientMessageEvent *ev
= (XClientMessageEvent *) re;
event->u.clientMessage.window = ev->window;
event->u.u.detail = ev->format;
switch (ev->format) {
- case 8:
+ case 8:
event->u.clientMessage.u.b.type = ev->message_type;
for (i = 0; i < 20; i++)
event->u.clientMessage.u.b.bytes[i] = ev->data.b[i];
@@ -400,7 +400,7 @@ register xEvent *event) /* wire protocol event */
event->u.mappingNotify.count = ev->count;
}
break;
-
+
default:
return(_XUnknownNativeEvent(dpy, re, event));
}
diff --git a/src/FSWrap.c b/src/FSWrap.c
index b4e17e44..0ea34894 100644
--- a/src/FSWrap.c
+++ b/src/FSWrap.c
@@ -18,15 +18,15 @@
* OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
+ *
+ * M. Collins OSF
*
* Katsuhisa Yano TOSHIBA Corp.
- */
+ */
/*
@@ -181,13 +181,13 @@ XCreateFontSet (
om = XOpenOM(dpy, NULL, NULL, NULL);
if (om == NULL)
return (XFontSet) NULL;
-
+
if ((oc = XCreateOC(om, XNBaseFontName, base_font_name_list, NULL))) {
list = &oc->core.missing_list;
oc->core.om_automatic = True;
} else
list = &om->core.required_charset;
-
+
*missing_charset_list = copy_string_list(list->charset_list,
list->charset_count);
*missing_charset_count = list->charset_count;
@@ -200,7 +200,7 @@ XCreateFontSet (
if (!*def_string)
*def_string = "";
}
-
+
if (oc == NULL)
XCloseOM(om);
diff --git a/src/FetchName.c b/src/FetchName.c
index 16b2f7a3..a04e343f 100644
--- a/src/FetchName.c
+++ b/src/FetchName.c
@@ -44,7 +44,7 @@ Status XFetchName (
unsigned long nitems;
unsigned long leftover;
unsigned char *data = NULL;
- if (XGetWindowProperty(dpy, w, XA_WM_NAME, 0L, (long)BUFSIZ, False, XA_STRING,
+ if (XGetWindowProperty(dpy, w, XA_WM_NAME, 0L, (long)BUFSIZ, False, XA_STRING,
&actual_type,
&actual_format, &nitems, &leftover, &data) != Success) {
*name = NULL;
@@ -75,7 +75,7 @@ Status XGetIconName (
unsigned long leftover;
unsigned char *data = NULL;
if (XGetWindowProperty(dpy, w, XA_WM_ICON_NAME, 0L, (long)BUFSIZ, False,
- XA_STRING,
+ XA_STRING,
&actual_type,
&actual_format, &nitems, &leftover, &data) != Success) {
*icon_name = NULL;
diff --git a/src/FillPoly.c b/src/FillPoly.c
index b3a7f636..3ec3545f 100644
--- a/src/FillPoly.c
+++ b/src/FillPoly.c
@@ -58,7 +58,7 @@ XFillPolygon(
/* shift (mult. by 4) before passing to the (possible) macro */
nbytes = n_points << 2;
-
+
Data16 (dpy, (short *) points, nbytes);
UnlockDisplay(dpy);
SyncHandle();
diff --git a/src/FillRct.c b/src/FillRct.c
index 09bc5422..2859ceb5 100644
--- a/src/FillRct.c
+++ b/src/FillRct.c
@@ -42,7 +42,7 @@ XFillRectangle(
GC gc,
int x,
int y, /* INT16 */
- unsigned int width,
+ unsigned int width,
unsigned int height) /* CARD16 */
{
xRectangle *rect;
@@ -57,7 +57,7 @@ XFillRectangle(
FlushGC(dpy, gc);
{
- register xPolyFillRectangleReq *req
+ register xPolyFillRectangleReq *req
= (xPolyFillRectangleReq *) dpy->last_req;
/* if same as previous request, with same drawable, batch requests */
diff --git a/src/FillRcts.c b/src/FillRcts.c
index 54011f65..1e66d443 100644
--- a/src/FillRcts.c
+++ b/src/FillRcts.c
@@ -65,4 +65,4 @@ XFillRectangles(
SyncHandle();
return 1;
}
-
+
diff --git a/src/FilterEv.c b/src/FilterEv.c
index 3191759c..683ba33d 100644
--- a/src/FilterEv.c
+++ b/src/FilterEv.c
@@ -19,12 +19,12 @@
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * PERFORMANCE OF THIS SOFTWARE.
*
* Author: Seiji Kuwari OMRON Corporation
* kuwa@omron.co.jp
* kuwa%omron.co.jp@uunet.uu.net
- */
+ */
/*
diff --git a/src/Font.c b/src/Font.c
index 5165d5e6..244cd2d7 100644
--- a/src/Font.c
+++ b/src/Font.c
@@ -153,7 +153,7 @@ int
XFreeFont(
register Display *dpy,
XFontStruct *fs)
-{
+{
register xResourceReq *req;
register _XExtension *ext;
@@ -230,7 +230,7 @@ _XQueryFont (
fs->all_chars_exist = reply.allCharsExist;
fs->ascent = cvtINT16toInt (reply.fontAscent);
fs->descent = cvtINT16toInt (reply.fontDescent);
-
+
#ifdef MUSTCOPY
{
xCharInfo *xcip;
@@ -258,7 +258,7 @@ _XQueryFont (
#endif /* MUSTCOPY */
fs->n_properties = reply.nFontProps;
- /*
+ /*
* if no properties defined for the font, then it is bad
* font, but shouldn't try to read nothing.
*/
@@ -290,7 +290,7 @@ _XQueryFont (
(reply.nCharInfos * SIZEOF(xCharInfo)));
return (XFontStruct *)NULL;
}
-
+
#ifdef MUSTCOPY
{
register XCharStruct *cs = fs->per_char;
@@ -516,7 +516,7 @@ _XF86BigfontQueryFont (
fs->max_bounds = * (XCharStruct *) &reply.maxBounds;
fs->n_properties = reply.nFontProps;
- /*
+ /*
* if no properties defined for the font, then it is bad
* font, but shouldn't try to read nothing.
*/
diff --git a/src/FontInfo.c b/src/FontInfo.c
index 0a741b93..796dcccd 100644
--- a/src/FontInfo.c
+++ b/src/FontInfo.c
@@ -47,7 +47,7 @@ _Xconst char *pattern, /* null-terminated */
int maxNames,
int *actualCount, /* RETURN */
XFontStruct **info) /* RETURN */
-{
+{
register long nbytes;
register int i;
register XFontStruct *fs;
@@ -68,7 +68,7 @@ XFontStruct **info) /* RETURN */
for (i = 0; ; i++) {
if (!_XReply (dpy, (xReply *) &reply,
- ((SIZEOF(xListFontsWithInfoReply) -
+ ((SIZEOF(xListFontsWithInfoReply) -
SIZEOF(xGenericReply)) >> 2), xFalse)) {
for (j=(i-1); (j >= 0); j--) {
Xfree(flist[j]);
@@ -86,7 +86,7 @@ XFontStruct **info) /* RETURN */
size = i + reply.nReplies + 1;
if (finfo) {
- XFontStruct * tmp_finfo = (XFontStruct *)
+ XFontStruct * tmp_finfo = (XFontStruct *)
Xrealloc ((char *) finfo,
(unsigned) (sizeof(XFontStruct) * size));
char ** tmp_flist = (char **)
@@ -134,7 +134,7 @@ XFontStruct **info) /* RETURN */
fs->all_chars_exist = reply.allCharsExist;
fs->ascent = cvtINT16toInt (reply.fontAscent);
fs->descent = cvtINT16toInt (reply.fontDescent);
-
+
#ifdef MUSTCOPY
{
xCharInfo *xcip;
diff --git a/src/FontNames.c b/src/FontNames.c
index dc097856..97a0e7a3 100644
--- a/src/FontNames.c
+++ b/src/FontNames.c
@@ -39,7 +39,7 @@ register Display *dpy,
_Xconst char *pattern, /* null-terminated */
int maxNames,
int *actualCount) /* RETURN */
-{
+{
register long nbytes;
register unsigned i;
register int length;
@@ -102,7 +102,7 @@ int *actualCount) /* RETURN */
int
XFreeFontNames(char **list)
-{
+{
if (list) {
if (!*(list[0]-1)) { /* from ListFontsWithInfo */
register char **names;
diff --git a/src/FreeEData.c b/src/FreeEData.c
index f70820be..bb4bb2cb 100644
--- a/src/FreeEData.c
+++ b/src/FreeEData.c
@@ -36,7 +36,7 @@ _XFreeExtData (XExtData *extension)
{
XExtData *temp;
while (extension) {
- if (extension->free_private)
+ if (extension->free_private)
(*extension->free_private)(extension);
else Xfree ((char *)extension->private_data);
temp = extension->next;
diff --git a/src/FreeGC.c b/src/FreeGC.c
index e76f70b9..1e67cdc6 100644
--- a/src/FreeGC.c
+++ b/src/FreeGC.c
@@ -49,4 +49,4 @@ XFreeGC (
Xfree ((char *) gc);
return 1;
}
-
+
diff --git a/src/FreePix.c b/src/FreePix.c
index 55bcd639..785d66fa 100644
--- a/src/FreePix.c
+++ b/src/FreePix.c
@@ -35,8 +35,8 @@ int
XFreePixmap(
register Display *dpy,
Pixmap pixmap)
-{
- register xResourceReq *req;
+{
+ register xResourceReq *req;
LockDisplay(dpy);
GetResReq(FreePixmap, pixmap, req);
UnlockDisplay(dpy);
diff --git a/src/Geom.c b/src/Geom.c
index 498c4455..ab85b97e 100644
--- a/src/Geom.c
+++ b/src/Geom.c
@@ -67,11 +67,11 @@ XGeometry (
dmask = XParseGeometry(def, &dx, &dy, &dwidth, &dheight);
/* set default values */
- *x = (dmask & XNegative) ?
- DisplayWidth(dpy, screen) + dx - dwidth * fwidth -
+ *x = (dmask & XNegative) ?
+ DisplayWidth(dpy, screen) + dx - dwidth * fwidth -
2 * bwidth - xadd : dx;
- *y = (dmask & YNegative) ?
- DisplayHeight(dpy, screen) + dy - dheight * fheight -
+ *y = (dmask & YNegative) ?
+ DisplayHeight(dpy, screen) + dy - dheight * fheight -
2 * bwidth - yadd : dy;
*width = dwidth;
*height = dheight;
@@ -81,11 +81,11 @@ XGeometry (
if (pmask & XValue)
*x = (pmask & XNegative) ?
- DisplayWidth(dpy, screen) + px - *width * fwidth -
+ DisplayWidth(dpy, screen) + px - *width * fwidth -
2 * bwidth - xadd : px;
if (pmask & YValue)
*y = (pmask & YNegative) ?
- DisplayHeight(dpy, screen) + py - *height * fheight -
+ DisplayHeight(dpy, screen) + py - *height * fheight -
2 * bwidth - yadd : py;
return (pmask);
}
diff --git a/src/GetAtomNm.c b/src/GetAtomNm.c
index 45b4f481..3ef24a12 100644
--- a/src/GetAtomNm.c
+++ b/src/GetAtomNm.c
@@ -52,7 +52,7 @@ char *_XGetAtomName(
if ((name = (char *)Xmalloc(idx)))
strcpy(name, EntryName(e));
return name;
- }
+ }
}
}
GetResReq(GetAtomName, atom, req);
@@ -70,7 +70,7 @@ char *XGetAtomName(
if ((name = _XGetAtomName(dpy, atom))) {
UnlockDisplay(dpy);
return name;
- }
+ }
if (_XReply(dpy, (xReply *)&rep, 0, xFalse) == 0) {
UnlockDisplay(dpy);
SyncHandle();
diff --git a/src/GetDflt.c b/src/GetDflt.c
index 7b401525..32dbb5a9 100644
--- a/src/GetDflt.c
+++ b/src/GetDflt.c
@@ -29,13 +29,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/GetFProp.c b/src/GetFProp.c
index e64d9096..cb0da2dc 100644
--- a/src/GetFProp.c
+++ b/src/GetFProp.c
@@ -50,7 +50,7 @@ Bool XGetFontProperty (
return (0);
}
-
-
-
+
+
+
diff --git a/src/GetGeom.c b/src/GetGeom.c
index 7b44be9f..aeabc00a 100644
--- a/src/GetGeom.c
+++ b/src/GetGeom.c
@@ -35,10 +35,10 @@ Status XGetGeometry (
register Display *dpy,
Drawable d,
Window *root, /* RETURN */
- int *x,
+ int *x,
int *y, /* RETURN */
unsigned int *width,
- unsigned int *height,
+ unsigned int *height,
unsigned int *borderWidth,
unsigned int *depth) /* RETURN */
{
diff --git a/src/GetHints.c b/src/GetHints.c
index e5ccbcf7..f52a8922 100644
--- a/src/GetHints.c
+++ b/src/GetHints.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -99,7 +99,7 @@ Status XGetSizeHints (
return(1);
}
-/*
+/*
* must return a pointer to the hint, in malloc'd memory, or routine is not
* extensible; any use of the caller's memory would cause things to be stepped
* on.
@@ -115,7 +115,7 @@ XWMHints *XGetWMHints (
int actual_format;
unsigned long leftover;
unsigned long nitems;
- if (XGetWindowProperty(dpy, w, XA_WM_HINTS,
+ if (XGetWindowProperty(dpy, w, XA_WM_HINTS,
0L, (long)NumPropWMHintsElements,
False, XA_WM_HINTS, &actual_type, &actual_format,
&nitems, &leftover, (unsigned char **)&prop)
@@ -166,9 +166,9 @@ XGetNormalHints (
return (XGetSizeHints(dpy, w, hints, XA_WM_NORMAL_HINTS));
}
-
+
/*
- * XGetIconSizes reads the property
+ * XGetIconSizes reads the property
* ICONSIZE_ATOM type: ICONSIZE_ATOM format: 32
*/
@@ -205,7 +205,7 @@ Status XGetIconSizes (
/* static copies not allowed in library, due to reentrancy constraint*/
nitems /= NumPropIconSizeElements;
- if (! (hp = hints = (XIconSize *)
+ if (! (hp = hints = (XIconSize *)
Xcalloc ((unsigned) nitems, (unsigned) sizeof(XIconSize)))) {
if (prop) Xfree ((char *) prop);
return 0;
@@ -280,7 +280,7 @@ XGetTransientForHint(
unsigned long leftover;
Window *data = NULL;
if (XGetWindowProperty(dpy, w, XA_WM_TRANSIENT_FOR, 0L, 1L, False,
- XA_WINDOW,
+ XA_WINDOW,
&actual_type,
&actual_format, &nitems, &leftover, (unsigned char **) &data)
!= Success) {
@@ -312,11 +312,11 @@ XGetClassHint(
unsigned long leftover;
unsigned char *data = NULL;
if (XGetWindowProperty(dpy, w, XA_WM_CLASS, 0L, (long)BUFSIZ, False,
- XA_STRING,
+ XA_STRING,
&actual_type,
&actual_format, &nitems, &leftover, &data) != Success)
return (0);
-
+
if ( (actual_type == XA_STRING) && (actual_format == 8) ) {
len_name = strlen((char *) data);
if (! (classhint->res_name = Xmalloc((unsigned) (len_name+1)))) {
diff --git a/src/GetIFocus.c b/src/GetIFocus.c
index 6e6f544b..0f7c508d 100644
--- a/src/GetIFocus.c
+++ b/src/GetIFocus.c
@@ -37,7 +37,7 @@ XGetInputFocus(
register Display *dpy,
Window *focus,
int *revert_to)
-{
+{
xGetInputFocusReply rep;
register xReq *req;
LockDisplay(dpy);
diff --git a/src/GetImage.c b/src/GetImage.c
index 4a376c67..99c8d6e9 100644
--- a/src/GetImage.c
+++ b/src/GetImage.c
@@ -73,14 +73,14 @@ XImage *XGetImage (
req->height = height;
req->planeMask = plane_mask;
req->format = format;
-
+
if (_XReply (dpy, (xReply *) &rep, 0, xFalse) == 0 ||
rep.length == 0) {
UnlockDisplay(dpy);
SyncHandle();
return (XImage *)NULL;
}
-
+
nbytes = (long)rep.length << 2;
data = (char *) Xmalloc((unsigned) nbytes);
if (! data) {
@@ -117,15 +117,15 @@ XImage *XGetSubImage(
unsigned long plane_mask,
int format, /* either XYPixmap or ZPixmap */
XImage *dest_image,
- int dest_x,
+ int dest_x,
int dest_y)
{
XImage *temp_image;
- temp_image = XGetImage(dpy, d, x, y, width, height,
+ temp_image = XGetImage(dpy, d, x, y, width, height,
plane_mask, format);
if (!temp_image)
return (XImage *)NULL;
_XSetImage(temp_image, dest_image, dest_x, dest_y);
XDestroyImage(temp_image);
return (dest_image);
-}
+}
diff --git a/src/GetKCnt.c b/src/GetKCnt.c
index 2cd41d09..f0ed3e19 100644
--- a/src/GetKCnt.c
+++ b/src/GetKCnt.c
@@ -41,7 +41,7 @@ XGetKeyboardControl (
register xReq *req;
LockDisplay(dpy);
GetEmptyReq (GetKeyboardControl, req);
- (void) _XReply (dpy, (xReply *) &rep,
+ (void) _XReply (dpy, (xReply *) &rep,
(SIZEOF(xGetKeyboardControlReply) - SIZEOF(xReply)) >> 2, xTrue);
state->key_click_percent = rep.keyClickPercent;
diff --git a/src/GetMoEv.c b/src/GetMoEv.c
index dac1bfc4..a200f787 100644
--- a/src/GetMoEv.c
+++ b/src/GetMoEv.c
@@ -34,10 +34,10 @@ in this Software without prior written authorization from The Open Group.
XTimeCoord *XGetMotionEvents(
register Display *dpy,
Window w,
- Time start,
+ Time start,
Time stop,
int *nEvents) /* RETURN */
-{
+{
xGetMotionEventsReply rep;
register xGetMotionEventsReq *req;
XTimeCoord *tc = NULL;
@@ -53,10 +53,10 @@ XTimeCoord *XGetMotionEvents(
SyncHandle();
return (NULL);
}
-
+
if (rep.nEvents) {
if (! (tc = (XTimeCoord *)
- Xmalloc( (unsigned)
+ Xmalloc( (unsigned)
(nbytes = (long) rep.nEvents * sizeof(XTimeCoord))))) {
_XEatData (dpy, (unsigned long) nbytes);
UnlockDisplay(dpy);
diff --git a/src/GetNrmHint.c b/src/GetNrmHint.c
index 46841a60..62daa84b 100644
--- a/src/GetNrmHint.c
+++ b/src/GetNrmHint.c
@@ -5,20 +5,20 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
-
-DIGITAL AND WYSE DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-EVENT SHALL DIGITAL OR WYSE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
-USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+software without specific, written prior permission.
+
+DIGITAL AND WYSE DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL DIGITAL OR WYSE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
@@ -74,10 +74,10 @@ Status XGetWMSizeHints (
unsigned long leftover;
unsigned long nitems;
- if (XGetWindowProperty (dpy, w, property, 0L,
+ if (XGetWindowProperty (dpy, w, property, 0L,
(long)NumPropSizeElements,
False, XA_WM_SIZE_HINTS, &actual_type,
- &actual_format, &nitems, &leftover,
+ &actual_format, &nitems, &leftover,
(unsigned char **)&prop)
!= Success)
return False;
diff --git a/src/GetPCnt.c b/src/GetPCnt.c
index 55a2f215..857f9733 100644
--- a/src/GetPCnt.c
+++ b/src/GetPCnt.c
@@ -39,7 +39,7 @@ XGetPointerControl(
int *accel_numer,
int *accel_denom,
int *threshold)
-{
+{
xGetPointerControlReply rep;
xReq *req;
LockDisplay(dpy);
diff --git a/src/GetPntMap.c b/src/GetPntMap.c
index 426c9ac9..f3446354 100644
--- a/src/GetPntMap.c
+++ b/src/GetPntMap.c
@@ -67,11 +67,11 @@ int XGetPointerMapping (
_XRead (dpy, (char *)mapping, nbytes);
/* don't return more data than the user asked for. */
if (rep.nElts) {
- memcpy ((char *) map, (char *) mapping,
+ memcpy ((char *) map, (char *) mapping,
MIN((int)rep.nElts, nmaps) );
}
- if (remainder)
+ if (remainder)
_XEatData(dpy, (unsigned long)remainder);
UnlockDisplay(dpy);
diff --git a/src/GetProp.c b/src/GetProp.c
index 12c641e3..564e1f77 100644
--- a/src/GetProp.c
+++ b/src/GetProp.c
@@ -60,22 +60,22 @@ XGetWindowProperty(
req->longOffset = offset;
req->longLength = length;
error.sequenceNumber = dpy->request;
-
+
if (!_XReply (dpy, (xReply *) &reply, 0, xFalse)) {
UnlockDisplay(dpy);
SyncHandle();
return (1); /* not Success */
- }
+ }
*prop = (unsigned char *) NULL;
if (reply.propertyType != None) {
long nbytes, netbytes;
switch (reply.format) {
- /*
+ /*
* One extra byte is malloced than is needed to contain the property
- * data, but this last byte is null terminated and convenient for
- * returning string properties, so the client doesn't then have to
- * recopy the string to make it null terminated.
+ * data, but this last byte is null terminated and convenient for
+ * returning string properties, so the client doesn't then have to
+ * recopy the string to make it null terminated.
*/
case 8:
nbytes = netbytes = reply.nItems;
@@ -104,7 +104,7 @@ XGetWindowProperty(
/*
* This part of the code should never be reached. If it is,
* the server sent back a property with an invalid format.
- * This is a BadImplementation error.
+ * This is a BadImplementation error.
*/
{
/* sequence number stored above */
diff --git a/src/GetRGBCMap.c b/src/GetRGBCMap.c
index 45a94b78..99bdcfbb 100644
--- a/src/GetRGBCMap.c
+++ b/src/GetRGBCMap.c
@@ -69,7 +69,7 @@ Status XGetRGBColormaps (
}
/*
- * See how many properties were found; if pre-ICCCM then assume
+ * See how many properties were found; if pre-ICCCM then assume
* default visual and a kill id of 1.
*/
if (nitems < NumPropStandardColormapElements) {
@@ -86,7 +86,7 @@ Status XGetRGBColormaps (
}
} else {
/*
- * make sure we have an integral number of colormaps
+ * make sure we have an integral number of colormaps
*/
ncmaps = (nitems / NumPropStandardColormapElements);
if ((((unsigned long) ncmaps) * NumPropStandardColormapElements) !=
@@ -96,7 +96,7 @@ Status XGetRGBColormaps (
}
}
-
+
/*
* allocate array
*/
diff --git a/src/GetSSaver.c b/src/GetSSaver.c
index 08068046..c587c69c 100644
--- a/src/GetSSaver.c
+++ b/src/GetSSaver.c
@@ -40,8 +40,8 @@ XGetScreenSaver(
int *interval,
int *prefer_blanking,
int *allow_exp) /*boolean */
-
-{
+
+{
xGetScreenSaverReply rep;
register xReq *req;
LockDisplay(dpy);
diff --git a/src/GetStCmap.c b/src/GetStCmap.c
index 0c05cbbf..bdd57f77 100644
--- a/src/GetStCmap.c
+++ b/src/GetStCmap.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -57,7 +57,7 @@ SOFTWARE.
/*
* WARNING
- *
+ *
* This is a pre-ICCCM routine. It must not reference any of the new fields
* in the XStandardColormap structure.
*/
@@ -99,7 +99,7 @@ Status XGetStandardColormap (
} else {
use = stdcmaps;
}
-
+
/*
* assign only those fields which were in the pre-ICCCM version
*/
diff --git a/src/GetTxtProp.c b/src/GetTxtProp.c
index 90db0d44..44e983a6 100644
--- a/src/GetTxtProp.c
+++ b/src/GetTxtProp.c
@@ -4,13 +4,13 @@ Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Wyse not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/GetWAttrs.c b/src/GetWAttrs.c
index 05f1c112..852c66ed 100644
--- a/src/GetWAttrs.c
+++ b/src/GetWAttrs.c
@@ -91,14 +91,14 @@ _XGetWindowAttributes(
register Display *dpy,
Window w,
XWindowAttributes *attr)
-{
+{
xGetGeometryReply rep;
register xResourceReq *req;
register int i;
register Screen *sp;
_XAsyncHandler async;
_XWAttrsState async_state;
-
+
GetResReq(GetWindowAttributes, w, req);
async_state.attr_seq = dpy->request;
diff --git a/src/GetWMCMapW.c b/src/GetWMCMapW.c
index a99fb62b..b5d481fd 100644
--- a/src/GetWMCMapW.c
+++ b/src/GetWMCMapW.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/GetWMProto.c b/src/GetWMProto.c
index f0be1bb8..bb0ff651 100644
--- a/src/GetWMProto.c
+++ b/src/GetWMProto.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/GrButton.c b/src/GrButton.c
index 17177fd2..499a5155 100644
--- a/src/GrButton.c
+++ b/src/GrButton.c
@@ -39,7 +39,7 @@ XGrabButton(
Window grab_window,
Bool owner_events,
unsigned int event_mask, /* CARD16 */
- int pointer_mode,
+ int pointer_mode,
int keyboard_mode,
Window confine_to,
Cursor curs)
diff --git a/src/GrKey.c b/src/GrKey.c
index 47983b5a..8cd03d93 100644
--- a/src/GrKey.c
+++ b/src/GrKey.c
@@ -38,7 +38,7 @@ XGrabKey(
unsigned int modifiers,
Window grab_window,
Bool owner_events,
- int pointer_mode,
+ int pointer_mode,
int keyboard_mode)
{
diff --git a/src/GrKeybd.c b/src/GrKeybd.c
index e4ea053a..450a67cc 100644
--- a/src/GrKeybd.c
+++ b/src/GrKeybd.c
@@ -50,7 +50,7 @@ int XGrabKeyboard (
req->time = time;
/* if we ever return, suppress the error */
- if (_XReply (dpy, (xReply *) &rep, 0, xTrue) == 0)
+ if (_XReply (dpy, (xReply *) &rep, 0, xTrue) == 0)
rep.status = GrabSuccess;
status = rep.status;
UnlockDisplay(dpy);
diff --git a/src/GrPointer.c b/src/GrPointer.c
index 8aab6865..9958af49 100644
--- a/src/GrPointer.c
+++ b/src/GrPointer.c
@@ -55,7 +55,7 @@ int XGrabPointer(
req->confineTo = confine_to;
req->cursor = curs;
req->time = time;
-
+
/* if we ever return, suppress the error */
if (_XReply (dpy, (xReply *) &rep, 0, xTrue) == 0)
rep.status = GrabSuccess;
diff --git a/src/Host.c b/src/Host.c
index a1ca8701..73d87085 100644
--- a/src/Host.c
+++ b/src/Host.c
@@ -60,7 +60,7 @@ XAddHost (
} else {
addrlen = host->length;
}
-
+
length = (addrlen + 3) & ~0x3; /* round up */
LockDisplay(dpy);
@@ -97,7 +97,7 @@ XRemoveHost (
} else {
addrlen = host->length;
}
-
+
length = (addrlen + 3) & ~0x3; /* round up */
LockDisplay(dpy);
diff --git a/src/Iconify.c b/src/Iconify.c
index 973f3d57..367b1c70 100644
--- a/src/Iconify.c
+++ b/src/Iconify.c
@@ -5,13 +5,13 @@ Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Wyse not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/IfEvent.c b/src/IfEvent.c
index 73a36b4e..05a2b82c 100644
--- a/src/IfEvent.c
+++ b/src/IfEvent.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Flush output and (wait for and) return the next event matching the
* predicate in the queue.
*/
@@ -50,7 +50,7 @@ XIfEvent (
{
register _XQEvent *qelt, *prev;
unsigned long qe_serial = 0;
-
+
LockDisplay(dpy);
prev = NULL;
while (1) {
diff --git a/src/ImText.c b/src/ImText.c
index 4d2f147d..97c26a91 100644
--- a/src/ImText.c
+++ b/src/ImText.c
@@ -41,7 +41,7 @@ XDrawImageString(
int y,
_Xconst char *string,
int length)
-{
+{
register xImageText8Req *req;
char *CharacterOffset = (char *)string;
int FirstTimeThrough = True;
@@ -50,7 +50,7 @@ XDrawImageString(
LockDisplay(dpy);
FlushGC(dpy, gc);
- while (length > 0)
+ while (length > 0)
{
int Unit;
diff --git a/src/ImText16.c b/src/ImText16.c
index d0b5e9bc..3dbe5c13 100644
--- a/src/ImText16.c
+++ b/src/ImText16.c
@@ -41,7 +41,7 @@ XDrawImageString16(
int y,
_Xconst XChar2b *string,
int length)
-{
+{
register xImageText16Req *req;
XChar2b *CharacterOffset = (XChar2b *)string;
int FirstTimeThrough = True;
@@ -50,7 +50,7 @@ XDrawImageString16(
LockDisplay(dpy);
FlushGC(dpy, gc);
- while (length > 0)
+ while (length > 0)
{
int Unit, Datalength;
diff --git a/src/ImUtil.c b/src/ImUtil.c
index d1df7ae2..e79ec155 100644
--- a/src/ImUtil.c
+++ b/src/ImUtil.c
@@ -51,8 +51,8 @@ static int _XAddPixel(XImage *, long);
static unsigned char const _lomask[0x09] = { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
static unsigned char const _himask[0x09] = { 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00 };
-/* These two convenience routines return the scanline_pad and bits_per_pixel
- associated with a specific depth of ZPixmap format image for a
+/* These two convenience routines return the scanline_pad and bits_per_pixel
+ associated with a specific depth of ZPixmap format image for a
display. */
int
@@ -62,14 +62,14 @@ _XGetScanlinePad(
{
register ScreenFormat *fmt = dpy->pixmap_format;
register int i;
-
+
for (i = dpy->nformats + 1; --i; ++fmt)
if (fmt->depth == depth)
return(fmt->scanline_pad);
-
+
return(dpy->bitmap_pad);
}
-
+
int
_XGetBitsPerPixel(
Display *dpy,
@@ -77,7 +77,7 @@ _XGetBitsPerPixel(
{
register ScreenFormat *fmt = dpy->pixmap_format;
register int i;
-
+
for (i = dpy->nformats + 1; --i; ++fmt)
if (fmt->depth == depth)
return(fmt->bits_per_pixel);
@@ -89,7 +89,7 @@ _XGetBitsPerPixel(
return 16;
return 32;
}
-
+
/*
* This module provides rudimentary manipulation routines for image data
@@ -113,7 +113,7 @@ _XGetBitsPerPixel(
*
* The logic contained in these routines makes several assumptions about
* the image data structures, and at least for current implementations
- * these assumptions are believed to be true. They are:
+ * these assumptions are believed to be true. They are:
*
* For all formats, bits_per_pixel is less than or equal to 32.
* For XY formats, bitmap_unit is always less than or equal to bitmap_pad.
@@ -213,31 +213,31 @@ static void _putbits(
break;
}
numbits = numbits - dstoffset;
- }
+ }
}
/*
* Macros
- *
+ *
* The ROUNDUP macro rounds up a quantity to the specified boundary,
* then truncates to bytes.
*
- * The XYNORMALIZE macro determines whether XY format data requires
+ * The XYNORMALIZE macro determines whether XY format data requires
* normalization and calls a routine to do so if needed. The logic in
- * this module is designed for LSBFirst byte and bit order, so
+ * this module is designed for LSBFirst byte and bit order, so
* normalization is done as required to present the data in this order.
*
- * The ZNORMALIZE macro performs byte and nibble order normalization if
+ * The ZNORMALIZE macro performs byte and nibble order normalization if
* required for Z format data.
*
* The XYINDEX macro computes the index to the starting byte (char) boundary
* for a bitmap_unit containing a pixel with coordinates x and y for image
* data in XY format.
- *
- * The ZINDEX macro computes the index to the starting byte (char) boundary
+ *
+ * The ZINDEX macro computes the index to the starting byte (char) boundary
* for a pixel with coordinates x and y for image data in ZPixmap format.
- *
+ *
*/
#if defined(Lynx) && defined(ROUNDUP)
@@ -301,10 +301,10 @@ void _XInitImageFuncPtrs (
/*
* CreateImage
- *
- * Allocates the memory necessary for an XImage data structure.
- * Initializes the structure with "default" values and returns XImage.
- *
+ *
+ * Allocates the memory necessary for an XImage data structure.
+ * Initializes the structure with "default" values and returns XImage.
+ *
*/
XImage *XCreateImage (
@@ -319,7 +319,7 @@ XImage *XCreateImage (
unsigned int width,
unsigned int height,
int xpad,
- int image_bytes_per_line)
+ int image_bytes_per_line)
/*How many bytes between a pixel on one line and the pixel with
the same X coordinate on the next line? 0 means
XCreateImage can calculate it.*/
@@ -351,7 +351,7 @@ XImage *XCreateImage (
else {
image->red_mask = image->green_mask = image->blue_mask = 0;
}
- if (format == ZPixmap)
+ if (format == ZPixmap)
{
bits_per_pixel = _XGetBitsPerPixel(dpy, (int) depth);
}
@@ -365,7 +365,7 @@ XImage *XCreateImage (
*/
{
if (format == ZPixmap)
- min_bytes_per_line =
+ min_bytes_per_line =
ROUNDUP((bits_per_pixel * width), image->bitmap_pad);
else
min_bytes_per_line =
@@ -407,7 +407,7 @@ Status XInitImage (XImage *image)
* compute per line accelerator.
*/
if (image->format == ZPixmap)
- min_bytes_per_line =
+ min_bytes_per_line =
ROUNDUP((image->bits_per_pixel * image->width),
image->bitmap_pad);
else
@@ -427,8 +427,8 @@ Status XInitImage (XImage *image)
/*
* _DestroyImage
- *
- * Deallocates the memory associated with the ximage data structure.
+ *
+ * Deallocates the memory associated with the ximage data structure.
* this version handles the case of the image data being malloc'd
* entirely by the library.
*/
@@ -444,8 +444,8 @@ static int _XDestroyImage (XImage *ximage)
/*
* GetPixel
- *
- * Returns the specified pixel. The X and Y coordinates are relative to
+ *
+ * Returns the specified pixel. The X and Y coordinates are relative to
* the origin (upper left [0,0]) of the image. The pixel value is returned
* in normalized format, i.e. the LSB of the long is the LSB of the pixel.
* The algorithm used is:
@@ -480,7 +480,7 @@ static unsigned long _XGetPixel (
register int i, j;
int bits, nbytes;
long plane;
-
+
if ((ximage->bits_per_pixel | ximage->depth) == 1) {
src = &ximage->data[XYINDEX(x, y, ximage)];
dst = (char *)&pixel;
@@ -509,7 +509,7 @@ static unsigned long _XGetPixel (
dst = (char *)&px;
px = 0;
for (i = (ximage->bits_per_pixel + 7) >> 3; --i >= 0; )
- *dst++ = *src++;
+ *dst++ = *src++;
ZNORMALIZE(&px, ximage);
pixel = 0;
for (i=sizeof(unsigned long); --i >= 0; )
@@ -634,11 +634,11 @@ static unsigned long _XGetPixel1 (
return XGetPixel(ximage, x, y);
}
}
-
+
/*
* PutPixel
- *
- * Overwrites the specified pixel. The X and Y coordinates are relative to
+ *
+ * Overwrites the specified pixel. The X and Y coordinates are relative to
* the origin (upper left [0,0]) of the image. The input pixel value must be
* in normalized format, i.e. the LSB of the long is the LSB of the pixel.
* The algorithm used is:
@@ -711,8 +711,8 @@ static int _XPutPixel (
nbytes = (ximage->bits_per_pixel + 7) >> 3;
for (i = nbytes; --i >= 0; ) *dst++ = *src++;
ZNORMALIZE(&px, ximage);
- _putbits ((char *)&pixel,
- (x * ximage->bits_per_pixel) & 7,
+ _putbits ((char *)&pixel,
+ (x * ximage->bits_per_pixel) & 7,
ximage->bits_per_pixel, (char *)&px);
ZNORMALIZE(&px, ximage);
src = (char *)&px;
@@ -829,9 +829,9 @@ static int _XPutPixel1 (
/*
* SubImage
- *
+ *
* Creates a new image that is a subsection of an existing one.
- * Allocates the memory necessary for the new XImage data structure.
+ * Allocates the memory necessary for the new XImage data structure.
* Pointer to new image is returned. The algorithm used is repetitive
* calls to get and put pixel.
*
@@ -866,8 +866,8 @@ static XImage *_XSubImage (
/*
* compute per line accelerator.
*/
- if (subimage->format == ZPixmap)
- subimage->bytes_per_line =
+ if (subimage->format == ZPixmap)
+ subimage->bytes_per_line =
ROUNDUP(subimage->bits_per_pixel * width,
subimage->bitmap_pad);
else
@@ -904,7 +904,7 @@ static XImage *_XSubImage (
/*
* SetImage
- *
+ *
* Overwrites a section of one image with all of the data from another.
* If the two images are not of the same format (i.e. XYPixmap and ZPixmap),
* the image data is converted to the destination format. The following
@@ -919,7 +919,7 @@ static XImage *_XSubImage (
* 3. If the width of the source image is too large to fit between
* the specified x starting point and the end of the scanline,
* then pixels are truncated on the right.
- *
+ *
* The images need not have the same bitmap_bit_order, byte_order,
* bitmap_unit, bits_per_pixel, bitmap_pad, or xoffset.
*
@@ -963,7 +963,7 @@ int _XSetImage(
/*
* AddPixel
- *
+ *
* Adds a constant value to every pixel in a pixmap.
*
*/
diff --git a/src/InitExt.c b/src/InitExt.c
index 925b9866..92fc44af 100644
--- a/src/InitExt.c
+++ b/src/InitExt.c
@@ -46,7 +46,7 @@ XExtCodes *XInitExtension (
{
XExtCodes codes; /* temp. place for extension information. */
register _XExtension *ext;/* need a place to build it all */
- if (!XQueryExtension(dpy, name,
+ if (!XQueryExtension(dpy, name,
&codes.major_opcode, &codes.first_event,
&codes.first_error)) return (NULL);
@@ -61,7 +61,7 @@ XExtCodes *XInitExtension (
ext->codes = codes;
(void) strcpy(ext->name, name);
- /* chain it onto the display list */
+ /* chain it onto the display list */
ext->next = dpy->ext_procs;
dpy->ext_procs = ext;
UnlockDisplay (dpy);
@@ -363,7 +363,7 @@ BeforeFlushType XESetBeforeFlush(
if (!ext) {
e->next_flush = dpy->flushes;
dpy->flushes = e;
- }
+ }
UnlockDisplay(dpy);
return (BeforeFlushType)oldproc;
}
diff --git a/src/IntAtom.c b/src/IntAtom.c
index 6f160810..d1e76b0c 100644
--- a/src/IntAtom.c
+++ b/src/IntAtom.c
@@ -285,7 +285,7 @@ XInternAtoms (
}
if (_XReply (dpy, (xReply *)&rep, 0, xTrue)) {
if ((atoms_return[missed] = rep.atom))
- _XUpdateAtomCache(dpy, names[missed], (Atom) rep.atom,
+ _XUpdateAtomCache(dpy, names[missed], (Atom) rep.atom,
sig, idx, n);
} else {
atoms_return[missed] = None;
diff --git a/src/KeyBind.c b/src/KeyBind.c
index 3d0551b6..e8becf00 100644
--- a/src/KeyBind.c
+++ b/src/KeyBind.c
@@ -1,5 +1,5 @@
/* $Xorg: KeyBind.c,v 1.4 2001/02/09 02:03:34 xorgcvs Exp $ */
-/*
+/*
Copyright 1985, 1987, 1998 The Open Group
@@ -267,7 +267,7 @@ _XKeyInitialize(
int per, n;
KeySym *keysyms;
- /*
+ /*
* lets go get the keysyms from the server.
*/
if (!dpy->keysyms) {
@@ -340,35 +340,35 @@ UCSConvertCase( register unsigned code,
0x01C0, 0x01C1, 0x01C2, 0x01C3, 0x01C6, 0x01C6, 0x01C6, 0x01C9,
0x01C9, 0x01C9, 0x01CC, 0x01CC, 0x01CC
};
-
+
static unsigned short const Greek_upper_mapping[] = {
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0374, 0x0375, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x037A, 0x0000, 0x0000, 0x0000, 0x037E, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0374, 0x0375, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x037A, 0x0000, 0x0000, 0x0000, 0x037E, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0384, 0x0385, 0x0386, 0x0387,
- 0x0388, 0x0389, 0x038A, 0x0000, 0x038C, 0x0000, 0x038E, 0x038F,
+ 0x0388, 0x0389, 0x038A, 0x0000, 0x038C, 0x0000, 0x038E, 0x038F,
0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397,
- 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F,
- 0x03A0, 0x03A1, 0x0000, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7,
+ 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F,
+ 0x03A0, 0x03A1, 0x0000, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7,
0x03A8, 0x03A9, 0x03AA, 0x03AB, 0x0386, 0x0388, 0x0389, 0x038A,
- 0x03B0, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397,
- 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F,
- 0x03A0, 0x03A1, 0x03A3, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7,
+ 0x03B0, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397,
+ 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F,
+ 0x03A0, 0x03A1, 0x03A3, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7,
0x03A8, 0x03A9, 0x03AA, 0x03AB, 0x038C, 0x038E, 0x038F, 0x0000,
- 0x0392, 0x0398, 0x03D2, 0x03D3, 0x03D4, 0x03A6, 0x03A0, 0x03D7,
- 0x03D8, 0x03D8, 0x03DA, 0x03DA, 0x03DC, 0x03DC, 0x03DE, 0x03DE,
- 0x03E0, 0x03E0, 0x03E2, 0x03E2, 0x03E4, 0x03E4, 0x03E6, 0x03E6,
+ 0x0392, 0x0398, 0x03D2, 0x03D3, 0x03D4, 0x03A6, 0x03A0, 0x03D7,
+ 0x03D8, 0x03D8, 0x03DA, 0x03DA, 0x03DC, 0x03DC, 0x03DE, 0x03DE,
+ 0x03E0, 0x03E0, 0x03E2, 0x03E2, 0x03E4, 0x03E4, 0x03E6, 0x03E6,
0x03E8, 0x03E8, 0x03EA, 0x03EA, 0x03EC, 0x03EC, 0x03EE, 0x03EE,
- 0x039A, 0x03A1, 0x03F9, 0x03F3, 0x03F4, 0x0395, 0x03F6, 0x03F7,
+ 0x039A, 0x03A1, 0x03F9, 0x03F3, 0x03F4, 0x0395, 0x03F6, 0x03F7,
0x03F7, 0x03F9, 0x03FA, 0x03FA, 0x0000, 0x0000, 0x0000, 0x0000
};
static unsigned short const Greek_lower_mapping[] = {
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0374, 0x0375, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0374, 0x0375, 0x0000, 0x0000,
0x0000, 0x0000, 0x037A, 0x0000, 0x0000, 0x0000, 0x037E, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0384, 0x0385, 0x03AC, 0x0387,
0x03AD, 0x03AE, 0x03AF, 0x0000, 0x03CC, 0x0000, 0x03CD, 0x03CE,
0x0390, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7,
- 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
+ 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
0x03C0, 0x03C1, 0x0000, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7,
0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03AC, 0x03AD, 0x03AE, 0x03AF,
0x03B0, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7,
@@ -385,71 +385,71 @@ UCSConvertCase( register unsigned code,
static unsigned short const GreekExt_lower_mapping[] = {
0x1F00, 0x1F01, 0x1F02, 0x1F03, 0x1F04, 0x1F05, 0x1F06, 0x1F07,
- 0x1F00, 0x1F01, 0x1F02, 0x1F03, 0x1F04, 0x1F05, 0x1F06, 0x1F07,
+ 0x1F00, 0x1F01, 0x1F02, 0x1F03, 0x1F04, 0x1F05, 0x1F06, 0x1F07,
0x1F10, 0x1F11, 0x1F12, 0x1F13, 0x1F14, 0x1F15, 0x0000, 0x0000,
0x1F10, 0x1F11, 0x1F12, 0x1F13, 0x1F14, 0x1F15, 0x0000, 0x0000,
- 0x1F20, 0x1F21, 0x1F22, 0x1F23, 0x1F24, 0x1F25, 0x1F26, 0x1F27,
- 0x1F20, 0x1F21, 0x1F22, 0x1F23, 0x1F24, 0x1F25, 0x1F26, 0x1F27,
- 0x1F30, 0x1F31, 0x1F32, 0x1F33, 0x1F34, 0x1F35, 0x1F36, 0x1F37,
- 0x1F30, 0x1F31, 0x1F32, 0x1F33, 0x1F34, 0x1F35, 0x1F36, 0x1F37,
+ 0x1F20, 0x1F21, 0x1F22, 0x1F23, 0x1F24, 0x1F25, 0x1F26, 0x1F27,
+ 0x1F20, 0x1F21, 0x1F22, 0x1F23, 0x1F24, 0x1F25, 0x1F26, 0x1F27,
+ 0x1F30, 0x1F31, 0x1F32, 0x1F33, 0x1F34, 0x1F35, 0x1F36, 0x1F37,
+ 0x1F30, 0x1F31, 0x1F32, 0x1F33, 0x1F34, 0x1F35, 0x1F36, 0x1F37,
0x1F40, 0x1F41, 0x1F42, 0x1F43, 0x1F44, 0x1F45, 0x0000, 0x0000,
0x1F40, 0x1F41, 0x1F42, 0x1F43, 0x1F44, 0x1F45, 0x0000, 0x0000,
- 0x1F50, 0x1F51, 0x1F52, 0x1F53, 0x1F54, 0x1F55, 0x1F56, 0x1F57,
- 0x0000, 0x1F51, 0x0000, 0x1F53, 0x0000, 0x1F55, 0x0000, 0x1F57,
- 0x1F60, 0x1F61, 0x1F62, 0x1F63, 0x1F64, 0x1F65, 0x1F66, 0x1F67,
- 0x1F60, 0x1F61, 0x1F62, 0x1F63, 0x1F64, 0x1F65, 0x1F66, 0x1F67,
- 0x1F70, 0x1F71, 0x1F72, 0x1F73, 0x1F74, 0x1F75, 0x1F76, 0x1F77,
+ 0x1F50, 0x1F51, 0x1F52, 0x1F53, 0x1F54, 0x1F55, 0x1F56, 0x1F57,
+ 0x0000, 0x1F51, 0x0000, 0x1F53, 0x0000, 0x1F55, 0x0000, 0x1F57,
+ 0x1F60, 0x1F61, 0x1F62, 0x1F63, 0x1F64, 0x1F65, 0x1F66, 0x1F67,
+ 0x1F60, 0x1F61, 0x1F62, 0x1F63, 0x1F64, 0x1F65, 0x1F66, 0x1F67,
+ 0x1F70, 0x1F71, 0x1F72, 0x1F73, 0x1F74, 0x1F75, 0x1F76, 0x1F77,
0x1F78, 0x1F79, 0x1F7A, 0x1F7B, 0x1F7C, 0x1F7D, 0x0000, 0x0000,
- 0x1F80, 0x1F81, 0x1F82, 0x1F83, 0x1F84, 0x1F85, 0x1F86, 0x1F87,
- 0x1F80, 0x1F81, 0x1F82, 0x1F83, 0x1F84, 0x1F85, 0x1F86, 0x1F87,
- 0x1F90, 0x1F91, 0x1F92, 0x1F93, 0x1F94, 0x1F95, 0x1F96, 0x1F97,
- 0x1F90, 0x1F91, 0x1F92, 0x1F93, 0x1F94, 0x1F95, 0x1F96, 0x1F97,
- 0x1FA0, 0x1FA1, 0x1FA2, 0x1FA3, 0x1FA4, 0x1FA5, 0x1FA6, 0x1FA7,
- 0x1FA0, 0x1FA1, 0x1FA2, 0x1FA3, 0x1FA4, 0x1FA5, 0x1FA6, 0x1FA7,
- 0x1FB0, 0x1FB1, 0x1FB2, 0x1FB3, 0x1FB4, 0x0000, 0x1FB6, 0x1FB7,
- 0x1FB0, 0x1FB1, 0x1F70, 0x1F71, 0x1FB3, 0x1FBD, 0x1FBE, 0x1FBF,
- 0x1FC0, 0x1FC1, 0x1FC2, 0x1FC3, 0x1FC4, 0x0000, 0x1FC6, 0x1FC7,
- 0x1F72, 0x1F73, 0x1F74, 0x1F75, 0x1FC3, 0x1FCD, 0x1FCE, 0x1FCF,
- 0x1FD0, 0x1FD1, 0x1FD2, 0x1FD3, 0x0000, 0x0000, 0x1FD6, 0x1FD7,
- 0x1FD0, 0x1FD1, 0x1F76, 0x1F77, 0x0000, 0x1FDD, 0x1FDE, 0x1FDF,
+ 0x1F80, 0x1F81, 0x1F82, 0x1F83, 0x1F84, 0x1F85, 0x1F86, 0x1F87,
+ 0x1F80, 0x1F81, 0x1F82, 0x1F83, 0x1F84, 0x1F85, 0x1F86, 0x1F87,
+ 0x1F90, 0x1F91, 0x1F92, 0x1F93, 0x1F94, 0x1F95, 0x1F96, 0x1F97,
+ 0x1F90, 0x1F91, 0x1F92, 0x1F93, 0x1F94, 0x1F95, 0x1F96, 0x1F97,
+ 0x1FA0, 0x1FA1, 0x1FA2, 0x1FA3, 0x1FA4, 0x1FA5, 0x1FA6, 0x1FA7,
+ 0x1FA0, 0x1FA1, 0x1FA2, 0x1FA3, 0x1FA4, 0x1FA5, 0x1FA6, 0x1FA7,
+ 0x1FB0, 0x1FB1, 0x1FB2, 0x1FB3, 0x1FB4, 0x0000, 0x1FB6, 0x1FB7,
+ 0x1FB0, 0x1FB1, 0x1F70, 0x1F71, 0x1FB3, 0x1FBD, 0x1FBE, 0x1FBF,
+ 0x1FC0, 0x1FC1, 0x1FC2, 0x1FC3, 0x1FC4, 0x0000, 0x1FC6, 0x1FC7,
+ 0x1F72, 0x1F73, 0x1F74, 0x1F75, 0x1FC3, 0x1FCD, 0x1FCE, 0x1FCF,
+ 0x1FD0, 0x1FD1, 0x1FD2, 0x1FD3, 0x0000, 0x0000, 0x1FD6, 0x1FD7,
+ 0x1FD0, 0x1FD1, 0x1F76, 0x1F77, 0x0000, 0x1FDD, 0x1FDE, 0x1FDF,
0x1FE0, 0x1FE1, 0x1FE2, 0x1FE3, 0x1FE4, 0x1FE5, 0x1FE6, 0x1FE7,
- 0x1FE0, 0x1FE1, 0x1F7A, 0x1F7B, 0x1FE5, 0x1FED, 0x1FEE, 0x1FEF,
- 0x0000, 0x0000, 0x1FF2, 0x1FF3, 0x1FF4, 0x0000, 0x1FF6, 0x1FF7,
+ 0x1FE0, 0x1FE1, 0x1F7A, 0x1F7B, 0x1FE5, 0x1FED, 0x1FEE, 0x1FEF,
+ 0x0000, 0x0000, 0x1FF2, 0x1FF3, 0x1FF4, 0x0000, 0x1FF6, 0x1FF7,
0x1F78, 0x1F79, 0x1F7C, 0x1F7D, 0x1FF3, 0x1FFD, 0x1FFE, 0x0000
};
static unsigned short const GreekExt_upper_mapping[] = {
- 0x1F08, 0x1F09, 0x1F0A, 0x1F0B, 0x1F0C, 0x1F0D, 0x1F0E, 0x1F0F,
- 0x1F08, 0x1F09, 0x1F0A, 0x1F0B, 0x1F0C, 0x1F0D, 0x1F0E, 0x1F0F,
+ 0x1F08, 0x1F09, 0x1F0A, 0x1F0B, 0x1F0C, 0x1F0D, 0x1F0E, 0x1F0F,
+ 0x1F08, 0x1F09, 0x1F0A, 0x1F0B, 0x1F0C, 0x1F0D, 0x1F0E, 0x1F0F,
0x1F18, 0x1F19, 0x1F1A, 0x1F1B, 0x1F1C, 0x1F1D, 0x0000, 0x0000,
0x1F18, 0x1F19, 0x1F1A, 0x1F1B, 0x1F1C, 0x1F1D, 0x0000, 0x0000,
- 0x1F28, 0x1F29, 0x1F2A, 0x1F2B, 0x1F2C, 0x1F2D, 0x1F2E, 0x1F2F,
- 0x1F28, 0x1F29, 0x1F2A, 0x1F2B, 0x1F2C, 0x1F2D, 0x1F2E, 0x1F2F,
- 0x1F38, 0x1F39, 0x1F3A, 0x1F3B, 0x1F3C, 0x1F3D, 0x1F3E, 0x1F3F,
- 0x1F38, 0x1F39, 0x1F3A, 0x1F3B, 0x1F3C, 0x1F3D, 0x1F3E, 0x1F3F,
+ 0x1F28, 0x1F29, 0x1F2A, 0x1F2B, 0x1F2C, 0x1F2D, 0x1F2E, 0x1F2F,
+ 0x1F28, 0x1F29, 0x1F2A, 0x1F2B, 0x1F2C, 0x1F2D, 0x1F2E, 0x1F2F,
+ 0x1F38, 0x1F39, 0x1F3A, 0x1F3B, 0x1F3C, 0x1F3D, 0x1F3E, 0x1F3F,
+ 0x1F38, 0x1F39, 0x1F3A, 0x1F3B, 0x1F3C, 0x1F3D, 0x1F3E, 0x1F3F,
0x1F48, 0x1F49, 0x1F4A, 0x1F4B, 0x1F4C, 0x1F4D, 0x0000, 0x0000,
0x1F48, 0x1F49, 0x1F4A, 0x1F4B, 0x1F4C, 0x1F4D, 0x0000, 0x0000,
- 0x1F50, 0x1F59, 0x1F52, 0x1F5B, 0x1F54, 0x1F5D, 0x1F56, 0x1F5F,
- 0x0000, 0x1F59, 0x0000, 0x1F5B, 0x0000, 0x1F5D, 0x0000, 0x1F5F,
- 0x1F68, 0x1F69, 0x1F6A, 0x1F6B, 0x1F6C, 0x1F6D, 0x1F6E, 0x1F6F,
- 0x1F68, 0x1F69, 0x1F6A, 0x1F6B, 0x1F6C, 0x1F6D, 0x1F6E, 0x1F6F,
- 0x1FBA, 0x1FBB, 0x1FC8, 0x1FC9, 0x1FCA, 0x1FCB, 0x1FDA, 0x1FDB,
+ 0x1F50, 0x1F59, 0x1F52, 0x1F5B, 0x1F54, 0x1F5D, 0x1F56, 0x1F5F,
+ 0x0000, 0x1F59, 0x0000, 0x1F5B, 0x0000, 0x1F5D, 0x0000, 0x1F5F,
+ 0x1F68, 0x1F69, 0x1F6A, 0x1F6B, 0x1F6C, 0x1F6D, 0x1F6E, 0x1F6F,
+ 0x1F68, 0x1F69, 0x1F6A, 0x1F6B, 0x1F6C, 0x1F6D, 0x1F6E, 0x1F6F,
+ 0x1FBA, 0x1FBB, 0x1FC8, 0x1FC9, 0x1FCA, 0x1FCB, 0x1FDA, 0x1FDB,
0x1FF8, 0x1FF9, 0x1FEA, 0x1FEB, 0x1FFA, 0x1FFB, 0x0000, 0x0000,
- 0x1F88, 0x1F89, 0x1F8A, 0x1F8B, 0x1F8C, 0x1F8D, 0x1F8E, 0x1F8F,
- 0x1F88, 0x1F89, 0x1F8A, 0x1F8B, 0x1F8C, 0x1F8D, 0x1F8E, 0x1F8F,
- 0x1F98, 0x1F99, 0x1F9A, 0x1F9B, 0x1F9C, 0x1F9D, 0x1F9E, 0x1F9F,
- 0x1F98, 0x1F99, 0x1F9A, 0x1F9B, 0x1F9C, 0x1F9D, 0x1F9E, 0x1F9F,
- 0x1FA8, 0x1FA9, 0x1FAA, 0x1FAB, 0x1FAC, 0x1FAD, 0x1FAE, 0x1FAF,
- 0x1FA8, 0x1FA9, 0x1FAA, 0x1FAB, 0x1FAC, 0x1FAD, 0x1FAE, 0x1FAF,
- 0x1FB8, 0x1FB9, 0x1FB2, 0x1FBC, 0x1FB4, 0x0000, 0x1FB6, 0x1FB7,
- 0x1FB8, 0x1FB9, 0x1FBA, 0x1FBB, 0x1FBC, 0x1FBD, 0x0399, 0x1FBF,
- 0x1FC0, 0x1FC1, 0x1FC2, 0x1FCC, 0x1FC4, 0x0000, 0x1FC6, 0x1FC7,
- 0x1FC8, 0x1FC9, 0x1FCA, 0x1FCB, 0x1FCC, 0x1FCD, 0x1FCE, 0x1FCF,
- 0x1FD8, 0x1FD9, 0x1FD2, 0x1FD3, 0x0000, 0x0000, 0x1FD6, 0x1FD7,
- 0x1FD8, 0x1FD9, 0x1FDA, 0x1FDB, 0x0000, 0x1FDD, 0x1FDE, 0x1FDF,
- 0x1FE8, 0x1FE9, 0x1FE2, 0x1FE3, 0x1FE4, 0x1FEC, 0x1FE6, 0x1FE7,
- 0x1FE8, 0x1FE9, 0x1FEA, 0x1FEB, 0x1FEC, 0x1FED, 0x1FEE, 0x1FEF,
- 0x0000, 0x0000, 0x1FF2, 0x1FFC, 0x1FF4, 0x0000, 0x1FF6, 0x1FF7,
+ 0x1F88, 0x1F89, 0x1F8A, 0x1F8B, 0x1F8C, 0x1F8D, 0x1F8E, 0x1F8F,
+ 0x1F88, 0x1F89, 0x1F8A, 0x1F8B, 0x1F8C, 0x1F8D, 0x1F8E, 0x1F8F,
+ 0x1F98, 0x1F99, 0x1F9A, 0x1F9B, 0x1F9C, 0x1F9D, 0x1F9E, 0x1F9F,
+ 0x1F98, 0x1F99, 0x1F9A, 0x1F9B, 0x1F9C, 0x1F9D, 0x1F9E, 0x1F9F,
+ 0x1FA8, 0x1FA9, 0x1FAA, 0x1FAB, 0x1FAC, 0x1FAD, 0x1FAE, 0x1FAF,
+ 0x1FA8, 0x1FA9, 0x1FAA, 0x1FAB, 0x1FAC, 0x1FAD, 0x1FAE, 0x1FAF,
+ 0x1FB8, 0x1FB9, 0x1FB2, 0x1FBC, 0x1FB4, 0x0000, 0x1FB6, 0x1FB7,
+ 0x1FB8, 0x1FB9, 0x1FBA, 0x1FBB, 0x1FBC, 0x1FBD, 0x0399, 0x1FBF,
+ 0x1FC0, 0x1FC1, 0x1FC2, 0x1FCC, 0x1FC4, 0x0000, 0x1FC6, 0x1FC7,
+ 0x1FC8, 0x1FC9, 0x1FCA, 0x1FCB, 0x1FCC, 0x1FCD, 0x1FCE, 0x1FCF,
+ 0x1FD8, 0x1FD9, 0x1FD2, 0x1FD3, 0x0000, 0x0000, 0x1FD6, 0x1FD7,
+ 0x1FD8, 0x1FD9, 0x1FDA, 0x1FDB, 0x0000, 0x1FDD, 0x1FDE, 0x1FDF,
+ 0x1FE8, 0x1FE9, 0x1FE2, 0x1FE3, 0x1FE4, 0x1FEC, 0x1FE6, 0x1FE7,
+ 0x1FE8, 0x1FE9, 0x1FEA, 0x1FEB, 0x1FEC, 0x1FED, 0x1FEE, 0x1FEF,
+ 0x0000, 0x0000, 0x1FF2, 0x1FFC, 0x1FF4, 0x0000, 0x1FF6, 0x1FF7,
0x1FF8, 0x1FF9, 0x1FFA, 0x1FFB, 0x1FFC, 0x1FFD, 0x1FFE, 0x0000
};
@@ -826,7 +826,7 @@ _XTranslateKeySym(
char *buffer,
int nbytes)
{
- register struct _XKeytrans *p;
+ register struct _XKeytrans *p;
int length;
unsigned long hiBytes;
register unsigned char c;
@@ -876,7 +876,7 @@ _XTranslateKeySym(
buffer[0] = c;
return 1;
}
-
+
/*ARGSUSED*/
int
XLookupString (
@@ -904,7 +904,7 @@ XLookupString (
status->compose_ptr = NULL;
status->chars_matched = 0;
}
- if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) ||
+ if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) ||
XimCompIsComposeKey(symbol,event->keycode,status) ) {
XimCompRtrn rtrn;
switch (XimCompProcessSym(status,symbol,&rtrn)) {
@@ -978,7 +978,7 @@ _XFreeKeyBindings(
Xfree(p->string);
Xfree((char *)p->modifiers);
Xfree((char *)p);
- }
+ }
}
int
@@ -1000,7 +1000,7 @@ XRebindKeysym (
nb = sizeof(KeySym) * nm;
if ((! (p = (struct _XKeytrans *) Xmalloc( sizeof(struct _XKeytrans)))) ||
- ((! (p->string = (char *) Xmalloc( (unsigned) nbytes))) &&
+ ((! (p->string = (char *) Xmalloc( (unsigned) nbytes))) &&
(nbytes > 0)) ||
((! (p->modifiers = (KeySym *) Xmalloc( (unsigned) nb))) &&
(nb > 0))) {
@@ -1038,7 +1038,7 @@ _XKeysymToModifiers(
if ((! dpy->keysyms) && (! _XKeyInitialize(dpy)))
return 0;
- kmax = dpy->keysyms +
+ kmax = dpy->keysyms +
(dpy->max_keycode - dpy->min_keycode + 1) * dpy->keysyms_per_keycode;
k = dpy->keysyms;
m = dpy->modifiermap;
@@ -1058,7 +1058,7 @@ _XKeysymToModifiers(
}
return mods;
}
-
+
/*
* given a list of modifiers, computes the mask necessary for later matching.
* This routine must lookup the key in the Keymap and then search to see
diff --git a/src/KeysymStr.c b/src/KeysymStr.c
index ce827610..269cbdfa 100644
--- a/src/KeysymStr.c
+++ b/src/KeysymStr.c
@@ -147,7 +147,7 @@ char *XKeysymToString(KeySym ks)
s[i] = 'A'+ val1 - 10;
}
s[i] = 'U';
- return s;
+ return s;
}
return ((char *) NULL);
}
diff --git a/src/LiHosts.c b/src/LiHosts.c
index ebfb245f..c1311da2 100644
--- a/src/LiHosts.c
+++ b/src/LiHosts.c
@@ -74,19 +74,19 @@ XHostAddress *XListHosts (
nbytes = reply.length << 2; /* compute number of bytes in reply */
op = outbuf = (XHostAddress *)
- Xmalloc((unsigned) (nbytes +
+ Xmalloc((unsigned) (nbytes +
(reply.nHosts * sizeof(XHostAddress)) +
(reply.nHosts * sizeof(XServerInterpretedAddress))));
- if (! outbuf) {
+ if (! outbuf) {
_XEatData(dpy, (unsigned long) nbytes);
UnlockDisplay(dpy);
SyncHandle();
return (XHostAddress *) NULL;
}
- sip = (XServerInterpretedAddress *)
+ sip = (XServerInterpretedAddress *)
(((unsigned char *) outbuf) + (reply.nHosts * sizeof(XHostAddress)));
- bp = buf = ((unsigned char *) sip)
+ bp = buf = ((unsigned char *) sip)
+ (reply.nHosts * sizeof(XServerInterpretedAddress));
_XRead (dpy, (char *) buf, nbytes);
@@ -99,12 +99,12 @@ XHostAddress *XListHosts (
op->length = xhe.length;
#else
op->family = ((xHostEntry *) bp)->family;
- op->length =((xHostEntry *) bp)->length;
+ op->length =((xHostEntry *) bp)->length;
#endif
if (op->family == FamilyServerInterpreted) {
char *tp = (char *) (bp + SIZEOF(xHostEntry));
char *vp = memchr(tp, 0, op->length);
-
+
if (vp != NULL) {
sip->type = tp;
sip->typelength = vp - tp;
@@ -132,6 +132,6 @@ XHostAddress *XListHosts (
}
-
+
diff --git a/src/LiICmaps.c b/src/LiICmaps.c
index 9381f497..dc74d499 100644
--- a/src/LiICmaps.c
+++ b/src/LiICmaps.c
@@ -65,7 +65,7 @@ Colormap *XListInstalledColormaps(
_XRead32 (dpy, (long *) cmaps, nbytes);
}
else cmaps = (Colormap *) NULL;
-
+
*n = rep.nColormaps;
UnlockDisplay(dpy);
SyncHandle();
diff --git a/src/LoadFont.c b/src/LoadFont.c
index de5f5cee..30da83a8 100644
--- a/src/LoadFont.c
+++ b/src/LoadFont.c
@@ -51,7 +51,7 @@ XLoadFont (
Data (dpy, name, nbytes);
UnlockDisplay(dpy);
SyncHandle();
- return (fid);
+ return (fid);
/* can't return (req->fid) since request may have already been sent */
}
diff --git a/src/LockDis.c b/src/LockDis.c
index d99d3bb6..df121bd2 100644
--- a/src/LockDis.c
+++ b/src/LockDis.c
@@ -1,7 +1,7 @@
/* $Xorg: LockDis.c,v 1.4 2001/02/09 02:03:34 xorgcvs Exp $ */
/*
-
+
Copyright 1993, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
diff --git a/src/Macros.c b/src/Macros.c
index f720a263..55d88d9e 100644
--- a/src/Macros.c
+++ b/src/Macros.c
@@ -60,15 +60,15 @@ Visual *XDefaultVisual(Display *dpy, int scr)
GC XDefaultGC(Display *dpy, int scr)
{
- return (DefaultGC(dpy,scr));
+ return (DefaultGC(dpy,scr));
}
-unsigned long XBlackPixel(Display *dpy, int scr)
+unsigned long XBlackPixel(Display *dpy, int scr)
{
return (BlackPixel(dpy, scr));
}
-unsigned long XWhitePixel(Display *dpy, int scr)
+unsigned long XWhitePixel(Display *dpy, int scr)
{
return (WhitePixel(dpy,scr));
}
@@ -84,7 +84,7 @@ int XDisplayWidth(Display *dpy, int scr)
int XDisplayHeight(Display *dpy, int scr)
{
- return (DisplayHeight(dpy, scr));
+ return (DisplayHeight(dpy, scr));
}
int XDisplayWidthMM(Display *dpy, int scr)
@@ -98,7 +98,7 @@ int XDisplayHeightMM(Display *dpy, int scr)
}
int XDisplayPlanes(Display *dpy, int scr)
-{
+{
return (DisplayPlanes(dpy, scr));
}
@@ -120,12 +120,12 @@ int XVendorRelease(Display *dpy) { return (VendorRelease(dpy)); }
char *XDisplayString(Display *dpy) { return (DisplayString(dpy)); }
int XDefaultDepth(Display *dpy, int scr)
-{
+{
return(DefaultDepth(dpy, scr));
}
Colormap XDefaultColormap(Display *dpy, int scr)
-{
+{
return (DefaultColormap(dpy, scr));
}
@@ -159,7 +159,7 @@ Screen *XScreenOfDisplay(Display *dpy, int scr)
}
Screen *XDefaultScreenOfDisplay(Display *dpy)
-{
+{
return (DefaultScreenOfDisplay(dpy));
}
@@ -167,32 +167,32 @@ Display *XDisplayOfScreen(Screen *s) { return (DisplayOfScreen(s)); }
Window XRootWindowOfScreen(Screen *s) { return (RootWindowOfScreen(s)); }
-unsigned long XBlackPixelOfScreen(Screen *s)
+unsigned long XBlackPixelOfScreen(Screen *s)
{
return (BlackPixelOfScreen(s));
}
-unsigned long XWhitePixelOfScreen(Screen *s)
+unsigned long XWhitePixelOfScreen(Screen *s)
{
return (WhitePixelOfScreen(s));
}
-Colormap XDefaultColormapOfScreen(Screen *s)
+Colormap XDefaultColormapOfScreen(Screen *s)
{
return (DefaultColormapOfScreen(s));
}
-int XDefaultDepthOfScreen(Screen *s)
-{
+int XDefaultDepthOfScreen(Screen *s)
+{
return (DefaultDepthOfScreen(s));
}
-GC XDefaultGCOfScreen(Screen *s)
-{
+GC XDefaultGCOfScreen(Screen *s)
+{
return (DefaultGCOfScreen(s));
}
-Visual *XDefaultVisualOfScreen(Screen *s)
+Visual *XDefaultVisualOfScreen(Screen *s)
{
return (DefaultVisualOfScreen(s));
}
diff --git a/src/MaskEvent.c b/src/MaskEvent.c
index fbada5e0..8f0c0d48 100644
--- a/src/MaskEvent.c
+++ b/src/MaskEvent.c
@@ -37,7 +37,7 @@ extern long const _Xevent_to_mask[];
#define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\
Button4MotionMask|Button5MotionMask)
-/*
+/*
* return the next event in the queue matching one of the events in the mask.
* If no event, flush output, and wait until match succeeds.
* Events earlier in the queue are not discarded.
diff --git a/src/ModMap.c b/src/ModMap.c
index b5cb422b..04fe509a 100644
--- a/src/ModMap.c
+++ b/src/ModMap.c
@@ -34,7 +34,7 @@ in this Software without prior written authorization from The Open Group.
XModifierKeymap *
XGetModifierMapping(register Display *dpy)
-{
+{
xGetModifierMappingReply rep;
register xReq *req;
unsigned long nbytes;
@@ -143,7 +143,7 @@ XInsertModifiermapEntry(XModifierKeymap *map,
map->modifiermap[ row+i ] = keycode;
return(map); /* we added it without stretching the map */
}
- }
+ }
/* stretch the map */
if ((newmap = XNewModifiermap(map->max_keypermod+1)) == NULL)
diff --git a/src/MoveWin.c b/src/MoveWin.c
index bd2a5a04..8921ec4e 100644
--- a/src/MoveWin.c
+++ b/src/MoveWin.c
@@ -35,7 +35,7 @@ int
XMoveWindow (
register Display *dpy,
Window w,
- int x,
+ int x,
int y)
{
register xConfigureWindowReq *req;
diff --git a/src/NextEvent.c b/src/NextEvent.c
index 63032345..d4f72e77 100644
--- a/src/NextEvent.c
+++ b/src/NextEvent.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Return next event in queue, or if none, flush output and wait for
* events.
*/
@@ -43,9 +43,9 @@ XNextEvent (
register XEvent *event)
{
register _XQEvent *qelt;
-
+
LockDisplay(dpy);
-
+
if (dpy->head == NULL)
_XReadEvents(dpy);
qelt = dpy->head;
diff --git a/src/OMWrap.c b/src/OMWrap.c
index 2373ef69..fa8e3337 100644
--- a/src/OMWrap.c
+++ b/src/OMWrap.c
@@ -110,7 +110,7 @@ XGetOMValues(XOM om, ...)
if (args == (XlcArgList) NULL)
return (char *) NULL;
-
+
ret = (*om->methods->get_values)(om, args, num_args);
Xfree(args);
diff --git a/src/OpenDis.c b/src/OpenDis.c
index f52b422d..d5089e81 100644
--- a/src/OpenDis.c
+++ b/src/OpenDis.c
@@ -84,7 +84,7 @@ static Bool _XBigReqHandler(Display *dpy, xReply *rep, char *buf, int len,
XPointer data);
#endif /* !USE_XCB */
-/*
+/*
* Connects to a server, creates a Display object and returns a pointer to
* the newly created Display back to the caller.
*/
@@ -129,7 +129,7 @@ XOpenDisplay (
bzero((char *) &prefix, sizeof(prefix));
/*
- * If the display specifier string supplied as an argument to this
+ * If the display specifier string supplied as an argument to this
* routine is NULL or a pointer to NULL, read the DISPLAY variable.
*/
if (display == NULL || *display == '\0') {
@@ -271,7 +271,7 @@ XOpenDisplay (
if (!_XPollfdCacheInit(dpy)) {
OutOfMemory (dpy, setup);
return(NULL);
- }
+ }
/* Set up the output buffers. */
#ifndef XLIBDEFAULTBUFSIZE
@@ -292,7 +292,7 @@ XOpenDisplay (
return(NULL);
}
dpy->bufmax = dpy->buffer + conn_buf_size;
-
+
/* Set up the input event queue and input event queue parameters. */
dpy->head = dpy->tail = NULL;
dpy->qlen = 0;
@@ -309,7 +309,7 @@ XOpenDisplay (
/*
* The xConnClientPrefix describes the initial connection setup information
* and is followed by the authorization information. Sites that are interested
- * in security are strongly encouraged to use an authentication and
+ * in security are strongly encouraged to use an authentication and
* authorization system such as Kerberos.
*/
endian = 1;
@@ -387,7 +387,7 @@ XOpenDisplay (
*/
if (prefix.success != xTrue) {
/* XXX - printing messages marks a bad programming interface */
- fprintf (stderr,
+ fprintf (stderr,
"Xlib: connection to \"%s\" refused by server\r\nXlib: ",
fullname);
@@ -442,7 +442,7 @@ XOpenDisplay (
OutOfMemory(dpy, setup);
return (NULL);
}
-
+
while (!(mask & 1)) {
dpy->resource_shift++;
mask = mask >> 1;
@@ -484,7 +484,7 @@ XOpenDisplay (
/*
* Now iterate down setup information.....
*/
- dpy->pixmap_format =
+ dpy->pixmap_format =
(ScreenFormat *)Xmalloc(
(unsigned) (dpy->nformats *sizeof(ScreenFormat)));
if (dpy->pixmap_format == NULL) {
@@ -514,7 +514,7 @@ XOpenDisplay (
/*
* next the Screen structures.
*/
- dpy->screens =
+ dpy->screens =
(Screen *)Xmalloc((unsigned) dpy->nscreens*sizeof(Screen));
if (dpy->screens == NULL) {
OutOfMemory (dpy, setup);
@@ -535,7 +535,7 @@ XOpenDisplay (
return(NULL);
}
- root_visualID = u.rp->rootVisualID;
+ root_visualID = u.rp->rootVisualID;
sp->display = dpy;
sp->root = u.rp->windowId;
sp->cmap = u.rp->defaultColormap;
@@ -575,12 +575,12 @@ XOpenDisplay (
OutOfMemory (dpy, setup);
return(NULL);
}
-
+
dp->depth = u.dp->depth;
dp->nvisuals = u.dp->nVisuals;
u.dp = (xDepth *) (((char *) u.dp) + sz_xDepth);
if (dp->nvisuals > 0) {
- dp->visuals =
+ dp->visuals =
(Visual *)Xmalloc((unsigned)dp->nvisuals*sizeof(Visual));
if (dp->visuals == NULL) {
OutOfMemory (dpy, setup);
@@ -595,7 +595,7 @@ XOpenDisplay (
OutOfMemory (dpy, setup);
return(NULL);
}
-
+
vp->visualid = u.vp->visualID;
vp->class = u.vp->class;
vp->bits_per_rgb= u.vp->bitsPerRGB;
@@ -782,7 +782,7 @@ _XBigReqHandler(
#endif /* !USE_XCB */
-/* XFreeDisplayStructure frees all the storage associated with a
+/* XFreeDisplayStructure frees all the storage associated with a
* Display. It is used by XOpenDisplay if it runs out of memory,
* and also by XCloseDisplay. It needs to check whether all pointers
* are non-NULL before dereferencing them, since it may be called
@@ -853,7 +853,7 @@ void _XFreeDisplayStructure(dpy)
Xfree ((char *)dpy->screens);
}
-
+
if (dpy->pixmap_format) {
register int i;
diff --git a/src/ParseCmd.c b/src/ParseCmd.c
index fb79668e..7d93f765 100644
--- a/src/ParseCmd.c
+++ b/src/ParseCmd.c
@@ -29,13 +29,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -100,7 +100,7 @@ XrmParseCommand(
XrmQPutStringResource(pdb, bindings, quarks, value_str); \
} /* PutCommandResource */
- myargc = (*argc);
+ myargc = (*argc);
argend = argv + myargc;
argsave = ++argv;
@@ -159,7 +159,7 @@ XrmParseCommand(
--(*argc);
PutCommandResource(options[i].value);
break;
-
+
case XrmoptionIsArg:
--(*argc);
PutCommandResource(*argv);
@@ -177,7 +177,7 @@ XrmParseCommand(
} else
(*argsave++) = (*argv);
break;
-
+
case XrmoptionResArg:
if (myargc > 1) {
++argv; --myargc; --(*argc); --(*argc);
@@ -185,13 +185,13 @@ XrmParseCommand(
} else
(*argsave++) = (*argv);
break;
-
+
case XrmoptionSkipArg:
if (myargc > 1) {
--myargc;
(*argsave++) = (*argv++);
}
- (*argsave++) = (*argv);
+ (*argsave++) = (*argv);
break;
case XrmoptionSkipLine:
@@ -219,7 +219,7 @@ XrmParseCommand(
}
}
else
- (*argsave++) = (*argv); /*compress arglist*/
+ (*argsave++) = (*argv); /*compress arglist*/
}
if (argsave < argend)
diff --git a/src/ParseGeom.c b/src/ParseGeom.c
index 6aaaccf0..0fe9d085 100644
--- a/src/ParseGeom.c
+++ b/src/ParseGeom.c
@@ -36,7 +36,7 @@ from The Open Group.
#include "Xutil.h"
#ifdef notdef
-/*
+/*
*Returns pointer to first char ins search which is also in what, else NULL.
*/
static char *strscan (search, what)
@@ -62,7 +62,7 @@ char *search, *what;
* It returns a bitmask that indicates which of the four values
* were actually found in the string. For each value found,
* the corresponding argument is updated; for each value
- * not found, the corresponding argument is left unchanged.
+ * not found, the corresponding argument is left unchanged.
*/
static int
@@ -70,7 +70,7 @@ ReadInteger(char *string, char **NextString)
{
register int Result = 0;
int Sign = 1;
-
+
if (*string == '+')
string++;
else if (*string == '-')
@@ -110,13 +110,13 @@ unsigned int *height) /* RETURN */
strind = (char *)string;
if (*strind != '+' && *strind != '-' && *strind != 'x') {
tempWidth = ReadInteger(strind, &nextCharacter);
- if (strind == nextCharacter)
+ if (strind == nextCharacter)
return (0);
strind = nextCharacter;
mask |= WidthValue;
}
- if (*strind == 'x' || *strind == 'X') {
+ if (*strind == 'x' || *strind == 'X') {
strind++;
tempHeight = ReadInteger(strind, &nextCharacter);
if (strind == nextCharacter)
@@ -164,7 +164,7 @@ unsigned int *height) /* RETURN */
mask |= YValue;
}
}
-
+
/* If strind isn't at the end of the string the it's an invalid
geometry specification. */
diff --git a/src/PeekEvent.c b/src/PeekEvent.c
index c28f114b..6eec4a04 100644
--- a/src/PeekEvent.c
+++ b/src/PeekEvent.c
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
-/*
+/*
* Return the next event in the queue,
* BUT do not remove it from the queue.
* If none found, flush and wait until there is an event to peek.
diff --git a/src/PolyReg.c b/src/PolyReg.c
index d6f4c74b..666fc1a2 100644
--- a/src/PolyReg.c
+++ b/src/PolyReg.c
@@ -28,13 +28,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -84,7 +84,7 @@ InsertEdgeInET(
*/
pPrevSLL = &ET->scanlines;
pSLL = pPrevSLL->next;
- while (pSLL && (pSLL->scanline < scanline))
+ while (pSLL && (pSLL->scanline < scanline))
{
pPrevSLL = pSLL;
pSLL = pSLL->next;
@@ -93,11 +93,11 @@ InsertEdgeInET(
/*
* reassign pSLL (pointer to ScanLineList) if necessary
*/
- if ((!pSLL) || (pSLL->scanline > scanline))
+ if ((!pSLL) || (pSLL->scanline > scanline))
{
- if (*iSLLBlock > SLLSPERBLOCK-1)
+ if (*iSLLBlock > SLLSPERBLOCK-1)
{
- tmpSLLBlock =
+ tmpSLLBlock =
(ScanLineListBlock *)Xmalloc(sizeof(ScanLineListBlock));
(*SLLBlock)->next = tmpSLLBlock;
tmpSLLBlock->next = (ScanLineListBlock *)NULL;
@@ -117,7 +117,7 @@ InsertEdgeInET(
*/
prev = (EdgeTableEntry *)NULL;
start = pSLL->edgelist;
- while (start && (start->bres.minor_axis < ETE->bres.minor_axis))
+ while (start && (start->bres.minor_axis < ETE->bres.minor_axis))
{
prev = start;
start = start->next;
@@ -134,7 +134,7 @@ InsertEdgeInET(
* CreateEdgeTable
*
* This routine creates the edge table for
- * scan converting polygons.
+ * scan converting polygons.
* The Edge Table (ET) looks like:
*
* EdgeTable
@@ -194,19 +194,19 @@ CreateETandAET(
* In this loop we are dealing with two vertices at
* a time -- these make up one edge of the polygon.
*/
- while (count--)
+ while (count--)
{
CurrPt = pts++;
/*
* find out which point is above and which is below.
*/
- if (PrevPt->y > CurrPt->y)
+ if (PrevPt->y > CurrPt->y)
{
bottom = PrevPt, top = CurrPt;
pETEs->ClockWise = 0;
}
- else
+ else
{
bottom = CurrPt, top = PrevPt;
pETEs->ClockWise = 1;
@@ -215,7 +215,7 @@ CreateETandAET(
/*
* don't add horizontal edges to the Edge table.
*/
- if (bottom->y != top->y)
+ if (bottom->y != top->y)
{
pETEs->ymax = bottom->y-1; /* -1 so we don't get last scanline */
@@ -257,9 +257,9 @@ loadAET(
pPrevAET = AET;
AET = AET->next;
- while (ETEs)
+ while (ETEs)
{
- while (AET && (AET->bres.minor_axis < ETEs->bres.minor_axis))
+ while (AET && (AET->bres.minor_axis < ETEs->bres.minor_axis))
{
pPrevAET = AET;
AET = AET->next;
@@ -281,13 +281,13 @@ loadAET(
*
* This routine links the AET by the
* nextWETE (winding EdgeTableEntry) link for
- * use by the winding number rule. The final
+ * use by the winding number rule. The final
* Active Edge Table (AET) might look something
* like:
*
* AET
* ---------- --------- ---------
- * |ymax | |ymax | |ymax |
+ * |ymax | |ymax | |ymax |
* | ... | |... | |... |
* |next |->|next |->|next |->...
* |nextWETE| |nextWETE| |nextWETE|
@@ -307,7 +307,7 @@ computeWAET(
AET->nextWETE = (EdgeTableEntry *)NULL;
pWETE = AET;
AET = AET->next;
- while (AET)
+ while (AET)
{
if (AET->ClockWise)
isInside++;
@@ -315,7 +315,7 @@ computeWAET(
isInside--;
if ((!inside && !isInside) ||
- ( inside && isInside))
+ ( inside && isInside))
{
pWETE->nextWETE = AET;
pWETE = AET;
@@ -345,7 +345,7 @@ InsertionSort(
register int changed = 0;
AET = AET->next;
- while (AET)
+ while (AET)
{
pETEinsert = AET;
pETEchase = AET;
@@ -353,7 +353,7 @@ InsertionSort(
pETEchase = pETEchase->back;
AET = AET->next;
- if (pETEchase != pETEinsert)
+ if (pETEchase != pETEinsert)
{
pETEchaseBackTMP = pETEchase->back;
pETEinsert->back->next = AET;
@@ -378,7 +378,7 @@ FreeStorage(
{
register ScanLineListBlock *tmpSLLBlock;
- while (pSLLBlock)
+ while (pSLLBlock)
{
tmpSLLBlock = pSLLBlock->next;
Xfree((char *)pSLLBlock);
@@ -409,21 +409,21 @@ static int PtsToRegion(
BOX *prevRects = reg->rects;
extents = &reg->extents;
-
+
numRects = ((numFullPtBlocks * NUMPTSTOBUFFER) + iCurPtBlock) >> 1;
-
- if (!(reg->rects = (BOX *)Xrealloc((char *)reg->rects,
+
+ if (!(reg->rects = (BOX *)Xrealloc((char *)reg->rects,
(unsigned) (sizeof(BOX) * numRects)))) {
Xfree(prevRects);
return(0);
}
-
+
reg->size = numRects;
CurPtBlock = FirstPtBlock;
rects = reg->rects - 1;
numRects = 0;
extents->x1 = MAXSHORT, extents->x2 = MINSHORT;
-
+
for ( ; numFullPtBlocks >= 0; numFullPtBlocks--) {
/* the loop uses 2 points per iteration */
i = NUMPTSTOBUFFER >> 1;
@@ -461,7 +461,7 @@ static int PtsToRegion(
extents->y2 = 0;
}
reg->numRects = numRects;
-
+
return(TRUE);
}
@@ -472,7 +472,7 @@ static int PtsToRegion(
* encoding of the resultant bitmap -- the run-length
* encoding is in the form of an array of rectangles.
*/
-Region
+Region
XPolygonRegion(
XPoint *Pts, /* the pts */
int Count, /* number of pts */
@@ -494,7 +494,7 @@ XPolygonRegion(
POINTBLOCK FirstPtBlock, *curPtBlock; /* PtBlock buffers */
POINTBLOCK *tmpPtBlock;
int numFullPtBlocks = 0;
-
+
if (! (region = XCreateRegion())) return (Region) NULL;
/* special case a rectangle */
@@ -520,7 +520,7 @@ XPolygonRegion(
}
return(region);
}
-
+
if (Count < 2) return region;
if (! (pETEs = (EdgeTableEntry *)
@@ -533,7 +533,7 @@ XPolygonRegion(
CreateETandAET(Count, Pts, &ET, &AET, pETEs, &SLLBlock);
pSLL = ET.scanlines.next;
curPtBlock = &FirstPtBlock;
-
+
if (rule == EvenOddRule) {
/*
* for each scanline
@@ -549,14 +549,14 @@ XPolygonRegion(
}
pPrevAET = &AET;
pAET = AET.next;
-
+
/*
* for each active edge
*/
while (pAET) {
pts->x = pAET->bres.minor_axis, pts->y = y;
pts++, iPts++;
-
+
/*
* send out the buffer
*/
@@ -590,7 +590,7 @@ XPolygonRegion(
pPrevAET = &AET;
pAET = AET.next;
pWETE = pAET;
-
+
/*
* for each active edge
*/
@@ -602,7 +602,7 @@ XPolygonRegion(
if (pWETE == pAET) {
pts->x = pAET->bres.minor_axis, pts->y = y;
pts++, iPts++;
-
+
/*
* send out the buffer
*/
@@ -617,7 +617,7 @@ XPolygonRegion(
}
EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET);
}
-
+
/*
* recompute the winding active edge table if
* we just resorted or have exited an edge.
@@ -628,7 +628,7 @@ XPolygonRegion(
}
}
}
- FreeStorage(SLLBlock.next);
+ FreeStorage(SLLBlock.next);
(void) PtsToRegion(numFullPtBlocks, iPts, &FirstPtBlock, region);
for (curPtBlock = FirstPtBlock.next; --numFullPtBlocks >= 0;) {
tmpPtBlock = curPtBlock->next;
diff --git a/src/PolyTxt.c b/src/PolyTxt.c
index eb93ffd6..53dd5f88 100644
--- a/src/PolyTxt.c
+++ b/src/PolyTxt.c
@@ -40,7 +40,7 @@ XDrawText(
int y,
XTextItem *items,
int nitems)
-{
+{
register int i;
register XTextItem *item;
int length = 0;
@@ -81,11 +81,11 @@ XDrawText(
req->length += (length + 3)>>2; /* convert to number of 32-bit words */
- /*
+ /*
* If the entire request does not fit into the remaining space in the
* buffer, flush the buffer first. If the request does fit into the
* empty buffer, then we won't have to flush it at the end to keep
- * the buffer 32-bit aligned.
+ * the buffer 32-bit aligned.
*/
if (dpy->bufptr + length > dpy->bufmax)
@@ -123,9 +123,9 @@ XDrawText(
{
int nb = SIZEOF(xTextElt);
- BufAlloc (char *, tbuf, nb);
+ BufAlloc (char *, tbuf, nb);
*tbuf = 0; /* elt->len */
- if (PartialDelta > 0 )
+ if (PartialDelta > 0 )
{
*(tbuf+1) = 127; /* elt->delta */
PartialDelta = PartialDelta - 127;
@@ -139,7 +139,7 @@ XDrawText(
}
if (PartialDelta)
{
- BufAlloc (char *, tbuf , nbytes);
+ BufAlloc (char *, tbuf , nbytes);
*tbuf = 0; /* elt->len */
*(tbuf+1) = PartialDelta; /* elt->delta */
}
@@ -150,9 +150,9 @@ XDrawText(
{
FirstTimeThrough = False;
if (!item->delta)
- {
+ {
nbytes += SIZEOF(xTextElt);
- BufAlloc (char *, tbuf, nbytes);
+ BufAlloc (char *, tbuf, nbytes);
*(tbuf+1) = 0; /* elt->delta */
}
else
@@ -181,9 +181,9 @@ XDrawText(
{
FirstTimeThrough = False;
if (!item->delta)
- {
+ {
nbytes += SIZEOF(xTextElt);
- BufAlloc (char *, tbuf, nbytes);
+ BufAlloc (char *, tbuf, nbytes);
*(tbuf+1) = 0; /* elt->delta */
}
else
@@ -195,7 +195,7 @@ XDrawText(
else
{
nbytes += SIZEOF(xTextElt);
- BufAlloc (char *, tbuf, nbytes);
+ BufAlloc (char *, tbuf, nbytes);
*(tbuf+1) = 0; /* elt->delta */
}
*tbuf = PartialNChars; /* elt->len */
@@ -209,23 +209,23 @@ XDrawText(
if (length &= 3) {
char *pad;
- /*
+ /*
* BufAlloc is a macro that uses its last argument more than
- * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
+ * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
*/
length = 4 - length;
BufAlloc (char *, pad, length);
- /*
+ /*
* if there are 3 bytes of padding, the first byte MUST be 0
- * so the pad bytes aren't mistaken for a final xTextElt
+ * so the pad bytes aren't mistaken for a final xTextElt
*/
*pad = 0;
}
- /*
+ /*
* If the buffer pointer is not now pointing to a 32-bit boundary,
* we must flush the buffer so that it does point to a 32-bit boundary
- * at the end of this routine.
+ * at the end of this routine.
*/
if ((dpy->bufptr - dpy->buffer) & 3)
diff --git a/src/PolyTxt16.c b/src/PolyTxt16.c
index 512f2475..8a11af8a 100644
--- a/src/PolyTxt16.c
+++ b/src/PolyTxt16.c
@@ -40,7 +40,7 @@ XDrawText16(
int y,
XTextItem16 *items,
int nitems)
-{
+{
register int i;
register XTextItem16 *item;
int length = 0;
@@ -85,7 +85,7 @@ XDrawText16(
* If the entire request does not fit into the remaining space in the
* buffer, flush the buffer first. If the request does fit into the
* empty buffer, then we won't have to flush it at the end to keep
- * the buffer 32-bit aligned.
+ * the buffer 32-bit aligned.
*/
if (dpy->bufptr + length > dpy->bufmax)
@@ -122,9 +122,9 @@ XDrawText16(
{
int nb = SIZEOF(xTextElt);
- BufAlloc (xTextElt *, elt, nb);
+ BufAlloc (xTextElt *, elt, nb);
elt->len = 0;
- if (PartialDelta > 0 )
+ if (PartialDelta > 0 )
{
elt->delta = 127;
PartialDelta = PartialDelta - 127;
@@ -137,7 +137,7 @@ XDrawText16(
}
if (PartialDelta)
{
- BufAlloc (xTextElt *, elt, nbytes);
+ BufAlloc (xTextElt *, elt, nbytes);
elt->len = 0;
elt->delta = PartialDelta;
}
@@ -148,9 +148,9 @@ XDrawText16(
{
FirstTimeThrough = False;
if (!item->delta)
- {
+ {
nbytes += SIZEOF(xTextElt);
- BufAlloc (xTextElt *, elt, nbytes);
+ BufAlloc (xTextElt *, elt, nbytes);
elt->delta = 0;
}
else
@@ -193,9 +193,9 @@ XDrawText16(
{
FirstTimeThrough = False;
if (!item->delta)
- {
+ {
nbytes += SIZEOF(xTextElt);
- BufAlloc (xTextElt *, elt, nbytes);
+ BufAlloc (xTextElt *, elt, nbytes);
elt->delta = 0;
}
else
@@ -210,7 +210,7 @@ XDrawText16(
else
{
nbytes += SIZEOF(xTextElt);
- BufAlloc (xTextElt *, elt, nbytes);
+ BufAlloc (xTextElt *, elt, nbytes);
elt->delta = 0;
}
elt->len = PartialNChars;
@@ -241,21 +241,21 @@ XDrawText16(
char *pad;
/*
* BufAlloc is a macro that uses its last argument more than
- * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
+ * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
*/
length = 4 - length;
BufAlloc (char *, pad, length);
- /*
+ /*
* if there are 3 bytes of padding, the first byte MUST be 0
- * so the pad bytes aren't mistaken for a final xTextElt
+ * so the pad bytes aren't mistaken for a final xTextElt
*/
*pad = 0;
}
- /*
+ /*
* If the buffer pointer is not now pointing to a 32-bit boundary,
* we must flush the buffer so that it does point to a 32-bit boundary
- * at the end of this routine.
+ * at the end of this routine.
*/
if ((dpy->bufptr - dpy->buffer) & 3)
diff --git a/src/PropAlloc.c b/src/PropAlloc.c
index aab348b0..2bcbc8aa 100644
--- a/src/PropAlloc.c
+++ b/src/PropAlloc.c
@@ -35,7 +35,7 @@ in this Software without prior written authorization from The Open Group.
/*
- * Routines for allocating space for structures that are expected to get
+ * Routines for allocating space for structures that are expected to get
* longer at some point.
*/
diff --git a/src/PutBEvent.c b/src/PutBEvent.c
index 8c1db72a..eca44f3a 100644
--- a/src/PutBEvent.c
+++ b/src/PutBEvent.c
@@ -37,7 +37,7 @@ from The Open Group.
int
_XPutBackEvent (
- register Display *dpy,
+ register Display *dpy,
register XEvent *event)
{
register _XQEvent *qelt;
@@ -62,7 +62,7 @@ _XPutBackEvent (
int
XPutBackEvent (
- register Display * dpy,
+ register Display * dpy,
register XEvent *event)
{
int ret;
diff --git a/src/PutImage.c b/src/PutImage.c
index b528eb92..32223571 100644
--- a/src/PutImage.c
+++ b/src/PutImage.c
@@ -684,7 +684,7 @@ SendXYImage(
if ((dpy->bufptr + length) > dpy->bufmax) {
if ((buf = _XAllocScratch(dpy, (unsigned long) (length))) == NULL) {
UnGetReq(PutImage);
- return;
+ return;
}
}
else
@@ -872,7 +872,7 @@ PutImageRequest(
SendZImage(dpy, req, image, req_xoffset, req_yoffset,
dest_bits_per_pixel, dest_scanline_pad);
}
-
+
static void
PutSubImage (
register Display *dpy,
@@ -891,7 +891,7 @@ PutSubImage (
if ((req_width == 0) || (req_height == 0))
return;
-
+
Available = ((65536 < dpy->max_request_size) ? (65536 << 2)
: (dpy->max_request_size << 2))
- SIZEOF(xPutImageReq);
@@ -907,7 +907,7 @@ PutSubImage (
}
if ((BytesPerRow * req_height) <= Available) {
- PutImageRequest(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
+ PutImageRequest(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
req_width, req_height,
dest_bits_per_pixel, dest_scanline_pad);
} else if (req_height > 1) {
@@ -916,11 +916,11 @@ PutSubImage (
if (SubImageHeight == 0)
SubImageHeight = 1;
- PutSubImage(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
+ PutSubImage(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
req_width, (unsigned int) SubImageHeight,
dest_bits_per_pixel, dest_scanline_pad);
- PutSubImage(dpy, d, gc, image, req_xoffset,
+ PutSubImage(dpy, d, gc, image, req_xoffset,
req_yoffset + SubImageHeight, x, y + SubImageHeight,
req_width, req_height - SubImageHeight,
dest_bits_per_pixel, dest_scanline_pad);
@@ -928,11 +928,11 @@ PutSubImage (
int SubImageWidth = (((Available << 3) / dest_scanline_pad)
* dest_scanline_pad) - left_pad;
- PutSubImage(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
+ PutSubImage(dpy, d, gc, image, req_xoffset, req_yoffset, x, y,
(unsigned int) SubImageWidth, 1,
dest_bits_per_pixel, dest_scanline_pad);
- PutSubImage(dpy, d, gc, image, req_xoffset + SubImageWidth,
+ PutSubImage(dpy, d, gc, image, req_xoffset + SubImageWidth,
req_yoffset, x + SubImageWidth, y,
req_width - SubImageWidth, 1,
dest_bits_per_pixel, dest_scanline_pad);
@@ -950,7 +950,7 @@ XPutImage (
int req_yoffset,
int x,
int y,
- unsigned int req_width,
+ unsigned int req_width,
unsigned int req_height)
{
diff --git a/src/QuBest.c b/src/QuBest.c
index 8678c28e..480a30c6 100644
--- a/src/QuBest.c
+++ b/src/QuBest.c
@@ -39,7 +39,7 @@ Status XQueryBestSize(
unsigned int height,
unsigned int *ret_width,
unsigned int *ret_height)
-{
+{
xQueryBestSizeReply rep;
register xQueryBestSizeReq *req;
diff --git a/src/QuCurShp.c b/src/QuCurShp.c
index 47675a8a..a1c6d652 100644
--- a/src/QuCurShp.c
+++ b/src/QuCurShp.c
@@ -34,11 +34,11 @@ in this Software without prior written authorization from The Open Group.
Status XQueryBestCursor(
register Display *dpy,
Drawable drawable,
- unsigned int width,
+ unsigned int width,
unsigned int height,
- unsigned int *ret_width,
+ unsigned int *ret_width,
unsigned int *ret_height)
-{
+{
xQueryBestSizeReply rep;
register xQueryBestSizeReq *req;
diff --git a/src/QuExt.c b/src/QuExt.c
index 19d8be5d..e4672539 100644
--- a/src/QuExt.c
+++ b/src/QuExt.c
@@ -39,7 +39,7 @@ XQueryExtension(
int *major_opcode, /* RETURN */
int *first_event, /* RETURN */
int *first_error) /* RETURN */
-{
+{
xQueryExtensionReply rep;
register xQueryExtensionReq *req;
diff --git a/src/QuKeybd.c b/src/QuKeybd.c
index 9e1c88aa..22ba2fae 100644
--- a/src/QuKeybd.c
+++ b/src/QuKeybd.c
@@ -40,13 +40,13 @@ int
XQueryKeymap(
register Display *dpy,
char keys[32])
-{
+{
xQueryKeymapReply rep;
register xReq *req;
LockDisplay(dpy);
GetEmptyReq(QueryKeymap, req);
- (void) _XReply(dpy, (xReply *)&rep,
+ (void) _XReply(dpy, (xReply *)&rep,
(SIZEOF(xQueryKeymapReply) - SIZEOF(xReply)) >> 2, xTrue);
*(struct kmap *) keys = *(struct kmap *)rep.map; /* faster than memcpy */
UnlockDisplay(dpy);
diff --git a/src/QuPntr.c b/src/QuPntr.c
index e74a80dc..b1ccc1c7 100644
--- a/src/QuPntr.c
+++ b/src/QuPntr.c
@@ -33,15 +33,15 @@ in this Software without prior written authorization from The Open Group.
Bool XQueryPointer(
register Display *dpy,
- Window w,
+ Window w,
Window *root,
Window *child,
- int *root_x,
+ int *root_x,
int *root_y,
int *win_x,
int *win_y,
unsigned int *mask)
-{
+{
xQueryPointerReply rep;
xResourceReq *req;
diff --git a/src/QuStipShp.c b/src/QuStipShp.c
index 96fdf98b..8724f8d7 100644
--- a/src/QuStipShp.c
+++ b/src/QuStipShp.c
@@ -38,7 +38,7 @@ Status XQueryBestStipple(
unsigned int height,
unsigned int *ret_width,
unsigned int *ret_height)
-{
+{
xQueryBestSizeReply rep;
register xQueryBestSizeReq *req;
diff --git a/src/QuTileShp.c b/src/QuTileShp.c
index 5effa6c8..4db554ac 100644
--- a/src/QuTileShp.c
+++ b/src/QuTileShp.c
@@ -34,11 +34,11 @@ in this Software without prior written authorization from The Open Group.
Status XQueryBestTile(
register Display *dpy,
Drawable drawable,
- unsigned int width,
+ unsigned int width,
unsigned int height,
unsigned int *ret_width,
unsigned int *ret_height)
-{
+{
xQueryBestSizeReply rep;
register xQueryBestSizeReq *req;
diff --git a/src/QuTree.c b/src/QuTree.c
index 3fd72f05..fff6a623 100644
--- a/src/QuTree.c
+++ b/src/QuTree.c
@@ -52,7 +52,7 @@ Status XQueryTree (
return (0);
}
- *children = (Window *) NULL;
+ *children = (Window *) NULL;
if (rep.nChildren != 0) {
nbytes = rep.nChildren * sizeof(Window);
*children = (Window *) Xmalloc((unsigned) nbytes);
diff --git a/src/Quarks.c b/src/Quarks.c
index 20873966..64c12f2c 100644
--- a/src/Quarks.c
+++ b/src/Quarks.c
@@ -5,13 +5,13 @@ Copyright 1987, 1988, 1990 by Digital Equipment Corporation, Maynard,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -359,7 +359,7 @@ XrmStringToQuark(
if (!name)
return (NULLQUARK);
-
+
for (tname = (char *)name; (c = *tname++); )
sig = (sig << 1) + c;
diff --git a/src/RdBitF.c b/src/RdBitF.c
index 0b31230e..196565b5 100644
--- a/src/RdBitF.c
+++ b/src/RdBitF.c
@@ -29,17 +29,17 @@ from The Open Group.
/* $XFree86: xc/lib/X11/RdBitF.c,v 3.6 2003/04/13 19:22:17 dawes Exp $ */
/*
- * Code to read bitmaps from disk files. Interprets
+ * Code to read bitmaps from disk files. Interprets
* data from X10 and X11 bitmap files and creates
* Pixmap representations of files. Returns Pixmap
* ID and specifics about image.
*
* Modified for speedup by Jim Becker, changed image
- * data parsing logic (removed some fscanf()s).
+ * data parsing logic (removed some fscanf()s).
* Aug 5, 1988
*
* Note that this file and ../Xmu/RdBitF.c look very similar.... Keep them
- * that way (but don't use common source code so that people can have one
+ * that way (but don't use common source code so that people can have one
* without the other).
*/
@@ -85,7 +85,7 @@ NextInt (
int value = 0;
int gotone = 0;
int done = 0;
-
+
/* loop, accumulate hex value until find delimiter */
/* skip any initial delimiters found in read stream */
@@ -164,7 +164,7 @@ XReadBitmapFileData (
}
continue;
}
-
+
if (sscanf(line, "static short %s = {", name_and_type) == 1)
version10p = 1;
else if (sscanf(line,"static unsigned char %s = {",name_and_type) == 1)
@@ -181,7 +181,7 @@ XReadBitmapFileData (
if (strcmp("bits[]", type))
continue;
-
+
if (!ww || !hh)
RETURN (BitmapFileInvalid);
@@ -194,7 +194,7 @@ XReadBitmapFileData (
size = bytes_per_line * hh;
bits = (unsigned char *) Xmalloc ((unsigned int) size);
- if (!bits)
+ if (!bits)
RETURN (BitmapNoMemory);
if (version10p) {
@@ -213,7 +213,7 @@ XReadBitmapFileData (
int bytes;
for (bytes=0, ptr=bits; bytes<size; bytes++, ptr++) {
- if ((value = NextInt(fstream)) < 0)
+ if ((value = NextInt(fstream)) < 0)
RETURN (BitmapFileInvalid);
*ptr=value;
}
diff --git a/src/RecolorC.c b/src/RecolorC.c
index 4f575aed..ad18e8a4 100644
--- a/src/RecolorC.c
+++ b/src/RecolorC.c
@@ -37,7 +37,7 @@ XRecolorCursor(
Cursor cursor,
XColor *foreground,
XColor *background)
-{
+{
register xRecolorCursorReq *req;
LockDisplay(dpy);
diff --git a/src/ReconfWin.c b/src/ReconfWin.c
index 694a671c..9ca137f4 100644
--- a/src/ReconfWin.c
+++ b/src/ReconfWin.c
@@ -54,7 +54,7 @@ XConfigureWindow(
if (mask & CWX)
*value++ = changes->x;
-
+
if (mask & CWY)
*value++ = changes->y;
diff --git a/src/Region.c b/src/Region.c
index cdd223b2..d5200da8 100644
--- a/src/Region.c
+++ b/src/Region.c
@@ -28,13 +28,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -324,9 +324,9 @@ XOffsetRegion(
return 1;
}
-/*
+/*
Utility procedure Compress:
- Replace r by the region r', where
+ Replace r by the region r', where
p in r' iff (Quantifer m <= dx) (p + m in r), and
Quantifier is Exists if grow is TRUE, For all if grow is FALSE, and
(x,y) + m = (x+m,y) if xdir is TRUE; (x,y+m) if xdir is FALSE.
@@ -403,7 +403,7 @@ XShrinkRegion(
* scanline y. numRects is the size of the array.
***********************************************************/
-static BOX
+static BOX
*IndexRects(
register BOX *rects,
register int numRects,
@@ -507,9 +507,9 @@ XIntersectRegion(
(!EXTENTCHECK(&reg1->extents, &reg2->extents)))
newReg->numRects = 0;
else
- miRegionOp (newReg, reg1, reg2,
+ miRegionOp (newReg, reg1, reg2,
miIntersectO, NULL, NULL);
-
+
/*
* Can't alter newReg's extents before we call miRegionOp because
* it might be one of the source regions and miRegionOp depends
@@ -528,13 +528,13 @@ miRegionCopy(
{
if (dstrgn != rgn) /* don't want to copy to itself */
- {
+ {
if (dstrgn->size < rgn->numRects)
{
if (dstrgn->rects)
{
BOX *prevRects = dstrgn->rects;
-
+
if (! (dstrgn->rects = (BOX *)
Xrealloc((char *) dstrgn->rects,
(unsigned) rgn->numRects * (sizeof(BOX))))) {
@@ -560,7 +560,7 @@ miRegionCopy(
/*
* combinRegs(newReg, reg1, reg2)
* if one region is above or below the other.
-*/
+*/
static void
combineRegs(
@@ -600,7 +600,7 @@ combineRegs(
}
tempReg->extents = reg1->extents;
tempReg->numRects = reg1->numRects + reg2->numRects;
- EXTENTS(&reg2->extents, tempReg);
+ EXTENTS(&reg2->extents, tempReg);
miRegionCopy(newReg, tempReg);
Xfree((char *)tempReg);
}
@@ -609,7 +609,7 @@ combineRegs(
* QuickCheck checks to see if it does not have to go through all the
* the ugly code for the region call. It returns 1 if it did all
* the work for Union, otherwise 0 - still work to be done.
-*/
+*/
static int
QuickCheck(Region newReg, Region reg1, Region reg2)
@@ -643,8 +643,8 @@ QuickCheck(Region newReg, Region reg1, Region reg2)
/* TopRects(rects, reg1, reg2)
* N.B. We now assume that reg1 and reg2 intersect. Therefore we are
* NOT checking in the two while loops for stepping off the end of the
- * region.
- */
+ * region.
+ */
static int
TopRects(
@@ -663,7 +663,7 @@ TopRects(
while(tempRects->y1 < reg2->extents.y1)
{
MEMCHECK(newReg, rects, FirstRect);
- ADDRECTNOX(newReg,rects, tempRects->x1, tempRects->y1,
+ ADDRECTNOX(newReg,rects, tempRects->x1, tempRects->y1,
tempRects->x2, MIN(tempRects->y2, reg2->extents.y1));
tempRects++;
}
@@ -675,7 +675,7 @@ TopRects(
while (tempRects->y1 < reg1->extents.y1)
{
MEMCHECK(newReg, rects, FirstRect);
- ADDRECTNOX(newReg, rects, tempRects->x1,tempRects->y1,
+ ADDRECTNOX(newReg, rects, tempRects->x1,tempRects->y1,
tempRects->x2, MIN(tempRects->y2, reg1->extents.y1));
tempRects++;
}
@@ -739,7 +739,7 @@ miCoalesce(
{
pCurBox++;
}
-
+
if (pCurBox != pRegEnd)
{
/*
@@ -756,7 +756,7 @@ miCoalesce(
curStart = pRegEnd - pReg->rects;
pRegEnd = pReg->rects + pReg->numRects;
}
-
+
if ((curNumRects == prevNumRects) && (curNumRects != 0)) {
pCurBox -= curNumRects;
/*
@@ -824,7 +824,7 @@ miCoalesce(
*pPrevBox++ = *pCurBox++;
} while (pCurBox != pRegEnd);
}
-
+
}
}
return (curStart);
@@ -905,7 +905,7 @@ miRegionOp(
* band */
short bot; /* Bottom of non-overlapping
* band */
-
+
/*
* Initialization:
* set r1, r2, r1End and r2End appropriately, preserve the important
@@ -917,9 +917,9 @@ miRegionOp(
r2 = reg2->rects;
r1End = r1 + reg1->numRects;
r2End = r2 + reg2->numRects;
-
+
oldRects = newReg->rects;
-
+
EMPTY_REGION(newReg);
/*
@@ -936,7 +936,7 @@ miRegionOp(
newReg->size = 0;
return;
}
-
+
/*
* Initialize ybot and ytop.
* In the upcoming loop, ybot and ytop serve different functions depending
@@ -954,7 +954,7 @@ miRegionOp(
ybot = reg1->extents.y1;
else
ybot = reg2->extents.y1;
-
+
/*
* prevBand serves to mark the start of the previous band so rectangles
* can be coalesced into larger rectangles. qv. miCoalesce, above.
@@ -965,7 +965,7 @@ miRegionOp(
* array of rectangles.
*/
prevBand = 0;
-
+
do
{
curBand = newReg->numRects;
@@ -982,13 +982,13 @@ miRegionOp(
{
r1BandEnd++;
}
-
+
r2BandEnd = r2;
while ((r2BandEnd != r2End) && (r2BandEnd->y1 == r2->y1))
{
r2BandEnd++;
}
-
+
/*
* First handle the band that doesn't intersect, if any.
*
@@ -1048,7 +1048,7 @@ miRegionOp(
(* overlapFunc) (newReg, r1, r1BandEnd, r2, r2BandEnd, ytop, ybot);
}
-
+
if (newReg->numRects != curBand)
{
prevBand = miCoalesce (newReg, prevBand, curBand);
@@ -1225,7 +1225,7 @@ miUnionO (
register short y2)
{
register BoxPtr pNextRect;
-
+
pNextRect = &pReg->rects[pReg->numRects];
#define MERGERECT(r) \
@@ -1252,7 +1252,7 @@ miUnionO (
} \
assert(pReg->numRects<=pReg->size);\
r++;
-
+
assert (y1<y2);
while ((r1 != r1End) && (r2 != r2End))
{
@@ -1265,7 +1265,7 @@ miUnionO (
MERGERECT(r2);
}
}
-
+
if (r1 != r1End)
{
do
@@ -1311,7 +1311,7 @@ XUnionRegion(
/*
* Region 1 completely subsumes region 2
*/
- if ((reg1->numRects == 1) &&
+ if ((reg1->numRects == 1) &&
(reg1->extents.x1 <= reg2->extents.x1) &&
(reg1->extents.y1 <= reg2->extents.y1) &&
(reg1->extents.x2 >= reg2->extents.x2) &&
@@ -1325,7 +1325,7 @@ XUnionRegion(
/*
* Region 2 completely subsumes region 1
*/
- if ((reg2->numRects == 1) &&
+ if ((reg2->numRects == 1) &&
(reg2->extents.x1 <= reg1->extents.x1) &&
(reg2->extents.y1 <= reg1->extents.y1) &&
(reg2->extents.x2 >= reg1->extents.x2) &&
@@ -1336,7 +1336,7 @@ XUnionRegion(
return 1;
}
- miRegionOp (newReg, reg1, reg2, miUnionO,
+ miRegionOp (newReg, reg1, reg2, miUnionO,
miUnionNonO, miUnionNonO);
newReg->extents.x1 = min(reg1->extents.x1, reg2->extents.x1);
@@ -1376,9 +1376,9 @@ miSubtractNonO1 (
register short y2)
{
register BoxPtr pNextRect;
-
+
pNextRect = &pReg->rects[pReg->numRects];
-
+
assert(y1<y2);
while (r != rEnd)
@@ -1426,9 +1426,9 @@ miSubtractO (
{
register BoxPtr pNextRect;
register int x1;
-
+
x1 = r1->x1;
-
+
assert(y1<y2);
pNextRect = &pReg->rects[pReg->numRects];
@@ -1547,7 +1547,7 @@ miSubtractO (
}
return 0; /* lint */
}
-
+
/*-
*-----------------------------------------------------------------------
* miSubtract --
@@ -1566,7 +1566,7 @@ miSubtractO (
int
XSubtractRegion(
Region regM,
- Region regS,
+ Region regS,
register Region regD)
{
/* check for trivial reject */
@@ -1576,8 +1576,8 @@ XSubtractRegion(
miRegionCopy(regD, regM);
return 1;
}
-
- miRegionOp (regD, regM, regS, miSubtractO,
+
+ miRegionOp (regD, regM, regS, miSubtractO,
miSubtractNonO1, NULL);
/*
@@ -1607,10 +1607,10 @@ XXorRegion(Region sra, Region srb, Region dr)
}
/*
- * Check to see if the region is empty. Assumes a region is passed
+ * Check to see if the region is empty. Assumes a region is passed
* as a parameter
*/
-int
+int
XEmptyRegion(
Region r)
{
@@ -1619,9 +1619,9 @@ XEmptyRegion(
}
/*
- * Check to see if two regions are equal
+ * Check to see if two regions are equal
*/
-int
+int
XEqualRegion(Region r1, Region r2)
{
int i;
@@ -1641,7 +1641,7 @@ XEqualRegion(Region r1, Region r2)
return TRUE;
}
-int
+int
XPointInRegion(
Region pRegion,
int x, int y)
@@ -1660,7 +1660,7 @@ XPointInRegion(
return FALSE;
}
-int
+int
XRectInRegion(
register Region region,
int rx, int ry,
@@ -1676,7 +1676,7 @@ XRectInRegion(
prect->y1 = ry;
prect->x2 = rwidth + rx;
prect->y2 = rheight + ry;
-
+
/* this is (just) a useful optimization */
if ((region->numRects == 0) || !EXTENTCHECK(&region->extents, prect))
return(RectangleOut);
@@ -1738,6 +1738,6 @@ XRectInRegion(
}
- return(partIn ? ((ry < prect->y2) ? RectanglePart : RectangleIn) :
+ return(partIn ? ((ry < prect->y2) ? RectanglePart : RectangleIn) :
RectangleOut);
}
diff --git a/src/RegstFlt.c b/src/RegstFlt.c
index 0648a54d..f053e823 100644
--- a/src/RegstFlt.c
+++ b/src/RegstFlt.c
@@ -19,12 +19,12 @@
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
+ * PERFORMANCE OF THIS SOFTWARE.
*
* Author: Seiji Kuwari OMRON Corporation
* kuwa@omron.co.jp
* kuwa%omron.co.jp@uunet.uu.net
- */
+ */
/*
Copyright 1990, 1991, 1998 The Open Group
diff --git a/src/RepWindow.c b/src/RepWindow.c
index 89e5a789..274f790c 100644
--- a/src/RepWindow.c
+++ b/src/RepWindow.c
@@ -34,9 +34,9 @@ in this Software without prior written authorization from The Open Group.
int
XReparentWindow(
register Display *dpy,
- Window w,
+ Window w,
Window p,
- int x,
+ int x,
int y)
{
register xReparentWindowReq *req;
diff --git a/src/RestackWs.c b/src/RestackWs.c
index 72228eb6..95f8886f 100644
--- a/src/RestackWs.c
+++ b/src/RestackWs.c
@@ -67,6 +67,6 @@ XRestackWindows (
return 1;
}
-
-
+
+
diff --git a/src/RotProp.c b/src/RotProp.c
index 589a9d5a..419a3e94 100644
--- a/src/RotProp.c
+++ b/src/RotProp.c
@@ -47,7 +47,7 @@ XRotateWindowProperties(
req->window = w;
req->nAtoms = nprops;
req->nPositions = npositions;
-
+
req->length += nprops;
nbytes = nprops << 2;
/* XXX Cray needs packing here.... */
diff --git a/src/SetCRects.c b/src/SetCRects.c
index 1e870f9e..0231289e 100644
--- a/src/SetCRects.c
+++ b/src/SetCRects.c
@@ -67,7 +67,7 @@ int
XSetClipRectangles (
register Display *dpy,
GC gc,
- int clip_x_origin,
+ int clip_x_origin,
int clip_y_origin,
XRectangle *rectangles,
int n,
@@ -80,4 +80,4 @@ XSetClipRectangles (
SyncHandle();
return 1;
}
-
+
diff --git a/src/SetClOrig.c b/src/SetClOrig.c
index 96d37139..f38f69ea 100644
--- a/src/SetClOrig.c
+++ b/src/SetClOrig.c
@@ -35,7 +35,7 @@ int
XSetClipOrigin (
register Display *dpy,
GC gc,
- int xorig,
+ int xorig,
int yorig)
{
XGCValues *gv = &gc->values;
diff --git a/src/SetDashes.c b/src/SetDashes.c
index 6ecf955d..bba11497 100644
--- a/src/SetDashes.c
+++ b/src/SetDashes.c
@@ -54,4 +54,4 @@ XSetDashes (
SyncHandle();
return 1;
}
-
+
diff --git a/src/SetHints.c b/src/SetHints.c
index 130e7cac..f9ce04d2 100644
--- a/src/SetHints.c
+++ b/src/SetHints.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -96,12 +96,12 @@ XSetSizeHints( /* old routine */
prop.maxAspectY = hints->max_aspect.y;
}
return XChangeProperty (dpy, w, property, XA_WM_SIZE_HINTS, 32,
- PropModeReplace, (unsigned char *) &prop,
+ PropModeReplace, (unsigned char *) &prop,
OldNumPropSizeElements);
}
-/*
- * XSetWMHints sets the property
+/*
+ * XSetWMHints sets the property
* WM_HINTS type: WM_HINTS format:32
*/
@@ -131,14 +131,14 @@ XSetWMHints (
if (wmhints->flags & WindowGroupHint)
prop.windowGroup = wmhints->window_group;
return XChangeProperty (dpy, w, XA_WM_HINTS, XA_WM_HINTS, 32,
- PropModeReplace, (unsigned char *) &prop,
+ PropModeReplace, (unsigned char *) &prop,
NumPropWMHintsElements);
}
-/*
- * XSetZoomHints sets the property
+/*
+ * XSetZoomHints sets the property
* WM_ZOOM_HINTS type: WM_SIZE_HINTS format: 32
*/
@@ -152,8 +152,8 @@ XSetZoomHints (
}
-/*
- * XSetNormalHints sets the property
+/*
+ * XSetNormalHints sets the property
* WM_NORMAL_HINTS type: WM_SIZE_HINTS format: 32
*/
@@ -197,8 +197,8 @@ XSetIconSizes (
pp += 1;
list += 1;
}
- XChangeProperty (dpy, w, XA_WM_ICON_SIZE, XA_WM_ICON_SIZE, 32,
- PropModeReplace, (unsigned char *) prop,
+ XChangeProperty (dpy, w, XA_WM_ICON_SIZE, XA_WM_ICON_SIZE, 32,
+ PropModeReplace, (unsigned char *) prop,
count * NumPropIconSizeElements);
Xfree ((char *)prop);
}
@@ -218,10 +218,10 @@ XSetCommand (
for (i = 0, nbytes = 0; i < argc; i++) {
nbytes += safestrlen(argv[i]) + 1;
}
- if ((bp = buf = Xmalloc((unsigned) nbytes))) {
+ if ((bp = buf = Xmalloc((unsigned) nbytes))) {
/* copy arguments into single buffer */
for (i = 0; i < argc; i++) {
- if (argv[i]) {
+ if (argv[i]) {
(void) strcpy(bp, argv[i]);
bp += strlen(argv[i]) + 1;
}
@@ -230,11 +230,11 @@ XSetCommand (
}
XChangeProperty (dpy, w, XA_WM_COMMAND, XA_STRING, 8,
PropModeReplace, (unsigned char *)buf, nbytes);
- Xfree(buf);
+ Xfree(buf);
}
return 1;
}
-/*
+/*
* XSetStandardProperties sets the following properties:
* WM_NAME type: STRING format: 8
* WM_ICON_NAME type: STRING format: 8
@@ -269,7 +269,7 @@ XSetStandardProperties (
phints.flags |= IconPixmapHint;
}
if (argv != NULL) XSetCommand(dpy, w, argv, argc);
-
+
if (hints != NULL) XSetNormalHints(dpy, w, hints);
if (phints.flags != 0) XSetWMHints(dpy, w, &phints);
@@ -299,7 +299,7 @@ XSetClassHint(
len_nm = safestrlen(classhint->res_name);
len_cl = safestrlen(classhint->res_class);
- if ((class_string = s = Xmalloc((unsigned) (len_nm + len_cl + 2)))) {
+ if ((class_string = s = Xmalloc((unsigned) (len_nm + len_cl + 2)))) {
if (len_nm) {
strcpy(s, classhint->res_name);
s += len_nm + 1;
@@ -311,7 +311,7 @@ XSetClassHint(
else
*s = '\0';
XChangeProperty(dpy, w, XA_WM_CLASS, XA_STRING, 8,
- PropModeReplace, (unsigned char *) class_string,
+ PropModeReplace, (unsigned char *) class_string,
len_nm+len_cl+2);
Xfree(class_string);
}
diff --git a/src/SetIFocus.c b/src/SetIFocus.c
index 37f796d2..6f10419f 100644
--- a/src/SetIFocus.c
+++ b/src/SetIFocus.c
@@ -37,7 +37,7 @@ XSetInputFocus(
Window focus,
int revert_to,
Time time)
-{
+{
register xSetInputFocusReq *req;
LockDisplay(dpy);
diff --git a/src/SetLocale.c b/src/SetLocale.c
index 2302c447..01557772 100644
--- a/src/SetLocale.c
+++ b/src/SetLocale.c
@@ -19,7 +19,7 @@
* OMRON, NTT SOFTWARE, AND NTT, DISCLAIM ALL WARRANTIES WITH REGARD
* TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS, IN NO EVENT SHALL OMRON, NTT SOFTWARE, OR NTT, BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -27,7 +27,7 @@
* Authors: Li Yuhong OMRON Corporation
* Tetsuya Kato NTT Software Corporation
* Hiroshi Kuribayashi OMRON Corporation
- *
+ *
*/
/*
@@ -138,12 +138,12 @@ _Xsetlocale(
* returned by setlocale.
*
* Should match the code in Xt ExtractLocaleName.
- *
+ *
* This function name is a bit of a misnomer. Even the siname parameter
- * name is a misnomer. On most modern operating systems this function is
- * a no-op, simply returning the osname; but on older operating systems
- * like Ultrix, or HPUX 9.x and earlier, when you set LANG=german.88591
- * then the string returned by setlocale(LC_ALL, "") will look something
+ * name is a misnomer. On most modern operating systems this function is
+ * a no-op, simply returning the osname; but on older operating systems
+ * like Ultrix, or HPUX 9.x and earlier, when you set LANG=german.88591
+ * then the string returned by setlocale(LC_ALL, "") will look something
* like: "german.88591 german.88591 ... german.88591". Then this function
* will pick out the LC_CTYPE component and return a pointer to that.
*/
@@ -211,7 +211,7 @@ _XlcMapOSLocaleName(
start = osname;
# endif
# ifdef STARTCHAR
- if (start && (start = strchr (start, STARTCHAR)))
+ if (start && (start = strchr (start, STARTCHAR)))
# elif defined (STARTSTR)
if (start && (start = strstr (start,STARTSTR)))
# endif
diff --git a/src/SetNrmHint.c b/src/SetNrmHint.c
index 2b2f2400..043f3db0 100644
--- a/src/SetNrmHint.c
+++ b/src/SetNrmHint.c
@@ -69,7 +69,7 @@ void XSetWMSizeHints (
xPropSizeHints data;
memset(&data, 0, sizeof(data));
- data.flags = (hints->flags &
+ data.flags = (hints->flags &
(USPosition|USSize|PPosition|PSize|PMinSize|PMaxSize|
PResizeInc|PAspect|PBaseSize|PWinGravity));
@@ -111,7 +111,7 @@ void XSetWMSizeHints (
if (hints->flags & PWinGravity) {
data.winGravity = hints->win_gravity;
}
-
+
XChangeProperty (dpy, w, prop, XA_WM_SIZE_HINTS, 32,
PropModeReplace, (unsigned char *) &data,
NumPropSizeElements);
diff --git a/src/SetPMask.c b/src/SetPMask.c
index b81ea9df..5f979c42 100644
--- a/src/SetPMask.c
+++ b/src/SetPMask.c
@@ -42,7 +42,7 @@ XSetPlaneMask (
gc->values.plane_mask = planemask;
gc->dirty |= GCPlaneMask;
}
- UnlockDisplay(dpy);
+ UnlockDisplay(dpy);
SyncHandle();
return 1;
}
diff --git a/src/SetPntMap.c b/src/SetPntMap.c
index 94708f0e..fe236160 100644
--- a/src/SetPntMap.c
+++ b/src/SetPntMap.c
@@ -48,7 +48,7 @@ XSetPointerMapping (
req->nElts = nmaps;
req->length += (nmaps + 3)>>2;
Data (dpy, (char *)map, (long) nmaps);
- if (_XReply (dpy, (xReply *)&rep, 0, xFalse) == 0)
+ if (_XReply (dpy, (xReply *)&rep, 0, xFalse) == 0)
rep.success = MappingSuccess;
UnlockDisplay(dpy);
SyncHandle();
@@ -79,4 +79,4 @@ XChangeKeyboardMapping (
SyncHandle();
return 0;
}
-
+
diff --git a/src/SetRGBCMap.c b/src/SetRGBCMap.c
index d9eda534..f96a1955 100644
--- a/src/SetRGBCMap.c
+++ b/src/SetRGBCMap.c
@@ -49,7 +49,7 @@ void XSetRGBColormaps (
xPropStandardColormap *data, tmpdata; /* scratch data */
int mode = PropModeReplace; /* for partial writes */
Bool alloced_scratch_space; /* do we need to free? */
-
+
if (count < 1) return;
diff --git a/src/SetSSaver.c b/src/SetSSaver.c
index 3497727d..05c2a1b6 100644
--- a/src/SetSSaver.c
+++ b/src/SetSSaver.c
@@ -35,7 +35,7 @@ int
XSetScreenSaver(
register Display *dpy,
int timeout,
- int interval,
+ int interval,
int prefer_blank,
int allow_exp)
diff --git a/src/SetStCmap.c b/src/SetStCmap.c
index 7978f1dd..c02dfcb1 100644
--- a/src/SetStCmap.c
+++ b/src/SetStCmap.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -57,7 +57,7 @@ SOFTWARE.
/*
* WARNING
- *
+ *
* This is a pre-ICCCM routine. It must not reference any of the new fields
* in the XStandardColormap structure.
*/
diff --git a/src/SetTxtProp.c b/src/SetTxtProp.c
index 65f9855d..5d692f6d 100644
--- a/src/SetTxtProp.c
+++ b/src/SetTxtProp.c
@@ -4,13 +4,13 @@ Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Wyse not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/SetWMCMapW.c b/src/SetWMCMapW.c
index efb38052..4375531b 100644
--- a/src/SetWMCMapW.c
+++ b/src/SetWMCMapW.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -53,8 +53,8 @@ SOFTWARE.
#include "Xlibint.h"
#include <X11/Xatom.h>
-/*
- * XSetWMProtocols sets the property
+/*
+ * XSetWMProtocols sets the property
* WM_COLORMAP_WINDOWS type: WINDOW format:32
*/
diff --git a/src/SetWMProto.c b/src/SetWMProto.c
index ed07316a..f1963c60 100644
--- a/src/SetWMProto.c
+++ b/src/SetWMProto.c
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -53,8 +53,8 @@ SOFTWARE.
#include "Xlibint.h"
#include <X11/Xatom.h>
-/*
- * XSetWMProtocols sets the property
+/*
+ * XSetWMProtocols sets the property
* WM_PROTOCOLS type: ATOM format: 32
*/
diff --git a/src/StBytes.c b/src/StBytes.c
index 1476e83d..cc413623 100644
--- a/src/StBytes.c
+++ b/src/StBytes.c
@@ -53,7 +53,7 @@ XRotateBuffers (
*/
return XRotateWindowProperties(dpy, RootWindow(dpy, 0), n_to_atom, 8, rotate);
}
-
+
char *XFetchBuffer (
register Display *dpy,
int *nbytes,
@@ -67,8 +67,8 @@ char *XFetchBuffer (
*nbytes = 0;
if ((buffer < 0) || (buffer > 7)) return (NULL);
/* XXX should be (sizeof (maxint) - 1)/4 */
- if (XGetWindowProperty(dpy, RootWindow(dpy, 0), n_to_atom[buffer],
- 0L, 10000000L, False, XA_STRING,
+ if (XGetWindowProperty(dpy, RootWindow(dpy, 0), n_to_atom[buffer],
+ 0L, 10000000L, False, XA_STRING,
&actual_type, &actual_format, &nitems, &leftover, &data) != Success) {
return (NULL);
}
@@ -95,7 +95,7 @@ XStoreBuffer (
register int buffer)
{
if ((buffer < 0) || (buffer > 7)) return 0;
- return XChangeProperty(dpy, RootWindow(dpy, 0), n_to_atom[buffer],
+ return XChangeProperty(dpy, RootWindow(dpy, 0), n_to_atom[buffer],
XA_STRING, 8, PropModeReplace, (unsigned char *) bytes, nbytes);
}
diff --git a/src/StColors.c b/src/StColors.c
index f3a6b589..904ff236 100644
--- a/src/StColors.c
+++ b/src/StColors.c
@@ -42,7 +42,7 @@ XStoreColors(
xColorItem citem;
register xStoreColorsReq *req;
- LockDisplay(dpy);
+ LockDisplay(dpy);
GetReq(StoreColors, req);
req->cmap = cmap;
@@ -58,7 +58,7 @@ XStoreColors(
/* note that xColorItem doesn't contain all 16-bit quantities, so
we can't use Data16 */
- Data(dpy, (char *)&citem, (long) SIZEOF(xColorItem));
+ Data(dpy, (char *)&citem, (long) SIZEOF(xColorItem));
/* assume size is 4*n */
}
UnlockDisplay(dpy);
diff --git a/src/StName.c b/src/StName.c
index ba01ffb0..b057cdae 100644
--- a/src/StName.c
+++ b/src/StName.c
@@ -38,7 +38,7 @@ XStoreName (
Window w,
_Xconst char *name)
{
- return XChangeProperty(dpy, w, XA_WM_NAME, XA_STRING,
+ return XChangeProperty(dpy, w, XA_WM_NAME, XA_STRING,
8, PropModeReplace, (unsigned char *)name,
name ? strlen(name) : 0);
}
@@ -49,7 +49,7 @@ XSetIconName (
Window w,
_Xconst char *icon_name)
{
- return XChangeProperty(dpy, w, XA_WM_ICON_NAME, XA_STRING,
+ return XChangeProperty(dpy, w, XA_WM_ICON_NAME, XA_STRING,
8, PropModeReplace, (unsigned char *)icon_name,
icon_name ? strlen(icon_name) : 0);
}
diff --git a/src/StrToText.c b/src/StrToText.c
index 5ff62900..3d35cf6b 100644
--- a/src/StrToText.c
+++ b/src/StrToText.c
@@ -33,8 +33,8 @@ in this Software without prior written authorization from The Open Group.
#include <X11/Xutil.h>
/*
- * XStringListToTextProperty - fill in TextProperty structure with
- * concatenated list of null-separated strings. Return True if successful
+ * XStringListToTextProperty - fill in TextProperty structure with
+ * concatenated list of null-separated strings. Return True if successful
* else False. Allocate room on end for trailing NULL, but don't include in
* count.
*/
diff --git a/src/Text.c b/src/Text.c
index 95ad0d9d..8ddf4812 100644
--- a/src/Text.c
+++ b/src/Text.c
@@ -40,7 +40,7 @@ XDrawString(
int y,
_Xconst char *string,
int length)
-{
+{
int Datalength = 0;
register xPolyText8Req *req;
@@ -62,11 +62,11 @@ XDrawString(
req->length += (Datalength + 3)>>2; /* convert to number of 32-bit words */
- /*
+ /*
* If the entire request does not fit into the remaining space in the
* buffer, flush the buffer first. If the request does fit into the
* empty buffer, then we won't have to flush it at the end to keep
- * the buffer 32-bit aligned.
+ * the buffer 32-bit aligned.
*/
if (dpy->bufptr + Datalength > dpy->bufmax)
@@ -94,11 +94,11 @@ XDrawString(
PartialNChars = PartialNChars - 254;
CharacterOffset += 254;
}
-
+
if (PartialNChars)
{
nbytes = PartialNChars + SIZEOF(xTextElt);
- BufAlloc (unsigned char *, tbuf, nbytes);
+ BufAlloc (unsigned char *, tbuf, nbytes);
/* elt->delta = 0;
* elt->len = PartialNChars;
*/
@@ -114,23 +114,23 @@ XDrawString(
if (Datalength &= 3) {
char *pad;
- /*
+ /*
* BufAlloc is a macro that uses its last argument more than
- * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
+ * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
*/
length = 4 - Datalength;
BufAlloc (char *, pad, length);
- /*
+ /*
* if there are 3 bytes of padding, the first byte MUST be 0
- * so the pad bytes aren't mistaken for a final xTextElt
+ * so the pad bytes aren't mistaken for a final xTextElt
*/
*pad = 0;
}
- /*
+ /*
* If the buffer pointer is not now pointing to a 32-bit boundary,
* we must flush the buffer so that it does point to a 32-bit boundary
- * at the end of this routine.
+ * at the end of this routine.
*/
if ((dpy->bufptr - dpy->buffer) & 3)
diff --git a/src/Text16.c b/src/Text16.c
index 96d5911d..0aa41a6a 100644
--- a/src/Text16.c
+++ b/src/Text16.c
@@ -40,7 +40,7 @@ XDrawString16(
int y,
_Xconst XChar2b *string,
int length)
-{
+{
int Datalength = 0;
register xPolyText16Req *req;
@@ -62,11 +62,11 @@ XDrawString16(
req->length += (Datalength + 3)>>2; /* convert to number of 32-bit words */
- /*
+ /*
* If the entire request does not fit into the remaining space in the
* buffer, flush the buffer first. If the request does fit into the
* empty buffer, then we won't have to flush it at the end to keep
- * the buffer 32-bit aligned.
+ * the buffer 32-bit aligned.
*/
if (dpy->bufptr + Datalength > dpy->bufmax)
@@ -99,11 +99,11 @@ XDrawString16(
PartialNChars = PartialNChars - 254;
CharacterOffset += 254;
}
-
+
if (PartialNChars)
{
nbytes = PartialNChars * 2 + SIZEOF(xTextElt);
- BufAlloc (xTextElt *, elt, nbytes);
+ BufAlloc (xTextElt *, elt, nbytes);
elt->delta = 0;
elt->len = PartialNChars;
#if defined(MUSTCOPY) || defined(MUSTCOPY2B)
@@ -126,23 +126,23 @@ XDrawString16(
if (Datalength &= 3) {
char *pad;
- /*
+ /*
* BufAlloc is a macro that uses its last argument more than
- * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
+ * once, otherwise I'd write "BufAlloc (char *, pad, 4-length)"
*/
length = 4 - Datalength;
BufAlloc (char *, pad, length);
- /*
+ /*
* if there are 3 bytes of padding, the first byte MUST be 0
- * so the pad bytes aren't mistaken for a final xTextElt
+ * so the pad bytes aren't mistaken for a final xTextElt
*/
*pad = 0;
}
- /*
+ /*
* If the buffer pointer is not now pointing to a 32-bit boundary,
* we must flush the buffer so that it does point to a 32-bit boundary
- * at the end of this routine.
+ * at the end of this routine.
*/
if ((dpy->bufptr - dpy->buffer) & 3)
diff --git a/src/TextExt.c b/src/TextExt.c
index fc703011..62e84d68 100644
--- a/src/TextExt.c
+++ b/src/TextExt.c
@@ -43,7 +43,7 @@ from The Open Group.
#define max_byte2 max_char_or_byte2
-/*
+/*
* CI_GET_ROWZERO_CHAR_INFO_2D - do the same thing as CI_GET_CHAR_INFO_1D,
* except that the font has more than one row. This is special case of more
* general version used in XTextExt16.c since row == 0. This is used when
@@ -121,7 +121,7 @@ XTextExtents (
} else {
overall->ascent = max (overall->ascent, cs->ascent);
overall->descent = max (overall->descent, cs->descent);
- overall->lbearing = min (overall->lbearing,
+ overall->lbearing = min (overall->lbearing,
overall->width + cs->lbearing);
overall->rbearing = max (overall->rbearing,
overall->width + cs->rbearing);
@@ -134,7 +134,7 @@ XTextExtents (
* if there were no characters, then set everything to 0
*/
if (nfound == 0) {
- overall->width = overall->ascent = overall->descent =
+ overall->width = overall->ascent = overall->descent =
overall->lbearing = overall->rbearing = 0;
}
@@ -143,7 +143,7 @@ XTextExtents (
/*
- * XTextWidth - compute the width of a string of eightbit bytes. This is a
+ * XTextWidth - compute the width of a string of eightbit bytes. This is a
* subset of XTextExtents.
*/
int
diff --git a/src/TextExt16.c b/src/TextExt16.c
index 763350a1..ee259e60 100644
--- a/src/TextExt16.c
+++ b/src/TextExt16.c
@@ -43,7 +43,7 @@ from The Open Group.
#define max_byte2 max_char_or_byte2
/*
- * XTextExtents16 - compute the extents of string given as a sequence of
+ * XTextExtents16 - compute the extents of string given as a sequence of
* XChar2bs.
*/
int
@@ -96,7 +96,7 @@ XTextExtents16 (
} else {
overall->ascent = max (overall->ascent, cs->ascent);
overall->descent = max (overall->descent, cs->descent);
- overall->lbearing = min (overall->lbearing,
+ overall->lbearing = min (overall->lbearing,
overall->width + cs->lbearing);
overall->rbearing = max (overall->rbearing,
overall->width + cs->rbearing);
@@ -109,7 +109,7 @@ XTextExtents16 (
* if there were no characters, then set everything to 0
*/
if (nfound == 0) {
- overall->width = overall->ascent = overall->descent =
+ overall->width = overall->ascent = overall->descent =
overall->lbearing = overall->rbearing = 0;
}
@@ -118,7 +118,7 @@ XTextExtents16 (
/*
- * XTextWidth16 - compute the width of sequence of XChar2bs. This is a
+ * XTextWidth16 - compute the width of sequence of XChar2bs. This is a
* subset of XTextExtents16.
*/
int
diff --git a/src/TextToStr.c b/src/TextToStr.c
index a32de872..29d07c46 100644
--- a/src/TextToStr.c
+++ b/src/TextToStr.c
@@ -76,7 +76,7 @@ Status XTextPropertyToStringList (
*/
list = (char **) Xmalloc (nelements * sizeof (char *));
if (!list) return False;
-
+
start = (char *) Xmalloc ((datalen + 1) * sizeof (char)); /* for <NUL> */
if (!start) {
Xfree ((char *) list);
diff --git a/src/TrCoords.c b/src/TrCoords.c
index d0e0562f..6ec0a0fa 100644
--- a/src/TrCoords.c
+++ b/src/TrCoords.c
@@ -33,14 +33,14 @@ in this Software without prior written authorization from The Open Group.
Bool XTranslateCoordinates(
register Display *dpy,
- Window src_win,
+ Window src_win,
Window dest_win,
int src_x,
int src_y,
int *dst_x,
int *dst_y,
Window *child)
-{
+{
register xTranslateCoordsReq *req;
xTranslateCoordsReply rep;
@@ -55,7 +55,7 @@ Bool XTranslateCoordinates(
SyncHandle();
return(False);
}
-
+
*child = rep.child;
*dst_x = cvtINT16toInt (rep.dstX);
*dst_y = cvtINT16toInt (rep.dstY);
diff --git a/src/UIThrStubs.c b/src/UIThrStubs.c
index 13df9e7c..487bb06f 100644
--- a/src/UIThrStubs.c
+++ b/src/UIThrStubs.c
@@ -10,10 +10,10 @@
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -21,16 +21,16 @@
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
- *
+ *
* Except as contained in this notice, the name of David E. Wexelblat shall
* not be used in advertising or otherwise to promote the sale, use or
* other dealings in this Software without prior written authorization
* from David E. Wexelblat.
- *
+ *
*/
/*
- * Stubs for thread functions needed by the X library. Supports
+ * Stubs for thread functions needed by the X library. Supports
* UnixWare 2.x threads; may support Solaris 2 threads as well, but not
* tested. Defining things this way removes the dependency of the X
* library on the threads library, but still supports threads if the user
@@ -145,7 +145,7 @@ _Xthr_equal_stub_()
#endif /* SVR4 */
#endif /* CTHREADS */
-static xthread_t
+static xthread_t
_Xthr_self_stub_()
{
static xthread_t _X_no_thread_id;
@@ -153,7 +153,7 @@ _Xthr_self_stub_()
return(_X_no_thread_id); /* defined by <X11/Xthreads.h> */
}
-static int
+static int
_Xthr_zero_stub_()
{
return(0);
diff --git a/src/UnldFont.c b/src/UnldFont.c
index 2394e2d6..f0156973 100644
--- a/src/UnldFont.c
+++ b/src/UnldFont.c
@@ -35,7 +35,7 @@ int
XUnloadFont(
register Display *dpy,
Font font)
-{
+{
register xResourceReq *req;
LockDisplay(dpy);
diff --git a/src/VisUtil.c b/src/VisUtil.c
index 53320cad..6e957cb4 100644
--- a/src/VisUtil.c
+++ b/src/VisUtil.c
@@ -33,7 +33,7 @@ in this Software without prior written authorization from The Open Group.
#include <stdio.h>
/*
* This procedure returns a list of visual information structures
- * that match the specified attributes given in the visual information
+ * that match the specified attributes given in the visual information
* template.
*
* If no visuals exist that match the specified attributes, a NULL is
@@ -76,7 +76,7 @@ XVisualInfo *XGetVisualInfo(
count = 0;
total = 10;
- if (! (vip_base = vip = (XVisualInfo *)
+ if (! (vip_base = vip = (XVisualInfo *)
Xmalloc((unsigned) (sizeof(XVisualInfo) * total)))) {
UnlockDisplay(dpy);
return (XVisualInfo *) NULL;
@@ -128,13 +128,13 @@ XVisualInfo *XGetVisualInfo(
(vp->bits_per_rgb != visual_info_template->bits_per_rgb)) continue;
/* YEA!!! WE FOUND A GOOD ONE */
-
+
if (count+1 > total)
{
XVisualInfo *old_vip_base = vip_base;
total += 10;
if (! (vip_base = (XVisualInfo *)
- Xrealloc((char *) vip_base,
+ Xrealloc((char *) vip_base,
(unsigned) (sizeof(XVisualInfo) * total)))) {
Xfree((char *) old_vip_base);
UnlockDisplay(dpy);
@@ -160,7 +160,7 @@ XVisualInfo *XGetVisualInfo(
} /* END OF LOOP ON VISUALS */
} /* END OF IF THERE ARE ANY VISUALS AT THIS DEPTH */
-
+
} /* END OF LOOP ON DEPTHS */
} /* END OF LOOP ON SCREENS */
@@ -180,9 +180,9 @@ XVisualInfo *XGetVisualInfo(
/*
- * This procedure will return the visual information for a visual
- * that matches the specified depth and class for a screen. Since
- * multiple visuals may exist that match the specified depth and
+ * This procedure will return the visual information for a visual
+ * that matches the specified depth and class for a screen. Since
+ * multiple visuals may exist that match the specified depth and
* class, which visual chosen is undefined.
*
* If a visual is found, True is returned as the function value,
@@ -225,7 +225,7 @@ Status XMatchVisualInfo(
/* if nvisuals == 0 then vp will be NULL */
for (jj=0; jj<dp->nvisuals; jj++)
{
- if (vp->class == class)
+ if (vp->class == class)
{
visual_info->visual = _XVIDtoVisual(dpy, vp->visualid);
visual_info->visualid = vp->visualid;
diff --git a/src/WMGeom.c b/src/WMGeom.c
index 59041a9f..215ae7c4 100644
--- a/src/WMGeom.c
+++ b/src/WMGeom.c
@@ -74,13 +74,13 @@ XWMGeometry (
* Get the base sizes and increments. Section 4.1.2.3 of the ICCCM
* states that the base and minimum sizes are defaults for each other.
* If neither is given, then the base sizes should be 0. These parameters
- * control the sets of sizes that window managers should allow for the
+ * control the sets of sizes that window managers should allow for the
* window according to the following formulae:
*
* width = base_width + (i * width_inc)
* height = base_height + (j * height_inc)
*/
- base_width = ((hints->flags & PBaseSize) ? hints->base_width :
+ base_width = ((hints->flags & PBaseSize) ? hints->base_width :
((hints->flags & PMinSize) ? hints->min_width : 0));
base_height = ((hints->flags & PBaseSize) ? hints->base_height :
((hints->flags & PMinSize) ? hints->min_height : 0));
@@ -105,11 +105,11 @@ XWMGeometry (
* 4. multiply by the size increment
* 5. and add to the base size
*/
- rwidth = ((((umask & WidthValue) ? uwidth :
+ rwidth = ((((umask & WidthValue) ? uwidth :
((dmask & WidthValue) ? dwidth : 1)) * width_inc) +
base_width);
- rheight = ((((umask & HeightValue) ? uheight :
- ((dmask & HeightValue) ? dheight : 1)) * height_inc) +
+ rheight = ((((umask & HeightValue) ? uheight :
+ ((dmask & HeightValue) ? dheight : 1)) * height_inc) +
base_height);
/*
@@ -137,7 +137,7 @@ XWMGeometry (
if (dmask & XNegative) {
rx = (DisplayWidth (dpy, screen) + dx - rwidth - 2 * bwidth);
rmask |= XNegative;
- } else
+ } else
rx = dx;
} else {
rx = 0; /* gotta choose something... */
@@ -150,7 +150,7 @@ XWMGeometry (
if (dmask & YNegative) {
ry = (DisplayHeight(dpy, screen) + dy - rheight - 2 * bwidth);
rmask |= YNegative;
- } else
+ } else
ry = dy;
} else {
ry = 0; /* gotta choose something... */
diff --git a/src/WMProps.c b/src/WMProps.c
index a581f335..26ffc3ba 100644
--- a/src/WMProps.c
+++ b/src/WMProps.c
@@ -34,13 +34,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Wyse not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -62,7 +62,7 @@ SOFTWARE.
#include <X11/Xlocale.h>
-/*
+/*
* XSetWMProperties sets the following properties:
* WM_NAME type: TEXT format: varies?
* WM_ICON_NAME type: TEXT format: varies?
@@ -73,7 +73,7 @@ SOFTWARE.
* WM_CLASS type: STRING/STRING format: 8
* WM_LOCALE_NAME type: STRING format: 8
*/
-
+
void XSetWMProperties (
Display *dpy,
Window w, /* window to decorate */
@@ -109,7 +109,7 @@ void XSetWMProperties (
textprop.format = 8;
textprop.nitems = len;
XSetWMClientMachine (dpy, w, &textprop);
-
+
/* set hints about how geometry and window manager interaction */
if (sizeHints) XSetWMNormalHints (dpy, w, sizeHints);
if (wmHints) XSetWMHints (dpy, w, wmHints);
@@ -139,7 +139,7 @@ void XSetWMProperties (
}
XSetClassHint (dpy, w, classHints);
}
-
+
locale = setlocale(LC_CTYPE, (char *)NULL);
if (locale)
XChangeProperty (dpy, w, XInternAtom(dpy, "WM_LOCALE_NAME", False),
diff --git a/src/WarpPtr.c b/src/WarpPtr.c
index d8b1bc9a..223b035e 100644
--- a/src/WarpPtr.c
+++ b/src/WarpPtr.c
@@ -42,7 +42,7 @@ XWarpPointer(
unsigned int src_height,
int dest_x,
int dest_y)
-{
+{
register xWarpPointerReq *req;
LockDisplay(dpy);
diff --git a/src/WinEvent.c b/src/WinEvent.c
index 8839f355..7662609c 100644
--- a/src/WinEvent.c
+++ b/src/WinEvent.c
@@ -37,7 +37,7 @@ extern long const _Xevent_to_mask[];
#define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\
Button4MotionMask|Button5MotionMask)
-/*
+/*
* Return the next event in the queue
* for the given window matching one of the events in the mask.
* Events earlier in the queue are not discarded.
diff --git a/src/Window.c b/src/Window.c
index a40e7487..81996c54 100644
--- a/src/Window.c
+++ b/src/Window.c
@@ -43,7 +43,7 @@ void _XProcessWindowAttributes (
if (valuemask & CWBackPixmap)
*value++ = attributes->background_pixmap;
-
+
if (valuemask & CWBackPixel)
*value++ = attributes->background_pixel;
@@ -61,7 +61,7 @@ void _XProcessWindowAttributes (
if (valuemask & CWBackingStore)
*value++ = attributes->backing_store;
-
+
if (valuemask & CWBackingPlanes)
*value++ = attributes->backing_planes;
@@ -102,10 +102,10 @@ void _XProcessWindowAttributes (
Window XCreateWindow(
register Display *dpy,
Window parent,
- int x,
+ int x,
int y,
- unsigned int width,
- unsigned int height,
+ unsigned int width,
+ unsigned int height,
unsigned int borderWidth,
int depth,
unsigned int class,
@@ -133,7 +133,7 @@ Window XCreateWindow(
wid = req->wid = XAllocID(dpy);
valuemask &= AllMaskBits;
if ((req->mask = valuemask))
- _XProcessWindowAttributes (dpy, (xChangeWindowAttributesReq *)req,
+ _XProcessWindowAttributes (dpy, (xChangeWindowAttributesReq *)req,
valuemask, attributes);
UnlockDisplay(dpy);
SyncHandle();
diff --git a/src/Withdraw.c b/src/Withdraw.c
index 2d135c46..fbfc013a 100644
--- a/src/Withdraw.c
+++ b/src/Withdraw.c
@@ -5,13 +5,13 @@ Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.,
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Wyse not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/WrBitF.c b/src/WrBitF.c
index 5062fdca..01be0661 100644
--- a/src/WrBitF.c
+++ b/src/WrBitF.c
@@ -82,7 +82,7 @@ static char *Format_Image(
return(data);
}
-
+
#define BYTES_PER_OUTPUT_LINE 12
int
diff --git a/src/Xatomtype.h b/src/Xatomtype.h
index 7ab7e5a0..d9bb818f 100644
--- a/src/Xatomtype.h
+++ b/src/Xatomtype.h
@@ -29,13 +29,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
diff --git a/src/XlibAsync.c b/src/XlibAsync.c
index 6e963a61..28f898b8 100644
--- a/src/XlibAsync.c
+++ b/src/XlibAsync.c
@@ -115,9 +115,9 @@ _XGetAsyncReply(
return buf;
}
- /*
+ /*
*if we get here, then extra > rep->generic.length--meaning we
- * read a reply that's shorter than we expected. This is an
+ * read a reply that's shorter than we expected. This is an
* error, but we still need to figure out how to handle it...
*/
if ((rep->generic.length << 2) > len)
diff --git a/src/XlibInt.c b/src/XlibInt.c
index 4f4229a1..3a1f96f4 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -99,12 +99,12 @@ xthread_t (*_Xthread_self_fn)(void) = NULL;
#else /* XTHREADS else */
#if !USE_XCB
-#define UnlockNextReplyReader(d)
+#define UnlockNextReplyReader(d)
#define UnlockNextEventReader(d)
#define InternalLockDisplay(d,wskip)
#endif /* !USE_XCB */
-#endif /* XTHREADS else */
+#endif /* XTHREADS else */
/* check for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
* systems are broken and return EWOULDBLOCK when they should return EAGAIN
@@ -214,7 +214,7 @@ static char *_XAsyncReply(
* perform any operations (directly or indirectly) on the DISPLAY.
*
* Routines declared with a return type of 'Status' return 0 on failure,
- * and non 0 on success. Routines with no declared return type don't
+ * and non 0 on success. Routines with no declared return type don't
* return anything. Whenever possible routines that create objects return
* the object they have created.
*/
@@ -275,7 +275,7 @@ _XWaitForWritable(
XXX - what if cv is NULL and someone else comes along after
us while we are waiting?
*/
-
+
if (!dpy->lock ||
(!dpy->lock->event_awaiters &&
(!dpy->lock->reply_awaiters ||
@@ -327,7 +327,7 @@ _XWaitForWritable(
#endif
)
len = SIZEOF(xReply);
-
+
/* but we won't read more than the max buffer size */
if (len > BUFSIZE) len = BUFSIZE;
@@ -460,7 +460,7 @@ _XWaitForReadable(
{
int result;
int fd = dpy->fd;
- struct _XConnectionInfo *ilist;
+ struct _XConnectionInfo *ilist;
register int saved_event_serial = 0;
int in_read_events = 0;
register Bool did_proc_conni = False;
@@ -643,7 +643,7 @@ static void _XFlushInt(
/* This fix resets the bufptr to the front of the buffer so
* additional appends to the bufptr will not corrupt memory. Since
- * the server is down, these appends are no-op's anyway but
+ * the server is down, these appends are no-op's anyway but
* callers of _XFlush() are not verifying this before they call it.
*/
if (dpy->flags & XlibDisplayIOError)
@@ -701,7 +701,7 @@ static void _XFlushInt(
#endif
#ifdef ESZTEST
} else if (ESZTEST()) {
- if (todo > 1)
+ if (todo > 1)
todo >>= 1;
else {
_XWaitForWritable(dpy
@@ -854,7 +854,7 @@ _XEventsQueued(
#endif /* XTHREADS*/
{
read_buf = buf.buf;
-
+
if (len < SIZEOF(xReply)
#ifdef XTHREADS
|| dpy->async_handlers
@@ -870,7 +870,7 @@ _XEventsQueued(
#endif
(void) _XRead (dpy, read_buf, (long) len);
-
+
#ifdef XTHREADS
/* what did we actually read: reply or event? */
if (dpy->lock && dpy->lock->reply_awaiters) {
@@ -1061,7 +1061,7 @@ void _XReadEvents(
RESETITERPTR(rep,xReply,
_XAsyncReply (dpy, rep,
ITERPTR(rep), &len, True));
- pend = len;
+ pend = len;
} else {
if (rep->generic.type == X_Error)
_XError (dpy, (xError *) rep);
@@ -1086,7 +1086,7 @@ void _XReadEvents(
UnlockNextEventReader(dpy);
}
-/*
+/*
* _XRead - Read bytes from the socket taking into account incomplete
* reads. This routine may have to be reworked if int < long.
*/
@@ -1180,7 +1180,7 @@ void _XRead32(
/*
* _XRead32 - Read bytes from the socket unpacking each 32 bits
* into a long (64 bits on a CRAY computer).
- *
+ *
*/
static void _doXRead32(
register Display *dpy,
@@ -1308,7 +1308,7 @@ void _XReadPad(
if ((dpy->flags & XlibDisplayIOError) || size == 0) return;
iov[0].iov_len = (int)size;
iov[0].iov_base = data;
- /*
+ /*
* The following hack is used to provide 32 bit long-word
* aligned padding. The [1] vector is of length 0, 1, 2, or 3,
* whatever is needed.
@@ -1351,7 +1351,7 @@ void _XReadPad(
ESET(EPIPE);
_XIOError(dpy);
}
-
+
else /* bytes_read is less than 0; presumably -1 */ {
/* If it's a system call interrupt, it's not an error. */
if (!ECHECK(EINTR))
@@ -1451,7 +1451,7 @@ _XSend (
InsertIOV (dpy->buffer, dbufsize)
InsertIOV ((char *)data, size)
InsertIOV ((char *)pad, padsize)
-
+
ESET(0);
if ((len = _X11TransWritev(dpy->trans_conn, iov, i)) >= 0) {
skip += len;
@@ -1473,7 +1473,7 @@ _XSend (
#endif
#ifdef ESZTEST
} else if (ESZTEST()) {
- if (todo > 1)
+ if (todo > 1)
todo >>= 1;
else {
_XWaitForWritable(dpy
@@ -1672,9 +1672,9 @@ _XSetLastRequestRead(
if (newseq < lastseq) {
newseq += 0x10000;
if (newseq > dpy->request) {
- (void) fprintf (stderr,
+ (void) fprintf (stderr,
"Xlib: sequence lost (0x%lx > 0x%lx) in reply type 0x%x!\n",
- newseq, dpy->request,
+ newseq, dpy->request,
(unsigned int) rep->type);
newseq -= 0x10000;
}
@@ -1764,9 +1764,9 @@ _XReply (
}
if (extra <= rep->generic.length) {
if (extra > 0)
- /*
+ /*
* Read the extra data into storage immediately
- * following the GenericReply structure.
+ * following the GenericReply structure.
*/
(void) _XRead (dpy, (char *) (NEXTPTR(rep,xReply)),
((long)extra) << 2);
@@ -1791,9 +1791,9 @@ _XReply (
#endif
return 1;
}
- /*
+ /*
*if we get here, then extra > rep->generic.length--meaning we
- * read a reply that's shorter than we expected. This is an
+ * read a reply that's shorter than we expected. This is an
* error, but we still need to figure out how to handle it...
*/
(void) _XRead (dpy, (char *) (NEXTPTR(rep,xReply)),
@@ -1836,12 +1836,12 @@ _XReply (
UnlockNextReplyReader(dpy);
return (0);
}
- /*
+ /*
* we better see if there is an extension who may
* want to suppress the error.
*/
for (ext = dpy->ext_procs; !ret && ext; ext = ext->next) {
- if (ext->error)
+ if (ext->error)
ret = (*ext->error)(dpy, err, &ext->codes, &ret_code);
}
if (!ret) {
@@ -1864,7 +1864,7 @@ _XReply (
break;
}
}
-}
+}
static char *
_XAsyncReply(
@@ -1887,7 +1887,7 @@ _XAsyncReply(
*lenp = 0;
return buf;
}
-
+
for (async = dpy->async_handlers; async; async = next) {
next = async->next;
if ((consumed = (*async->handler)(dpy, rep, buf, *lenp, async->data)))
@@ -1896,7 +1896,7 @@ _XAsyncReply(
if (!consumed) {
if (!discard)
return buf;
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"Xlib: unexpected async reply (sequence 0x%lx)!\n",
dpy->last_request_read);
#ifdef XTHREADS
@@ -2193,7 +2193,7 @@ XAddConnectionWatch(
* Unregister a callback registered by XAddConnectionWatch.
* Both callback and client_data must match what was passed to
* XAddConnectionWatch.
- */
+ */
void
XRemoveConnectionWatch(
Display* dpy,
@@ -2269,7 +2269,7 @@ void _XEnq(
/* If dpy->qfree is non-NULL do this, else malloc a new one. */
dpy->qfree = qelt->next;
}
- else if ((qelt =
+ else if ((qelt =
(_XQEvent *) Xmalloc((unsigned)sizeof(_XQEvent))) == NULL) {
/* Malloc call failed! */
ESET(ENOMEM);
@@ -2281,7 +2281,7 @@ void _XEnq(
qelt->qserial_num = dpy->next_event_serial_num++;
if (dpy->tail) dpy->tail->next = qelt;
else dpy->head = qelt;
-
+
dpy->tail = qelt;
dpy->qlen++;
} else {
@@ -2325,7 +2325,7 @@ _XUnknownWireEvent(
register xEvent *event) /* wire protocol event */
{
#ifdef notdef
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"Xlib: unhandled wire event! event number = %d, display = %x\n.",
event->u.u.type, dpy);
#endif
@@ -2340,7 +2340,7 @@ _XUnknownNativeEvent(
register xEvent *event) /* wire protocol event */
{
#ifdef notdef
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"Xlib: unhandled native event! event number = %d, display = %x\n.",
re->type, dpy);
#endif
@@ -2361,7 +2361,7 @@ _XWireToEvent(
(xGenericReply *)event);
((XAnyEvent *)re)->send_event = ((event->u.u.type & 0x80) != 0);
((XAnyEvent *)re)->display = dpy;
-
+
/* Ignore the leading bit of the event type since it is set when a
client sends an event rather than the server. */
@@ -2430,7 +2430,7 @@ _XWireToEvent(
ev->y_root = cvtINT16toInt(event->u.enterLeave.rootY);
ev->state = event->u.enterLeave.state;
ev->mode = event->u.enterLeave.mode;
- ev->same_screen = (event->u.enterLeave.flags &
+ ev->same_screen = (event->u.enterLeave.flags &
ELFlagSameScreen) && True;
ev->focus = (event->u.enterLeave.flags &
ELFlagFocus) && True;
@@ -2668,14 +2668,14 @@ _XWireToEvent(
case ClientMessage:
{
register int i;
- register XClientMessageEvent *ev
+ register XClientMessageEvent *ev
= (XClientMessageEvent *) re;
ev->window = event->u.clientMessage.window;
ev->format = event->u.u.detail;
switch (ev->format) {
- case 8:
+ case 8:
ev->message_type = event->u.clientMessage.u.b.type;
- for (i = 0; i < 20; i++)
+ for (i = 0; i < 20; i++)
ev->data.b[i] = event->u.clientMessage.u.b.bytes[i];
break;
case 16:
@@ -2721,7 +2721,7 @@ _XWireToEvent(
/*
- * _XDefaultIOError - Default fatal system error reporting routine. Called
+ * _XDefaultIOError - Default fatal system error reporting routine. Called
* when an X internal system error is encountered.
*/
int _XDefaultIOError(
@@ -2732,7 +2732,7 @@ int _XDefaultIOError(
"X connection to %s broken (explicit kill or server shutdown).\r\n",
DisplayString (dpy));
} else {
- (void) fprintf (stderr,
+ (void) fprintf (stderr,
"XIO: fatal IO error %d (%s) on X server \"%s\"\r\n",
#ifdef WIN32
WSAGetLastError(), strerror(WSAGetLastError()),
@@ -2740,7 +2740,7 @@ int _XDefaultIOError(
errno, strerror (errno),
#endif
DisplayString (dpy));
- (void) fprintf (stderr,
+ (void) fprintf (stderr,
" after %lu requests (%lu known processed) with %d events remaining.\r\n",
NextRequest(dpy) - 1, LastKnownRequestProcessed(dpy),
QLength(dpy));
@@ -2765,7 +2765,7 @@ static int _XPrintDefaultError(
XGetErrorText(dpy, event->error_code, buffer, BUFSIZ);
XGetErrorDatabaseText(dpy, mtype, "XError", "X Error", mesg, BUFSIZ);
(void) fprintf(fp, "%s: %s\n ", mesg, buffer);
- XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d",
+ XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d",
mesg, BUFSIZ);
(void) fprintf(fp, mesg, event->request_code);
if (event->request_code < 128) {
@@ -2798,7 +2798,7 @@ static int _XPrintDefaultError(
/* kludge, try to find the extension that caused it */
buffer[0] = '\0';
for (ext = dpy->ext_procs; ext; ext = ext->next) {
- if (ext->error_string)
+ if (ext->error_string)
(*ext->error_string)(dpy, event->error_code, &ext->codes,
buffer, BUFSIZ);
if (buffer[0]) {
@@ -2809,7 +2809,7 @@ static int _XPrintDefaultError(
ext->codes.first_error < (int)event->error_code &&
(!bext || ext->codes.first_error > bext->codes.first_error))
bext = ext;
- }
+ }
if (bext)
sprintf(buffer, "%s.%d", bext->name,
event->error_code - bext->codes.first_error);
@@ -2849,7 +2849,7 @@ static int _XPrintDefaultError(
(void) fprintf(fp, mesg, event->resourceid);
fputs("\n", fp);
}
- XGetErrorDatabaseText(dpy, mtype, "ErrorSerial", "Error Serial #%d",
+ XGetErrorDatabaseText(dpy, mtype, "ErrorSerial", "Error Serial #%d",
mesg, BUFSIZ);
fputs(" ", fp);
(void) fprintf(fp, mesg, event->serial);
@@ -2887,7 +2887,7 @@ int _XError (
Display *dpy,
register xError *rep)
{
- /*
+ /*
* X_Error packet encountered! We need to unpack the error before
* giving it to the user.
*/
@@ -2930,7 +2930,7 @@ int _XError (
return _XDefaultError(dpy, (XErrorEvent *)&event);
}
}
-
+
/*
* _XIOError - call user connection error handler and exit
*/
@@ -3106,7 +3106,7 @@ _XData32(
#ifdef WORD64
/*
- * XXX This is a *really* stupid way of doing this. It should just use
+ * XXX This is a *really* stupid way of doing this. It should just use
* dpy->bufptr directly, taking into account where in the word it is.
*/
@@ -3357,7 +3357,7 @@ static int AccessFile (path, pathbuf, len_pathbuf, pathret)
return 1;
}
-#ifndef __UNIXOS2__
+#ifndef __UNIXOS2__
/* one last place to look */
drive = getenv ("HOMEDRIVE");
if (drive) {
diff --git a/src/XomGeneric.h b/src/XomGeneric.h
index ce61eca3..8e245f89 100644
--- a/src/XomGeneric.h
+++ b/src/XomGeneric.h
@@ -143,7 +143,7 @@ typedef struct _XOCGenericPart {
typedef struct _XOCGenericRec {
XOCMethods methods;
- XOCCoreRec core;
+ XOCCoreRec core;
XOCGenericPart gen;
} XOCGenericRec, *XOCGeneric;
diff --git a/src/Xrm.c b/src/Xrm.c
index 65d058fa..00612f50 100644
--- a/src/Xrm.c
+++ b/src/Xrm.c
@@ -5,13 +5,13 @@ Copyright 1987, 1988, 1990 by Digital Equipment Corporation, Maynard
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -1071,20 +1071,20 @@ XrmQPutStringResource(
*/
/*
- * This function is highly optimized to inline as much as possible.
- * Be very careful with modifications, or simplifications, as they
+ * This function is highly optimized to inline as much as possible.
+ * Be very careful with modifications, or simplifications, as they
* may adversely affect the performance.
*
* Chris Peterson, MIT X Consortium 5/17/90.
*/
-/*
+/*
* Xlib spec says max 100 quarks in a lookup, will stop and return if
* return if any single production's lhs has more than 100 components.
*/
#define QLIST_SIZE 100
-/*
+/*
* This should be big enough to handle things like the XKeysymDB or biggish
* ~/.Xdefaults or app-defaults files. Anything bigger will be allocated on
* the heap.
@@ -1125,14 +1125,14 @@ static void GetDatabase(
if (!db)
return;
- /*
- * if strlen (str) < DEF_BUFF_SIZE allocate buffers on the stack for
+ /*
+ * if strlen (str) < DEF_BUFF_SIZE allocate buffers on the stack for
* speed otherwise malloc the buffer. From a buffer overflow standpoint
* we can be sure that neither: a) a component on the lhs, or b) a
* value on the rhs, will be longer than the overall length of str,
* i.e. strlen(str).
*
- * This should give good performance when parsing "*foo: bar" type
+ * This should give good performance when parsing "*foo: bar" type
* databases as might be passed with -xrm command line options; but
* with larger databases, e.g. .Xdefaults, app-defaults, or KeysymDB
* files, the size of the buffers will be overly large. One way
@@ -1143,7 +1143,7 @@ static void GetDatabase(
str_len = strlen (str);
if (DEF_BUFF_SIZE > str_len) lhs = lhs_s;
- else if ((lhs = (char*) Xmalloc (str_len)) == NULL)
+ else if ((lhs = (char*) Xmalloc (str_len)) == NULL)
return;
alloc_chars = DEF_BUFF_SIZE < str_len ? str_len : DEF_BUFF_SIZE;
@@ -1159,7 +1159,7 @@ static void GetDatabase(
dolines = doall;
/*
- * First: Remove extra whitespace.
+ * First: Remove extra whitespace.
*/
do {
@@ -1231,13 +1231,13 @@ static void GetDatabase(
* Third: loop through the LHS of the resource specification
* storing characters and converting this to a Quark.
*/
-
+
num_quarks = 0;
t_bindings = bindings;
sig = 0;
ptr = lhs;
- *t_bindings = XrmBindTightly;
+ *t_bindings = XrmBindTightly;
for(;;) {
if (!is_binding(bits)) {
while (!is_EOQ(bits)) {
@@ -1246,7 +1246,7 @@ static void GetDatabase(
bits = next_char(c, str);
}
- quarks[num_quarks++] =
+ quarks[num_quarks++] =
_XrmInternalStringToQuark(lhs, ptr - lhs, sig, False);
if (num_quarks > QLIST_SIZE) {
@@ -1266,9 +1266,9 @@ static void GetDatabase(
sig = (sig << 1) + c; /* Compute the signature. */
} while (is_space(bits = next_char(c, str)));
- /*
+ /*
* The spec doesn't permit it, but support spaces
- * internal to resource name/class
+ * internal to resource name/class
*/
if (is_separator(bits))
@@ -1292,7 +1292,7 @@ static void GetDatabase(
* If two separators appear with no Text between them then
* ignore them.
*
- * If anyone of those separators is a '*' then the binding
+ * If anyone of those separators is a '*' then the binding
* will be loose, otherwise it will be tight.
*/
@@ -1337,7 +1337,7 @@ static void GetDatabase(
* the right hand side.
*/
- /*
+ /*
* Fourth: Remove more whitespace
*/
@@ -1355,7 +1355,7 @@ static void GetDatabase(
break;
}
- /*
+ /*
* Fifth: Process the right hand side.
*/
@@ -1456,8 +1456,8 @@ static void GetDatabase(
else {
int tcount;
- /*
- * Otherwise just insert those characters into the
+ /*
+ * Otherwise just insert those characters into the
* string, since no special processing is needed on
* numerics we can skip the special processing.
*/
@@ -1480,7 +1480,7 @@ static void GetDatabase(
}
}
- /*
+ /*
* It is important to make sure that there is room for at least
* four more characters in the buffer, since I can add that
* many characters into the buffer after a backslash has occured.
@@ -1489,7 +1489,7 @@ static void GetDatabase(
if (ptr + len > ptr_max) {
char * temp_str;
- alloc_chars += BUFSIZ/10;
+ alloc_chars += BUFSIZ/10;
temp_str = Xrealloc(rhs, sizeof(char) * alloc_chars);
if (!temp_str) {
@@ -1506,7 +1506,7 @@ static void GetDatabase(
}
/*
- * Lastly: Terminate the value string, and store this entry
+ * Lastly: Terminate the value string, and store this entry
* into the database.
*/
@@ -1515,7 +1515,7 @@ static void GetDatabase(
/* Store it in database */
value.size = ptr - rhs;
value.addr = (XPointer) rhs;
-
+
PutEntry(db, bindings, quarks, XrmQString, &value);
}
@@ -2280,7 +2280,7 @@ Bool XrmQGetSearchList(
} else {
if (table && !table->leaf)
table = table->next;
- if (table &&
+ if (table &&
AppendLEntry((LTable)table, names, classes, &closure)) {
_XUnlockMutex(&db->linfo);
return False;
diff --git a/src/XrmI.h b/src/XrmI.h
index 949bcd6f..0791260d 100644
--- a/src/XrmI.h
+++ b/src/XrmI.h
@@ -31,11 +31,11 @@ from The Open Group.
/*
* Macros to abstract out reading the file, and getting its size.
*
- * You may need to redefine these for various other operating systems.
+ * You may need to redefine these for various other operating systems.
*/
#include <X11/Xos.h>
-#include <sys/stat.h>
+#include <sys/stat.h>
#define GetSizeOfFile(fd,size) \
{ \
diff --git a/src/globals.c b/src/globals.c
index 11965cb5..30ff11df 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -48,7 +48,7 @@ from The Open Group.
*/
#ifdef NULL_NOT_ZERO /* then need to initialize */
#define SetZero(t,var,z) t var = z
-#else
+#else
#define SetZero(t,var,z) t var
#endif
@@ -117,25 +117,25 @@ extern int close();
#ifdef SVR4
extern int _XsSetupSpStream();
extern int _XsSetupNamedStream();
-#endif
+#endif
extern int _XsSetupLocalStream();
extern int _XsConnectLocalClient();
extern int _XsCallLocalServer();
extern int _XsReadLocalStream();
extern int _XsErrorCall();
extern int _XsWriteLocalStream();
-extern int _XsCloseLocalStream();
+extern int _XsCloseLocalStream();
extern int _XsSetupTliStream();
extern int _XsConnectTliClient();
-extern int _XsCallTliServer();
-extern int _XsReadTliStream();
+extern int _XsCallTliServer();
+extern int _XsReadTliStream();
extern int _XsWriteTliStream();
extern int _XsCloseTliStream();
Xstream _XsStream[] = {
- {
+ {
/* local connections using pseudo-ttys */
_XsSetupLocalStream,
@@ -147,7 +147,7 @@ Xstream _XsStream[] = {
close,
NULL
},
- {
+ {
#ifdef SVR4
/* local connections using named streams */
diff --git a/src/imConv.c b/src/imConv.c
index e30f8ef9..2a50c37c 100644
--- a/src/imConv.c
+++ b/src/imConv.c
@@ -46,9 +46,9 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "XlcPubI.h"
#ifdef XKB
-/*
- * rather than just call _XLookupString (i.e. the pre-XKB XLookupString)
- * do this because with XKB the event may have some funky modifiers that
+/*
+ * rather than just call _XLookupString (i.e. the pre-XKB XLookupString)
+ * do this because with XKB the event may have some funky modifiers that
* _XLookupString doesn't grok.
*/
#include "XKBlib.h"
@@ -107,7 +107,7 @@ _XimGetLocaleCode (
* locale
*/
/*ARGSUSED*/
-int
+int
_XimGetCharCode (
XPointer ucs_conv,
KeySym keysym,
@@ -146,7 +146,7 @@ static int lookup_string(
{
int ret;
unsigned ctrls = XkbGetXlibControls (event->display);
- XkbSetXlibControls (event->display,
+ XkbSetXlibControls (event->display,
XkbLC_ForceLatin1Lookup, XkbLC_ForceLatin1Lookup);
ret = XLookupString(event, (char *)buffer, nbytes, keysym, status);
XkbSetXlibControls (event->display,
@@ -183,11 +183,11 @@ _XimLookupMBText(
memcpy(look, (char *)buffer,count);
look[count] = '\0';
if ((count = im->methods->ctstombs(ic->core.im,
- (char*) look, count,
+ (char*) look, count,
buffer, nbytes, &dummy)) < 0) {
count = 0;
}
- } else if ((count == 0) ||
+ } else if ((count == 0) ||
(count == 1 && (symbol > 0x7f && symbol < 0xff00))) {
XPointer from = (XPointer) &ucs4;
@@ -252,7 +252,7 @@ _XimLookupWCText(
if (count > 1) {
if ((count = im->methods->ctstowcs(ic->core.im,
- (char*) look, count,
+ (char*) look, count,
buffer, nbytes, &dummy)) < 0) {
count = 0;
}
@@ -326,11 +326,11 @@ _XimLookupUTF8Text(
memcpy(look, (char *)buffer,count);
look[count] = '\0';
if ((count = im->methods->ctstoutf8(ic->core.im,
- (char*) look, count,
+ (char*) look, count,
buffer, nbytes, &dummy)) < 0) {
count = 0;
}
- } else if ((count == 0) ||
+ } else if ((count == 0) ||
(count == 1 && (symbol > 0x7f && symbol < 0xff00))) {
XPointer from = (XPointer) &ucs4;
diff --git a/src/locking.c b/src/locking.c
index d69b3548..533a7a1a 100644
--- a/src/locking.c
+++ b/src/locking.c
@@ -1,6 +1,6 @@
/* $Xorg: locking.c,v 1.5 2001/02/09 02:03:40 xorgcvs Exp $ */
/*
-
+
Copyright 1992, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
@@ -346,7 +346,7 @@ static void _XConditionWait(
xthread_t self = xthread_self();
char *old_file = locking_file;
int old_line = locking_line;
-
+
#ifdef XTHREADS_DEBUG
printf("line %d thread %x in condition wait\n", line, self);
#endif
@@ -398,7 +398,7 @@ static void _XConditionSignal(
#endif
xcondition_signal(cv);
}
-
+
#if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE)
static void _XConditionBroadcast(cv,file,line)
@@ -417,7 +417,7 @@ static void _XConditionBroadcast(
#endif
xcondition_broadcast(cv);
}
-
+
static void _XFreeDisplayLock(
Display *dpy)
diff --git a/src/locking.h b/src/locking.h
index 96c99b97..ced61815 100644
--- a/src/locking.h
+++ b/src/locking.h
@@ -1,5 +1,5 @@
/* $Xorg: locking.h,v 1.4 2001/02/09 02:03:40 xorgcvs Exp $ */
-/*
+/*
Copyright 1992, 1998 The Open Group
diff --git a/src/os2Stubs.c b/src/os2Stubs.c
index 9d109025..6d99cd75 100644
--- a/src/os2Stubs.c
+++ b/src/os2Stubs.c
@@ -3,26 +3,26 @@
* <marineau@genie.uottawa.ca>
* <Holger.Veit@gmd.de>
*
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
- *
- * Except as contained in this notice, the name of Sebastien Marineau or Holger Veit
- * shall not be used in advertising or otherwise to promote the sale, use or other
+ *
+ * Except as contained in this notice, the name of Sebastien Marineau or Holger Veit
+ * shall not be used in advertising or otherwise to promote the sale, use or other
* dealings in this Software without prior written authorization from Holger Veit or
* Sebastien Marineau.
*
@@ -67,7 +67,7 @@ char *__XOS2RedirRoot(char *fname)
return fname;
root = (char*)getenv("X11ROOT");
- if (root==0 ||
+ if (root==0 ||
(fname[1]==':' && isalpha(fname[0])) ||
(strlen(fname)+strlen(root)+2) > 300)
return fname;
@@ -132,7 +132,7 @@ BOOL any_ready;
int np,ns, i,ready_handles,n;
APIRET rc;
-sd.have_read=FALSE; sd.have_write=FALSE;
+sd.have_read=FALSE; sd.have_write=FALSE;
sd.socket_nread=0; sd.socket_nwrite=0; sd.socket_ntotal=0;
sd.max_fds=31; ready_handles=0; any_ready=FALSE;
sd.pipe_ntotal=0; sd.pipe_have_write=FALSE;
@@ -150,7 +150,7 @@ if(FirstTime){
}
/* Call these a first time to set the semaphore */
rc = DosCreateEventSem(NULL, &hPipeSem, DC_SEM_SHARED, FALSE);
- if(rc) {
+ if(rc) {
fprintf(stderr, "Could not create event semaphore, rc=%d\n",rc);
return(-1);
}
@@ -239,7 +239,7 @@ if(FirstTime){
ready_handles+=np;
any_ready = TRUE;
}
- else if (np == -1) {
+ else if (np == -1) {
return(-1); }
}
@@ -250,7 +250,7 @@ if(FirstTime){
}
else if (ns == -1) {return(-1);}
- if (i%8 == 0) {
+ if (i%8 == 0) {
now_millis = os2_get_sys_millis();
if((now_millis-start_millis) > timeout_ms) timeout_ms = 0;
}
@@ -350,7 +350,7 @@ fd_set *readfds,*writefds;
int j,n;
memcpy(sd->tcp_select_copy,sd->tcp_select_mask,
sd->socket_ntotal*sizeof(int));
-
+
e = os2_tcp_select(sd->tcp_select_copy,sd->socket_nread,
sd->socket_nwrite, 0, 0);
@@ -371,7 +371,7 @@ fd_set *readfds,*writefds;
n ++;
}
errno = 0;
-
+
return n;
}
if(e<0){
@@ -394,7 +394,7 @@ PIPESEMSTATE pipeSemState[128];
APIRET rc;
e = 0;
rc = DosResetEventSem(hPipeSem,&ulPostCount);
- rc = DosQueryNPipeSemState((HSEM) hPipeSem, (PPIPESEMSTATE)&pipeSemState,
+ rc = DosQueryNPipeSemState((HSEM) hPipeSem, (PPIPESEMSTATE)&pipeSemState,
sizeof(pipeSemState));
if(rc) fprintf(stderr,"SELECT: rc from QueryNPipeSem: %d\n",rc);
i=0;
diff --git a/src/poly.h b/src/poly.h
index 0d82443c..0215acd4 100644
--- a/src/poly.h
+++ b/src/poly.h
@@ -28,13 +28,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -177,7 +177,7 @@ typedef struct {
* the polygon by incrementing the y coordinate. We
* keep a list of edges which the current scanline crosses,
* sorted by x. This list is called the Active Edge Table (AET)
- * As we change the y-coordinate, we update each entry in
+ * As we change the y-coordinate, we update each entry in
* in the active edge table to reflect the edges new xcoord.
* This list must be sorted at each scanline in case
* two edges intersect.
@@ -204,7 +204,7 @@ typedef struct {
* for the winding number rule
*/
#define CLOCKWISE 1
-#define COUNTERCLOCKWISE -1
+#define COUNTERCLOCKWISE -1
typedef struct _EdgeTableEntry {
int ymax; /* ycoord at which we exit this edge. */
diff --git a/src/udcInf.c b/src/udcInf.c
index 43b1cb02..fafc642b 100644
--- a/src/udcInf.c
+++ b/src/udcInf.c
@@ -48,7 +48,7 @@ from The Open Group.
#include <XomGeneric.h>
/*
- external symbols
+ external symbols
*/
extern FontData read_EncodingInfo();
extern int _xudc_get_codeset();
@@ -151,8 +151,8 @@ int *num_codeset;
} else {
int *prev_ret = ret;
- ret =
- (int *)Xrealloc(ret,num_ret*sizeof(int));
+ ret =
+ (int *)Xrealloc(ret,num_ret*sizeof(int));
if (ret == NULL){
Xfree(prev_ret);
}
@@ -309,9 +309,9 @@ int *num_gr;
return 0;
}
-/*
+/*
* Code convert wo tomonau UDC area no kakutoku
- * GetUDCCPArea() / glyph_to_code()
+ * GetUDCCPArea() / glyph_to_code()
*
*/
@@ -375,7 +375,7 @@ XlcCharSet charset;
sprintf(buf, "csd%d.charset_name", i);
_XlcGetLocaleDataBase(lcd, "XLC_CHARSET_DEFINE", buf, &value, &count);
if(count > 0){
- if(!_XlcNCompareISOLatin1(value[0],
+ if(!_XlcNCompareISOLatin1(value[0],
charset->name,strlen(value[0])) ){
return(True);
}
@@ -406,7 +406,7 @@ int size;
strcpy(&from[seq_len + name_len],src);
return True;
}
-int
+int
_xudc_glyph_to_code(locale,charset_str,codeset,glyph_index,codepoint)
char *locale;
char *charset_str;
@@ -432,7 +432,7 @@ unsigned long *codepoint;
dst = (unsigned char *)to32;
memset(dst,0,25);
-
+
lcd = (XLCd)_XlcGenericLoader(locale);
if (!_xudc_gi_to_vgi(lcd,locale,charset_str,codeset,
@@ -560,7 +560,7 @@ int *num_cr;
/*
* code_to_glyph()
- *
+ *
*/
typedef struct __XUDCGIInf {
char *charset_str;
@@ -589,7 +589,7 @@ FontScope scope;
*
*
*/
-static Bool
+static Bool
_xudc_vgi_to_gi(lcd,locale,vglyph,glyph,charset,charsetname,size)
XLCd lcd;
char *locale;
@@ -605,7 +605,7 @@ int size;
FontData font_data;
CodeSet cs;
-
+
for(i=0;;i++){
sprintf(buf, "fs%d.charset.name",i);
_XlcGetLocaleDataBase(lcd, "XLC_FONTSET", buf, &value, &count);
diff --git a/src/x11_trans.c b/src/x11_trans.c
index 3c4f8595..594c8752 100644
--- a/src/x11_trans.c
+++ b/src/x11_trans.c
@@ -19,7 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/src/xcb_disp.c b/src/xcb_disp.c
index 079c87ff..dfd6803c 100644
--- a/src/xcb_disp.c
+++ b/src/xcb_disp.c
@@ -65,7 +65,7 @@ int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int *scr
#ifdef HAVE_LAUNCHD
if(!display || !*display) display = getenv("DISPLAY");
-
+
if(display && strlen(display)>11 && !strncmp(display, "/tmp/launch", 11)) {
/* do nothing -- the magic happens inside of xcb_connect */
} else
diff --git a/src/xcb_io.c b/src/xcb_io.c
index 997930fb..05f3959e 100644
--- a/src/xcb_io.c
+++ b/src/xcb_io.c
@@ -30,7 +30,7 @@
*/
static void check_internal_connections(Display *dpy)
{
- struct _XConnectionInfo *ilist;
+ struct _XConnectionInfo *ilist;
fd_set r_mask;
struct timeval tv;
int result;
@@ -130,11 +130,11 @@ static void process_responses(Display *dpy, int wait_for_first_event, xcb_generi
* so we need to shift the trailing data to be
* after the first 32 bytes. */
if (event->response_type == GenericEvent &&
- ((xcb_ge_event_t*)event)->length)
+ ((xcb_ge_event_t*)event)->length)
{
- memmove(&event->full_sequence,
+ memmove(&event->full_sequence,
&event[1],
- ((xcb_ge_event_t*)event)->length * 4);
+ ((xcb_ge_event_t*)event)->length * 4);
}
_XEnq(dpy, (xEvent *) event);
wait_for_first_event = 0;
@@ -421,7 +421,7 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
return 0;
}
- /*
+ /*
* we better see if there is an extension who may
* want to suppress the error.
*/
diff --git a/src/xcms/AddDIC.c b/src/xcms/AddDIC.c
index 6f2987fd..8ac9852f 100644
--- a/src/xcms/AddDIC.c
+++ b/src/xcms/AddDIC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/AddSF.c b/src/xcms/AddSF.c
index 395a2343..f7b1dd2d 100644
--- a/src/xcms/AddSF.c
+++ b/src/xcms/AddSF.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/CCC.c b/src/xcms/CCC.c
index 3ba62cd2..ba52f29d 100644
--- a/src/xcms/CCC.c
+++ b/src/xcms/CCC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -86,7 +86,7 @@ from The Open Group.
* SYNOPSIS
*/
-XcmsCCC
+XcmsCCC
XcmsCreateCCC(
Display *dpy,
int screenNumber,
@@ -115,7 +115,7 @@ XcmsCreateCCC(
if (pDefaultCCC == NULL ||
!(newccc = (XcmsCCC) Xcalloc(1, (unsigned) sizeof(XcmsCCCRec)))) {
return(NULL);
- }
+ }
/*
* Should inherit the following as result of a memmove():
@@ -172,7 +172,7 @@ XcmsCreateCCC(
*
* SYNOPSIS
*/
-XcmsCCC
+XcmsCCC
XcmsDefaultCCC(
Display *dpy,
int screenNumber)
diff --git a/src/xcms/CvColW.c b/src/xcms/CvColW.c
index d57a7666..50e95dea 100644
--- a/src/xcms/CvColW.c
+++ b/src/xcms/CvColW.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/CvCols.c b/src/xcms/CvCols.c
index 0fcd55eb..3a60b836 100644
--- a/src/xcms/CvCols.c
+++ b/src/xcms/CvCols.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -239,7 +239,7 @@ ConvertMixedColors(
* batches:
* DI to DD
* DD to DI(not CIEXYZ)
- *
+ *
* format_flag:
* 0x01 : convert Device-Dependent only specifications to the
* target format.
@@ -421,7 +421,7 @@ _XcmsDIConvertColors(
* 3. The calling routine may want to convert only between
* CIExyY <-> CIEXYZ <-> CIEuvY
* therefore, this routine allows pWhitePt to equal NULL.
- *
+ *
*
* RETURNS
* XcmsFailure if failed,
@@ -507,7 +507,7 @@ Continue:
* complementary, i.e.,
* for an i, 0 <= i < n elements
* from_CIEXYZ[i] is not the inverse of to_CIEXYZ[i]
- *
+ *
* Execute the functions all the way to CIEXYZ
*/
while (*src_to_CIEXYZ) {
@@ -603,7 +603,7 @@ _XcmsDDConvertColors(
/*
* Its ok if pColors_in_out->format == XcmsCIEXYZFormat
- * or
+ * or
* if newFormat == XcmsCIEXYZFormat
*/
if ( !( ValidDDColorSpaceID(ccc, pColors_in_out->format)
@@ -670,7 +670,7 @@ Continue:
* complementary, i.e.,
* for an i, 0 <= i < n elements
* from_CIEXYZ[i] is not the inverse of to_CIEXYZ[i]
- *
+ *
* Execute the functions all the way to CIEXYZ
*/
while (*src_to_CIEXYZ) {
diff --git a/src/xcms/HVC.c b/src/xcms/HVC.c
index c242bac7..60e5eb81 100644
--- a/src/xcms/HVC.c
+++ b/src/xcms/HVC.c
@@ -4,7 +4,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -12,10 +12,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -25,10 +25,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -85,7 +85,7 @@
/*************************************************************************
* Note: The DBL_EPSILON for ANSI is 1e-5 so my checks need to take
* this into account. If your DBL_EPSILON is different then
- * adjust this define.
+ * adjust this define.
*
* Also note that EPS is the error factor in the calculations
* This may need to be the same as XMY_DBL_EPSILON in
@@ -319,7 +319,7 @@ XcmsTekHVC_ValidSpec(
}
while (pColor->spec.TekHVC.H >= 360.0) {
pColor->spec.TekHVC.H -= 360.0;
- }
+ }
return(XcmsSuccess);
}
@@ -416,9 +416,9 @@ XcmsTekHVCToCIEuvY(
tempHue = radians(tempHue);
/* Calculate u'v' for the obtained hue */
- u = (XcmsFloat) ((XCMS_COS(tempHue) * pColor->spec.TekHVC.C) /
+ u = (XcmsFloat) ((XCMS_COS(tempHue) * pColor->spec.TekHVC.C) /
(pColor->spec.TekHVC.V * (double)CHROMA_SCALE_FACTOR));
- v = (XcmsFloat) ((XCMS_SIN(tempHue) * pColor->spec.TekHVC.C) /
+ v = (XcmsFloat) ((XCMS_SIN(tempHue) * pColor->spec.TekHVC.C) /
(pColor->spec.TekHVC.V * (double)CHROMA_SCALE_FACTOR));
/* Based on the white point get the offset from best red */
@@ -623,6 +623,6 @@ _XcmsTekHVC_CheckModify(
} else if (pColor->spec.TekHVC.H >= 360.0) {
n = pColor->spec.TekHVC.H / 360.0;
pColor->spec.TekHVC.H -= n * 360.0;
- }
+ }
return(1);
}
diff --git a/src/xcms/HVCGcC.c b/src/xcms/HVCGcC.c
index 35981d75..142a127e 100644
--- a/src/xcms/HVCGcC.c
+++ b/src/xcms/HVCGcC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -68,19 +68,19 @@
/* ARGSUSED */
Status
XcmsTekHVCClipC (
- XcmsCCC ccc,
- XcmsColor *pColors_in_out,
+ XcmsCCC ccc,
+ XcmsColor *pColors_in_out,
unsigned int nColors,
unsigned int i,
Bool *pCompressed)
/*
* DESCRIPTION
* Reduce the Chroma for a specific hue and value to
- * to bring the given color into the gamut of the
+ * to bring the given color into the gamut of the
* specified device. As required of gamut compression
* functions in Xcms, this routine returns pColor_in_out
* in XcmsCIEXYZFormat on successful completion.
- *
+ *
* Since this routine works with the value within
* pColor_in_out intermediate results may be returned
* even though it may be invalid.
diff --git a/src/xcms/HVCGcV.c b/src/xcms/HVCGcV.c
index b6761c8f..80ff84ad 100644
--- a/src/xcms/HVCGcV.c
+++ b/src/xcms/HVCGcV.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -68,15 +68,15 @@
/* ARGSUSED */
Status
XcmsTekHVCClipV (
- XcmsCCC ccc,
- XcmsColor *pColors_in_out,
+ XcmsCCC ccc,
+ XcmsColor *pColors_in_out,
unsigned int nColors,
unsigned int i,
Bool *pCompressed)
/*
* DESCRIPTION
* Return the closest value for a specific hue and chroma.
- * This routine takes any color as input and outputs
+ * This routine takes any color as input and outputs
* a CIE XYZ color.
*
* Since this routine works with the value within
@@ -116,7 +116,7 @@ XcmsTekHVCClipV (
*/
pColor = pColors_in_out + i;
-
+
if (ccc->visual->class < StaticColor &&
FunctionSetOfCCC(ccc) != (XPointer) &XcmsLinearRGBFunctionSet) {
/*
@@ -164,7 +164,7 @@ XcmsTekHVCClipV (
/* When the value input is less than the maximum value point */
/* compute the intersection of the line from 0,0 to max_V, max_C */
/* using the chroma input. */
- pColor->spec.TekHVC.V = pColor->spec.TekHVC.C *
+ pColor->spec.TekHVC.V = pColor->spec.TekHVC.C *
hvc_max.spec.TekHVC.V / hvc_max.spec.TekHVC.C;
if (pColor->spec.TekHVC.V >= hvc_max.spec.TekHVC.V) {
pColor->spec.TekHVC.C = hvc_max.spec.TekHVC.C;
diff --git a/src/xcms/HVCGcVC.c b/src/xcms/HVCGcVC.c
index 4171c72d..d7c5e40f 100644
--- a/src/xcms/HVCGcVC.c
+++ b/src/xcms/HVCGcVC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -76,14 +76,14 @@
/* ARGSUSED */
Status
XcmsTekHVCClipVC (
- XcmsCCC ccc,
- XcmsColor *pColors_in_out,
+ XcmsCCC ccc,
+ XcmsColor *pColors_in_out,
unsigned int nColors,
unsigned int i,
Bool *pCompressed)
/*
* DESCRIPTION
- * This routine will find the closest value and chroma
+ * This routine will find the closest value and chroma
* for a specific hue. The color input is converted to
* HVC format and returned as CIE XYZ format.
*
@@ -176,7 +176,7 @@ XcmsTekHVCClipVC (
/* the value and chroma given and the line from 0,0 and hvc_max. */
Chroma = pColor->spec.TekHVC.C;
Value = pColor->spec.TekHVC.V;
- pColor->spec.TekHVC.C =
+ pColor->spec.TekHVC.C =
(Value + (hvc_max.spec.TekHVC.C / hvc_max.spec.TekHVC.V * Chroma)) /
((hvc_max.spec.TekHVC.V / hvc_max.spec.TekHVC.C) +
(hvc_max.spec.TekHVC.C / hvc_max.spec.TekHVC.V));
@@ -223,7 +223,7 @@ XcmsTekHVCClipVC (
if (!_XcmsTekHVC_CheckModify(pColor)) {
return (XcmsFailure);
}
- tmpDist = (XcmsFloat) XCMS_SQRT ((double)
+ tmpDist = (XcmsFloat) XCMS_SQRT ((double)
(((Chroma - pColor->spec.TekHVC.C) *
(Chroma - pColor->spec.TekHVC.C)) +
((Value - pColor->spec.TekHVC.V) *
@@ -235,7 +235,7 @@ XcmsTekHVCClipVC (
nI = (nMaxCount + nI) / 2;
saveDist = tmpDist;
bestValue = pColor->spec.TekHVC.V;
- bestChroma = pColor->spec.TekHVC.C;
+ bestChroma = pColor->spec.TekHVC.C;
}
if (nI == nILast || nI == 0) {
break;
diff --git a/src/xcms/HVCMnV.c b/src/xcms/HVCMnV.c
index fd33d2fa..719efcd4 100644
--- a/src/xcms/HVCMnV.c
+++ b/src/xcms/HVCMnV.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -97,7 +97,7 @@ XcmsTekHVCQueryMinV (
* XcmsFailure - Failure
* XcmsSuccess - Succeeded with no modifications
*
- */
+ */
{
XcmsCCCRec myCCC;
XcmsColor tmp;
diff --git a/src/xcms/HVCMxC.c b/src/xcms/HVCMxC.c
index 6e692370..3389b8d2 100644
--- a/src/xcms/HVCMxC.c
+++ b/src/xcms/HVCMxC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -75,7 +75,7 @@
*/
Status
XcmsTekHVCQueryMaxC(
- XcmsCCC ccc,
+ XcmsCCC ccc,
XcmsFloat hue,
XcmsFloat value,
XcmsColor *pColor_return)
@@ -212,7 +212,7 @@ XcmsTekHVCQueryMaxC(
if (ftmp1 < ftmp2) {
tmp.spec.TekHVC.V = lastValue;
tmp.spec.TekHVC.C = lastChroma;
- }
+ }
if (_XcmsTekHVC_CheckModify (&tmp)) {
memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor));
return(XcmsSuccess);
@@ -237,7 +237,7 @@ XcmsTekHVCQueryMaxC(
tmp.spec.TekHVC.C = lastChroma;
}
}
- }
+ }
/* make sure to return the input hue */
tmp.spec.TekHVC.H = hue;
memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor));
diff --git a/src/xcms/HVCMxV.c b/src/xcms/HVCMxV.c
index 72d0ccbc..c54b8309 100644
--- a/src/xcms/HVCMxV.c
+++ b/src/xcms/HVCMxV.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -144,7 +144,7 @@ XcmsTekHVCQueryMaxV(
if (max_vc.spec.TekHVC.C < tmp.spec.TekHVC.C) {
/*
- * If the chroma is greater than the chroma for the
+ * If the chroma is greater than the chroma for the
* maximum value/chroma point then the value is the
* the value for the maximum value, chroma point.
* This is an error but it I return the best approximation I can.
@@ -156,7 +156,7 @@ XcmsTekHVCQueryMaxV(
return(XcmsSuccess);
} else if (max_vc.spec.TekHVC.C == tmp.spec.TekHVC.C) {
/*
- * If the chroma is equal to the chroma for the
+ * If the chroma is equal to the chroma for the
* maximum value/chroma point then the value is the
* the value for the maximum value, chroma point.
*/
@@ -198,7 +198,7 @@ XcmsTekHVCQueryMaxV(
tmp.spec.TekHVC.H = hue; /* use the saved hue */
memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor));
return(XcmsSuccess);
- }
+ }
nChroma += savedChroma - tmp.spec.TekHVC.C;
if (nChroma > max_vc.spec.TekHVC.C) {
nChroma = max_vc.spec.TekHVC.C;
diff --git a/src/xcms/HVCMxVC.c b/src/xcms/HVCMxVC.c
index c3726f08..ae22b89d 100644
--- a/src/xcms/HVCMxVC.c
+++ b/src/xcms/HVCMxVC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -104,7 +104,7 @@ _XcmsTekHVCQueryMaxVCRGB(
* XcmsFailure - Failure
* XCMS_SUCCUSS - Succeeded
*
- */
+ */
{
XcmsFloat nSmall, nLarge;
XcmsColor tmp;
@@ -124,14 +124,14 @@ _XcmsTekHVCQueryMaxVCRGB(
* is NULL.
*/
if ((_XcmsConvertColorsWithWhitePt(ccc, &tmp,
- &ccc->pPerScrnInfo->screenWhitePt, 1, XcmsRGBiFormat, (Bool *) NULL)
+ &ccc->pPerScrnInfo->screenWhitePt, 1, XcmsRGBiFormat, (Bool *) NULL)
== XcmsFailure) && tmp.format != XcmsRGBiFormat) {
return (XcmsFailure);
}
/* Now pick the smallest RGB */
- nSmall = MIN3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nSmall = MIN3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Make the smallest RGB equal to zero */
tmp.spec.RGBi.red -= nSmall;
@@ -139,8 +139,8 @@ _XcmsTekHVCQueryMaxVCRGB(
tmp.spec.RGBi.blue -= nSmall;
/* Now pick the largest RGB */
- nLarge = MAX3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nLarge = MAX3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Scale the RGB values based on the largest one */
tmp.spec.RGBi.red /= nLarge;
@@ -157,7 +157,7 @@ _XcmsTekHVCQueryMaxVCRGB(
/* Convert from RGBi to HVC */
if (_XcmsConvertColorsWithWhitePt(ccc, &tmp,
- &ccc->pPerScrnInfo->screenWhitePt, 1, XcmsTekHVCFormat, (Bool *) NULL)
+ &ccc->pPerScrnInfo->screenWhitePt, 1, XcmsTekHVCFormat, (Bool *) NULL)
== XcmsFailure) {
return (XcmsFailure);
}
@@ -165,7 +165,7 @@ _XcmsTekHVCQueryMaxVCRGB(
/* make sure to return the input hue */
tmp.spec.TekHVC.H = hue;
memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor));
- return (XcmsSuccess);
+ return (XcmsSuccess);
}
@@ -202,7 +202,7 @@ XcmsTekHVCQueryMaxVC (
* XcmsFailure - Failure
* XcmsSuccess - Succeeded
*
- */
+ */
{
XcmsCCCRec myCCC;
@@ -219,7 +219,7 @@ XcmsTekHVCQueryMaxVC (
if (XcmsAddColorSpace(&XcmsTekHVCColorSpace) == XcmsFailure) {
return(XcmsFailure);
}
-
+
/* Use my own CCC */
memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
myCCC.clientWhitePt.format = XcmsUndefinedFormat;
@@ -230,8 +230,8 @@ XcmsTekHVCQueryMaxVC (
}
while (hue >= 360.0) {
hue -= 360.0;
- }
-
+ }
+
return(_XcmsTekHVCQueryMaxVCRGB (&myCCC, hue, pColor_return,
(XcmsRGBi *)NULL));
}
diff --git a/src/xcms/HVCMxVs.c b/src/xcms/HVCMxVs.c
index 88376e55..7368792b 100644
--- a/src/xcms/HVCMxVs.c
+++ b/src/xcms/HVCMxVs.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -76,7 +76,7 @@ XcmsTekHVCQueryMaxVSamples(
/*
* DESCRIPTION
* Return a set of values and chromas for the input Hue.
- * This routine will take any color as input.
+ * This routine will take any color as input.
* It returns TekHVC colors.
*
* Since this routine works with the value within
diff --git a/src/xcms/HVCWpAj.c b/src/xcms/HVCWpAj.c
index f9e2c38d..c7469dde 100644
--- a/src/xcms/HVCWpAj.c
+++ b/src/xcms/HVCWpAj.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. TekColor is a
* trademark of Tektronix, Inc. The term "TekHVC" designates a particular
@@ -11,10 +11,10 @@
* foreign patents pending). Permission is hereby granted to use, copy,
* modify, sell, and otherwise distribute this software and its
* documentation for any purpose and without fee, provided that:
- *
+ *
* 1. This copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and any modification thereof and in
- * supporting documentation;
+ * supporting documentation;
* 2. Any color-handling application which displays TekHVC color
* cooordinates identifies these as TekHVC color coordinates in any
* interface that displays these coordinates and in any associated
@@ -24,10 +24,10 @@
* including those provided in this file and any equivalent pathways and
* mathematical derivations, regardless of digital (e.g., floating point
* or integer) representation.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/IdOfPr.c b/src/xcms/IdOfPr.c
index 47e4ec30..37c7a631 100644
--- a/src/xcms/IdOfPr.c
+++ b/src/xcms/IdOfPr.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/LRGB.c b/src/xcms/LRGB.c
index dff67768..6ec2a188 100644
--- a/src/xcms/LRGB.c
+++ b/src/xcms/LRGB.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -189,7 +189,7 @@ XcmsColorSpace XcmsRGBColorSpace =
};
/*
- * Device-Independent Color Spaces known to the
+ * Device-Independent Color Spaces known to the
* LINEAR_RGB Screen Color Characteristics Function Set.
*/
static XcmsColorSpace *DDColorSpaces[] = {
@@ -483,17 +483,17 @@ LINEAR_RGB_InitSCCData(
/*
* Allocate memory for pScreenData
*/
- if (!(pScreenData = pScreenDefaultData = (LINEAR_RGB_SCCData *)
+ if (!(pScreenData = pScreenDefaultData = (LINEAR_RGB_SCCData *)
Xcalloc (1, sizeof(LINEAR_RGB_SCCData)))) {
return(XcmsFailure);
}
- /*
+ /*
* 1. Get the XYZ->RGB and RGB->XYZ matrices
*/
if (MatrixAtom == None ||
- !_XcmsGetProperty (dpy, RootWindow(dpy, screenNumber), MatrixAtom,
+ !_XcmsGetProperty (dpy, RootWindow(dpy, screenNumber), MatrixAtom,
&format_return, &nitems, &nbytes_return, &property_return) ||
nitems != 18 || format_return != 32) {
/*
@@ -658,7 +658,7 @@ LINEAR_RGB_InitSCCData(
/*
* This is a per-Visual intensity table
*/
- if (!(pScreenData = (LINEAR_RGB_SCCData *)
+ if (!(pScreenData = (LINEAR_RGB_SCCData *)
Xcalloc (1, sizeof(LINEAR_RGB_SCCData)))) {
return(XcmsFailure);
}
@@ -667,7 +667,7 @@ LINEAR_RGB_InitSCCData(
18 * sizeof(XcmsFloat));
/* Create, initialize, and add map */
- if (!(pNewMap = (XcmsIntensityMap *)
+ if (!(pNewMap = (XcmsIntensityMap *)
Xcalloc (1, sizeof(XcmsIntensityMap)))) {
Xfree((char *)pScreenData);
return(XcmsFailure);
@@ -721,7 +721,7 @@ LINEAR_RGB_InitSCCData(
&nitems) == XcmsFailure) {
goto FreeBlueTbl;
}
- }
+ }
} else if (cType == 1) {
/* Red Intensity Table */
if (!(pScreenData->pRedTbl = (IntensityTbl *)
@@ -851,7 +851,7 @@ LINEAR_RGB_FreeSCCData(
if (pScreenData && pScreenData != &Default_RGB_SCCData) {
if (pScreenData->pRedTbl) {
if (pScreenData->pGreenTbl) {
- if (pScreenData->pRedTbl->pBase !=
+ if (pScreenData->pRedTbl->pBase !=
pScreenData->pGreenTbl->pBase) {
if (pScreenData->pGreenTbl->pBase) {
Xfree ((char *)pScreenData->pGreenTbl->pBase);
@@ -862,7 +862,7 @@ LINEAR_RGB_FreeSCCData(
}
}
if (pScreenData->pBlueTbl) {
- if (pScreenData->pRedTbl->pBase !=
+ if (pScreenData->pRedTbl->pBase !=
pScreenData->pBlueTbl->pBase) {
if (pScreenData->pBlueTbl->pBase) {
Xfree ((char *)pScreenData->pBlueTbl->pBase);
@@ -921,7 +921,7 @@ _XcmsGetTableType0(
}
switch (format) {
- case 8:
+ case 8:
for (; nElements--; pIRec++) {
/* 0xFFFF/0xFF = 0x101 */
pIRec->value = _XcmsGetElement (format, pChar, pCount) * 0x101;
@@ -929,14 +929,14 @@ _XcmsGetTableType0(
_XcmsGetElement (format, pChar, pCount) / (XcmsFloat)255.0;
}
break;
- case 16:
+ case 16:
for (; nElements--; pIRec++) {
pIRec->value = _XcmsGetElement (format, pChar, pCount);
pIRec->intensity = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)65535.0;
}
break;
- case 32:
+ case 32:
for (; nElements--; pIRec++) {
pIRec->value = _XcmsGetElement (format, pChar, pCount);
pIRec->intensity = _XcmsGetElement (format, pChar, pCount)
@@ -983,21 +983,21 @@ _XcmsGetTableType1(
}
switch (format) {
- case 8:
+ case 8:
for (count = 0; count < max_index+1; count++, pIRec++) {
pIRec->value = (count * 65535) / max_index;
pIRec->intensity = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)255.0;
}
break;
- case 16:
+ case 16:
for (count = 0; count < max_index+1; count++, pIRec++) {
pIRec->value = (count * 65535) / max_index;
pIRec->intensity = _XcmsGetElement (format, pChar, pCount)
/ (XcmsFloat)65535.0;
}
break;
- case 32:
+ case 32:
for (count = 0; count < max_index+1; count++, pIRec++) {
pIRec->value = (count * 65535) / max_index;
pIRec->intensity = _XcmsGetElement (format, pChar, pCount)
@@ -1090,7 +1090,7 @@ _XcmsValueInterpolation(
{
XcmsFloat ratio;
- ratio = ((XcmsFloat)key->value - (XcmsFloat)lo->value) /
+ ratio = ((XcmsFloat)key->value - (XcmsFloat)lo->value) /
((XcmsFloat)hi->value - (XcmsFloat)lo->value);
answer->value = key->value;
answer->intensity = (hi->intensity - lo->intensity) * ratio;
@@ -1241,7 +1241,7 @@ static void _XcmsMatVec(
XcmsFloat *pMat, XcmsFloat *pIn, XcmsFloat *pOut)
/*
* DESCRIPTION
- * Multiply the passed vector by the passed matrix to return a
+ * Multiply the passed vector by the passed matrix to return a
* vector. Matrix is 3x3, vectors are of length 3.
*
* RETURNS
@@ -1468,7 +1468,7 @@ XcmsLRGB_RGBi_ParseString(
* SYNOPSIS
*/
/* ARGSUSED */
-Status
+Status
XcmsCIEXYZToRGBi(
XcmsCCC ccc,
XcmsColor *pXcmsColors_in_out,/* pointer to XcmsColors to convert */
@@ -1534,7 +1534,7 @@ XcmsCIEXYZToRGBi(
/*
* Aha!! Here's that little trick that will allow
* gamut compression routines to get the out of bound
- * RGBi.
+ * RGBi.
*/
memcpy((char *)&pColor->spec, (char *)tmp, sizeof(tmp));
pColor->format = XcmsRGBiFormat;
@@ -1590,7 +1590,7 @@ XcmsCIEXYZToRGBi(
* SYNOPSIS
*/
/* ARGSUSED */
-Status
+Status
XcmsRGBiToCIEXYZ(
XcmsCCC ccc,
XcmsColor *pXcmsColors_in_out,/* pointer to XcmsColors to convert */
@@ -1643,7 +1643,7 @@ XcmsRGBiToCIEXYZ(
* SYNOPSIS
*/
/* ARGSUSED */
-Status
+Status
XcmsRGBiToRGB(
XcmsCCC ccc,
XcmsColor *pXcmsColors_in_out,/* pointer to XcmsColors to convert */
@@ -1726,7 +1726,7 @@ XcmsRGBiToRGB(
* SYNOPSIS
*/
/* ARGSUSED */
-Status
+Status
XcmsRGBToRGBi(
XcmsCCC ccc,
XcmsColor *pXcmsColors_in_out,/* pointer to XcmsColors to convert */
diff --git a/src/xcms/Lab.c b/src/xcms/Lab.c
index ae83110e..df19964d 100644
--- a/src/xcms/Lab.c
+++ b/src/xcms/Lab.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/LabGcC.c b/src/xcms/LabGcC.c
index 366f2936..1f929eb8 100644
--- a/src/xcms/LabGcC.c
+++ b/src/xcms/LabGcC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -63,11 +63,11 @@ XcmsCIELabClipab (
/*
* DESCRIPTION
* Reduce the Chroma for a specific hue and chroma to
- * to bring the given color into the gamut of the
+ * to bring the given color into the gamut of the
* specified device. As required of gamut compression
* functions, this routine returns pColor_in_out
* in XcmsCIEXYZFormat on successful completion.
- *
+ *
* Since this routine works with the L* within
* pColor_in_out intermediate results may be returned
* even though it may be invalid.
@@ -113,7 +113,7 @@ XcmsCIELabClipab (
}
}
if (XcmsCIELabQueryMaxC(ccc,
- degrees(XCMS_CIELAB_PMETRIC_HUE(pColor->spec.CIELab.a_star,
+ degrees(XCMS_CIELAB_PMETRIC_HUE(pColor->spec.CIELab.a_star,
pColor->spec.CIELab.b_star)),
pColor->spec.CIELab.L_star,
pColor) == XcmsFailure) {
diff --git a/src/xcms/LabGcL.c b/src/xcms/LabGcL.c
index 9722c21a..fc82e5e8 100644
--- a/src/xcms/LabGcL.c
+++ b/src/xcms/LabGcL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -63,7 +63,7 @@ XcmsCIELabClipL (
/*
* DESCRIPTION
* Return the closest L* for a specific hue and chroma.
- * This routine takes any color as input and outputs
+ * This routine takes any color as input and outputs
* a CIE XYZ color.
*
* Since this routine works with the L* within
@@ -97,7 +97,7 @@ XcmsCIELabClipL (
*/
pColor = pColors_in_out + i;
-
+
if (ccc->visual->class < StaticColor) {
/*
* GRAY !
@@ -138,7 +138,7 @@ XcmsCIELabClipL (
memcpy((char *)pColor, (char *)&Lab_max, sizeof(XcmsColor));
return (XcmsFailure);
} else if (pColor->spec.CIELab.L_star < Lab_max.spec.CIELab.L_star) {
- /* Find the minimum lightness for the given chroma. */
+ /* Find the minimum lightness for the given chroma. */
if (pColor->format != XcmsCIELabFormat) {
if (_XcmsDIConvertColors(ccc, pColor,
ScreenWhitePointOfCCC(ccc), 1, XcmsCIELabFormat)
diff --git a/src/xcms/LabGcLC.c b/src/xcms/LabGcLC.c
index 47490cde..e9b5a50b 100644
--- a/src/xcms/LabGcLC.c
+++ b/src/xcms/LabGcLC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -70,7 +70,7 @@ XcmsCIELabClipLab (
Bool *pCompressed)
/*
* DESCRIPTION
- * This routine will find the closest L* and chroma
+ * This routine will find the closest L* and chroma
* for a specific hue. The color input is converted to
* CIE L*u*v* format and returned as CIE XYZ format.
*
@@ -140,12 +140,12 @@ XcmsCIELabClipLab (
chroma = XCMS_CIELAB_PMETRIC_CHROMA(pColor->spec.CIELab.a_star,
pColor->spec.CIELab.b_star);
memcpy((char *)&Lab_max, (char *)pColor, sizeof(XcmsColor));
- if (_XcmsCIELabQueryMaxLCRGB (&myCCC, hue, &Lab_max, &rgb_max)
+ if (_XcmsCIELabQueryMaxLCRGB (&myCCC, hue, &Lab_max, &rgb_max)
== XcmsFailure) {
return (XcmsFailure);
}
maxLstar = Lab_max.spec.CIELab.L_star;
-
+
/* Now check and return the appropriate L* */
if (saveLstar == maxLstar) {
/* When the L* input is equal to the maximum L* */
@@ -199,7 +199,7 @@ XcmsCIELabClipLab (
bestLstar = pColor->spec.CIELab.L_star;
bestastar = pColor->spec.CIELab.a_star;
bestbstar = pColor->spec.CIELab.b_star;
- bestChroma = chroma;
+ bestChroma = chroma;
}
if (nI == nILast || nI == 0) {
break;
diff --git a/src/xcms/LabMnL.c b/src/xcms/LabMnL.c
index 9b4cd3d3..2c2b2be5 100644
--- a/src/xcms/LabMnL.c
+++ b/src/xcms/LabMnL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -108,7 +108,7 @@ XcmsCIELabQueryMinL(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELab.L_star = START_L_STAR;
@@ -116,7 +116,7 @@ XcmsCIELabQueryMinL(
tmp.spec.CIELab.b_star = XCMS_CIEBSTAROFHUE(hue, chroma);
tmp.pixel = pColor_return->pixel;
tmp.format = XcmsCIELabFormat;
-
+
/* Step 1: Obtain the maximum L_star and chroma for this hue. */
if (_XcmsCIELabQueryMaxLCRGB(&myCCC, hue, &max_lc, &rgb_saved)
== XcmsFailure) {
@@ -128,7 +128,7 @@ XcmsCIELabQueryMinL(
if (max_chroma <= chroma) {
/*
- * If the chroma is greater than the chroma for the
+ * If the chroma is greater than the chroma for the
* maximum L/chroma point then the L_star is the
* the L_star for the maximum L_star/chroma point.
* This is an error but I return the best approximation I can.
@@ -139,7 +139,7 @@ XcmsCIELabQueryMinL(
}
/*
- * If the chroma is equal to the chroma for the
+ * If the chroma is equal to the chroma for the
* maximum L_star/chroma point then the L_star is the
* the L_star for the maximum L* and chroma point.
*/
@@ -182,15 +182,15 @@ XcmsCIELabQueryMinL(
/* Found It! */
memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor));
return(XcmsSuccess);
- }
+ }
nChroma += chroma - tmp_chroma;
if (nChroma > max_chroma) {
nChroma = max_chroma;
rFactor *= 0.5; /* selective relaxation employed */
} else if (nChroma < 0.0) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
- memcpy ((char *)pColor_return, (char *)&prev,
+ memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
} else {
memcpy ((char *)pColor_return, (char *)&tmp,
@@ -204,7 +204,7 @@ XcmsCIELabQueryMinL(
}
if (nCount >= nMaxCount) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
diff --git a/src/xcms/LabMxC.c b/src/xcms/LabMxC.c
index acd83f2d..be763d3e 100644
--- a/src/xcms/LabMxC.c
+++ b/src/xcms/LabMxC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -105,7 +105,7 @@ XcmsCIELabQueryMaxC(
/* Use my own CCC and inherit screen white Pt */
memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
- myCCC.clientWhitePt.format = XcmsUndefinedFormat;
+ myCCC.clientWhitePt.format = XcmsUndefinedFormat;
myCCC.gamutCompProc = (XcmsCompressionProc)NULL;/* no gamut comp func */
while (hue_angle < 0.0) {
@@ -113,7 +113,7 @@ XcmsCIELabQueryMaxC(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELab.L_star = L_star;
@@ -192,7 +192,7 @@ XcmsCIELabQueryMaxC(
/* printf("rFactor = %lf\n", rFactor); */
}
}
- if (XCMS_FABS(last_L_star - L_star) <
+ if (XCMS_FABS(last_L_star - L_star) <
XCMS_FABS(tmp.spec.CIELab.L_star - L_star)) {
tmp.spec.CIELab.a_star = lastaStar;
tmp.spec.CIELab.b_star = lastbStar;
diff --git a/src/xcms/LabMxL.c b/src/xcms/LabMxL.c
index fbc39eef..6db12222 100644
--- a/src/xcms/LabMxL.c
+++ b/src/xcms/LabMxL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -108,7 +108,7 @@ XcmsCIELabQueryMaxL(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELab.L_star = START_L_STAR;
@@ -116,7 +116,7 @@ XcmsCIELabQueryMaxL(
tmp.spec.CIELab.b_star = XCMS_CIEBSTAROFHUE(hue, chroma);
tmp.pixel = pColor_return->pixel;
tmp.format = XcmsCIELabFormat;
-
+
/* Step 1: Obtain the maximum L_star and chroma for this hue. */
if (_XcmsCIELabQueryMaxLCRGB(&myCCC, hue, &max_lc, &rgb_saved)
== XcmsFailure) {
@@ -128,7 +128,7 @@ XcmsCIELabQueryMaxL(
if (max_chroma <= chroma) {
/*
- * If the chroma is greater than the chroma for the
+ * If the chroma is greater than the chroma for the
* maximum L/chroma point then the L_star is the
* the L_star for the maximum L_star/chroma point.
* This is an error but I return the best approximation I can.
@@ -139,7 +139,7 @@ XcmsCIELabQueryMaxL(
}
/*
- * If the chroma is equal to the chroma for the
+ * If the chroma is equal to the chroma for the
* maximum L_star/chroma point then the L_star is the
* the L_star for the maximum L* and chroma point.
*/
@@ -182,13 +182,13 @@ XcmsCIELabQueryMaxL(
/* Found It! */
memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor));
return(XcmsSuccess);
- }
+ }
nChroma += chroma - tmp_chroma;
if (nChroma > max_chroma) {
nChroma = max_chroma;
rFactor *= 0.5; /* selective relaxation employed */
} else if (nChroma < 0.0) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
@@ -204,7 +204,7 @@ XcmsCIELabQueryMaxL(
}
if (nCount >= nMaxCount) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
diff --git a/src/xcms/LabMxLC.c b/src/xcms/LabMxLC.c
index c24dd4b9..9efc8697 100644
--- a/src/xcms/LabMxLC.c
+++ b/src/xcms/LabMxLC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -83,7 +83,7 @@ _XcmsCIELabQueryMaxLCRGB(
* by a binary search of all possible chromas. An assumption
* is made that there are no local maxima. Use the unrounded
* Max psychometric chroma because the difference check can be
- * small.
+ * small.
*
* NOTE: No local CCC is used because this is a private
* routine and all routines that call it are expected
@@ -98,7 +98,7 @@ _XcmsCIELabQueryMaxLCRGB(
* XcmsFailure - Failure
* XcmsSuccess - Succeeded
*
- */
+ */
{
XcmsFloat nSmall, nLarge;
XcmsColor tmp;
@@ -115,15 +115,15 @@ _XcmsCIELabQueryMaxLCRGB(
* out of bounds RGBi values in tmp when the ccc->gamutCompProc
* is NULL.
*/
- if ((_XcmsConvertColorsWithWhitePt(ccc, &tmp, ScreenWhitePointOfCCC(ccc),
- (unsigned int)1, XcmsRGBiFormat, (Bool *) NULL)
+ if ((_XcmsConvertColorsWithWhitePt(ccc, &tmp, ScreenWhitePointOfCCC(ccc),
+ (unsigned int)1, XcmsRGBiFormat, (Bool *) NULL)
== XcmsFailure) && tmp.format != XcmsRGBiFormat) {
return (XcmsFailure);
}
/* Now pick the smallest RGB */
- nSmall = MIN3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nSmall = MIN3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Make the smallest RGB equal to zero */
tmp.spec.RGBi.red -= nSmall;
@@ -131,8 +131,8 @@ _XcmsCIELabQueryMaxLCRGB(
tmp.spec.RGBi.blue -= nSmall;
/* Now pick the largest RGB */
- nLarge = MAX3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nLarge = MAX3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Scale the RGB values based on the largest one */
tmp.spec.RGBi.red /= nLarge;
@@ -149,13 +149,13 @@ _XcmsCIELabQueryMaxLCRGB(
/* Convert from RGBi to Lab */
if (_XcmsConvertColorsWithWhitePt(ccc, &tmp,
- ScreenWhitePointOfCCC(ccc), 1, XcmsCIELabFormat, (Bool *) NULL)
+ ScreenWhitePointOfCCC(ccc), 1, XcmsCIELabFormat, (Bool *) NULL)
== XcmsFailure) {
return (XcmsFailure);
}
memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor));
- return (XcmsSuccess);
+ return (XcmsSuccess);
}
@@ -192,7 +192,7 @@ XcmsCIELabQueryMaxLC (
* XcmsFailure - Failure
* XcmsSuccess - Succeeded
*
- */
+ */
{
XcmsCCCRec myCCC;
@@ -202,7 +202,7 @@ XcmsCIELabQueryMaxLC (
if (ccc == NULL || pColor_return == NULL) {
return(XcmsFailure);
}
-
+
/* Use my own CCC */
memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
myCCC.clientWhitePt.format = XcmsUndefinedFormat;
@@ -213,8 +213,8 @@ XcmsCIELabQueryMaxLC (
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
-
+ }
+
return(_XcmsCIELabQueryMaxLCRGB (&myCCC, radians(hue_angle), pColor_return,
(XcmsRGBi *)NULL));
}
diff --git a/src/xcms/LabWpAj.c b/src/xcms/LabWpAj.c
index 3098a60c..5959779e 100644
--- a/src/xcms/LabWpAj.c
+++ b/src/xcms/LabWpAj.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/Luv.c b/src/xcms/Luv.c
index 9fe80a0f..8dae87f4 100644
--- a/src/xcms/Luv.c
+++ b/src/xcms/Luv.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -303,7 +303,7 @@ XcmsCIELuvToCIEuvY(
uvY_return.v_prime = pLuv_WhitePt->spec.CIEuvY.v_prime;
} else {
tmpVal = 13.0 * (pColor->spec.CIELuv.L_star / 100.0);
- uvY_return.u_prime = pColor->spec.CIELuv.u_star/tmpVal +
+ uvY_return.u_prime = pColor->spec.CIELuv.u_star/tmpVal +
pLuv_WhitePt->spec.CIEuvY.u_prime;
uvY_return.v_prime = pColor->spec.CIELuv.v_star/tmpVal +
pLuv_WhitePt->spec.CIEuvY.v_prime;
@@ -381,7 +381,7 @@ XcmsCIEuvYToCIELuv(
}
/* Now convert the uvY to Luv */
- Luv_return.L_star =
+ Luv_return.L_star =
(pColor->spec.CIEuvY.Y < 0.008856)
?
(pColor->spec.CIEuvY.Y * 903.29)
diff --git a/src/xcms/LuvGcC.c b/src/xcms/LuvGcC.c
index c4fde28d..868748bb 100644
--- a/src/xcms/LuvGcC.c
+++ b/src/xcms/LuvGcC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -63,11 +63,11 @@ XcmsCIELuvClipuv (
/*
* DESCRIPTION
* Reduce the Chroma for a specific hue and chroma to
- * to bring the given color into the gamut of the
+ * to bring the given color into the gamut of the
* specified device. As required of gamut compression
* functions, this routine returns pColor_in_out
* in XcmsCIEXYZFormat on successful completion.
- *
+ *
* Since this routine works with the L* within
* pColor_in_out intermediate results may be returned
* even though it may be invalid.
@@ -113,7 +113,7 @@ XcmsCIELuvClipuv (
}
}
if (XcmsCIELuvQueryMaxC(ccc,
- degrees(XCMS_CIELUV_PMETRIC_HUE(pColor->spec.CIELuv.u_star,
+ degrees(XCMS_CIELUV_PMETRIC_HUE(pColor->spec.CIELuv.u_star,
pColor->spec.CIELuv.v_star)),
pColor->spec.CIELuv.L_star,
pColor) == XcmsFailure) {
diff --git a/src/xcms/LuvGcL.c b/src/xcms/LuvGcL.c
index c7ccc750..e6dd5846 100644
--- a/src/xcms/LuvGcL.c
+++ b/src/xcms/LuvGcL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -63,7 +63,7 @@ XcmsCIELuvClipL (
/*
* DESCRIPTION
* Return the closest L* for a specific hue and chroma.
- * This routine takes any color as input and outputs
+ * This routine takes any color as input and outputs
* a CIE XYZ color.
*
* Since this routine works with the L* within
@@ -97,7 +97,7 @@ XcmsCIELuvClipL (
*/
pColor = pColors_in_out + i;
-
+
if (ccc->visual->class < StaticColor) {
/*
* GRAY !
@@ -138,7 +138,7 @@ XcmsCIELuvClipL (
memcpy((char *)pColor, (char *)&Luv_max, sizeof(XcmsColor));
return (XcmsFailure);
} else if (pColor->spec.CIELuv.L_star < Luv_max.spec.CIELuv.L_star) {
- /* Find the minimum lightness for the given chroma. */
+ /* Find the minimum lightness for the given chroma. */
if (pColor->format != XcmsCIELuvFormat) {
if (_XcmsDIConvertColors(ccc, pColor,
ScreenWhitePointOfCCC(ccc), 1, XcmsCIELuvFormat)
diff --git a/src/xcms/LuvGcLC.c b/src/xcms/LuvGcLC.c
index f2eab371..a52d9fa1 100644
--- a/src/xcms/LuvGcLC.c
+++ b/src/xcms/LuvGcLC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -70,7 +70,7 @@ XcmsCIELuvClipLuv (
Bool *pCompressed)
/*
* DESCRIPTION
- * This routine will find the closest L* and chroma
+ * This routine will find the closest L* and chroma
* for a specific hue. The color input is converted to
* CIE L*u*v* format and returned as CIE XYZ format.
*
@@ -140,12 +140,12 @@ XcmsCIELuvClipLuv (
chroma = XCMS_CIELUV_PMETRIC_CHROMA(pColor->spec.CIELuv.u_star,
pColor->spec.CIELuv.v_star);
memcpy((char *)&Luv_max, (char *)pColor, sizeof(XcmsColor));
- if (_XcmsCIELuvQueryMaxLCRGB (&myCCC, hue, &Luv_max, &rgb_max)
+ if (_XcmsCIELuvQueryMaxLCRGB (&myCCC, hue, &Luv_max, &rgb_max)
== XcmsFailure) {
return (XcmsFailure);
}
maxLstar = Luv_max.spec.CIELuv.L_star;
-
+
/* Now check and return the appropriate L* */
if (saveLstar == maxLstar) {
/* When the L* input is equal to the maximum L* */
@@ -199,7 +199,7 @@ XcmsCIELuvClipLuv (
bestLstar = pColor->spec.CIELuv.L_star;
bestustar = pColor->spec.CIELuv.u_star;
bestvstar = pColor->spec.CIELuv.v_star;
- bestChroma = chroma;
+ bestChroma = chroma;
}
if (nI == nILast || nI == 0) {
break;
diff --git a/src/xcms/LuvMnL.c b/src/xcms/LuvMnL.c
index 2286d7ee..fa83e1fd 100644
--- a/src/xcms/LuvMnL.c
+++ b/src/xcms/LuvMnL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -108,7 +108,7 @@ XcmsCIELuvQueryMinL(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELuv.L_star = START_L_STAR;
@@ -116,7 +116,7 @@ XcmsCIELuvQueryMinL(
tmp.spec.CIELuv.v_star = XCMS_CIEVSTAROFHUE(hue, chroma);
tmp.pixel = pColor_return->pixel;
tmp.format = XcmsCIELuvFormat;
-
+
/* Step 1: Obtain the maximum L_star and chroma for this hue. */
if (_XcmsCIELuvQueryMaxLCRGB(&myCCC, hue, &max_lc, &rgb_saved)
== XcmsFailure) {
@@ -128,7 +128,7 @@ XcmsCIELuvQueryMinL(
if (max_chroma <= chroma) {
/*
- * If the chroma is greater than the chroma for the
+ * If the chroma is greater than the chroma for the
* maximum L/chroma point then the L_star is the
* the L_star for the maximum L_star/chroma point.
* This is an error but I return the best approximation I can.
@@ -139,7 +139,7 @@ XcmsCIELuvQueryMinL(
}
/*
- * If the chroma is equal to the chroma for the
+ * If the chroma is equal to the chroma for the
* maximum L_star/chroma point then the L_star is the
* the L_star for the maximum L* and chroma point.
*/
@@ -182,15 +182,15 @@ XcmsCIELuvQueryMinL(
/* Found It! */
memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor));
return(XcmsSuccess);
- }
+ }
nChroma += chroma - tmp_chroma;
if (nChroma > max_chroma) {
nChroma = max_chroma;
rFactor *= 0.5; /* selective relaxation employed */
} else if (nChroma < 0.0) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
- memcpy ((char *)pColor_return, (char *)&prev,
+ memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
} else {
memcpy ((char *)pColor_return, (char *)&tmp,
@@ -204,7 +204,7 @@ XcmsCIELuvQueryMinL(
}
if (nCount >= nMaxCount) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
diff --git a/src/xcms/LuvMxC.c b/src/xcms/LuvMxC.c
index d228c39d..34abf6d4 100644
--- a/src/xcms/LuvMxC.c
+++ b/src/xcms/LuvMxC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -105,7 +105,7 @@ XcmsCIELuvQueryMaxC(
/* Use my own CCC and inherit screen white Pt */
memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
- myCCC.clientWhitePt.format = XcmsUndefinedFormat;
+ myCCC.clientWhitePt.format = XcmsUndefinedFormat;
myCCC.gamutCompProc = (XcmsCompressionProc)NULL;/* no gamut comp func */
while (hue_angle < 0.0) {
@@ -113,7 +113,7 @@ XcmsCIELuvQueryMaxC(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELuv.L_star = L_star;
@@ -182,7 +182,7 @@ XcmsCIELuvQueryMaxC(
return(XcmsSuccess);
}
if (nT > 0) {
- n_L_star += ((TOPL - n_L_star) *
+ n_L_star += ((TOPL - n_L_star) *
(L_star - tmp.spec.CIELuv.L_star)) / (TOPL - L_star);
} else {
n_L_star *= L_star / tmp.spec.CIELuv.L_star;
@@ -193,7 +193,7 @@ XcmsCIELuvQueryMaxC(
/* printf("rFactor = %lf\n", rFactor); */
}
}
- if (XCMS_FABS(last_L_star - L_star) <
+ if (XCMS_FABS(last_L_star - L_star) <
XCMS_FABS(tmp.spec.CIELuv.L_star - L_star)) {
tmp.spec.CIELuv.u_star = lastuStar;
tmp.spec.CIELuv.v_star = lastvStar;
diff --git a/src/xcms/LuvMxL.c b/src/xcms/LuvMxL.c
index f24c4141..da06684a 100644
--- a/src/xcms/LuvMxL.c
+++ b/src/xcms/LuvMxL.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -108,7 +108,7 @@ XcmsCIELuvQueryMaxL(
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
+ }
hue = radians(hue_angle);
tmp.spec.CIELuv.L_star = START_L_STAR;
@@ -116,7 +116,7 @@ XcmsCIELuvQueryMaxL(
tmp.spec.CIELuv.v_star = XCMS_CIEVSTAROFHUE(hue, chroma);
tmp.pixel = pColor_return->pixel;
tmp.format = XcmsCIELuvFormat;
-
+
/* Step 1: Obtain the maximum L_star and chroma for this hue. */
if (_XcmsCIELuvQueryMaxLCRGB(&myCCC, hue, &max_lc, &rgb_saved)
== XcmsFailure) {
@@ -128,7 +128,7 @@ XcmsCIELuvQueryMaxL(
if (max_chroma <= chroma) {
/*
- * If the chroma is greater than the chroma for the
+ * If the chroma is greater than the chroma for the
* maximum L/chroma point then the L_star is the
* the L_star for the maximum L_star/chroma point.
* This is an error but I return the best approximation I can.
@@ -139,7 +139,7 @@ XcmsCIELuvQueryMaxL(
}
/*
- * If the chroma is equal to the chroma for the
+ * If the chroma is equal to the chroma for the
* maximum L_star/chroma point then the L_star is the
* the L_star for the maximum L* and chroma point.
*/
@@ -182,13 +182,13 @@ XcmsCIELuvQueryMaxL(
/* Found It! */
memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor));
return(XcmsSuccess);
- }
+ }
nChroma += chroma - tmp_chroma;
if (nChroma > max_chroma) {
nChroma = max_chroma;
rFactor *= 0.5; /* selective relaxation employed */
} else if (nChroma < 0.0) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
@@ -204,7 +204,7 @@ XcmsCIELuvQueryMaxL(
}
if (nCount >= nMaxCount) {
- if (XCMS_FABS(lastChroma - chroma) <
+ if (XCMS_FABS(lastChroma - chroma) <
XCMS_FABS(tmp_chroma - chroma)) {
memcpy ((char *)pColor_return, (char *)&prev,
sizeof(XcmsColor));
diff --git a/src/xcms/LuvMxLC.c b/src/xcms/LuvMxLC.c
index 941e4592..d8634038 100644
--- a/src/xcms/LuvMxLC.c
+++ b/src/xcms/LuvMxLC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -98,7 +98,7 @@ _XcmsCIELuvQueryMaxLCRGB(
* XcmsFailure - Failure
* XcmsSuccess - Succeeded
*
- */
+ */
{
XcmsFloat nSmall, nLarge;
XcmsColor tmp;
@@ -115,15 +115,15 @@ _XcmsCIELuvQueryMaxLCRGB(
* out of bounds RGBi values in tmp when the ccc->gamutCompProc
* is NULL.
*/
- if ((_XcmsConvertColorsWithWhitePt(ccc, &tmp, ScreenWhitePointOfCCC(ccc),
- (unsigned int)1, XcmsRGBiFormat, (Bool *) NULL)
+ if ((_XcmsConvertColorsWithWhitePt(ccc, &tmp, ScreenWhitePointOfCCC(ccc),
+ (unsigned int)1, XcmsRGBiFormat, (Bool *) NULL)
== XcmsFailure) && tmp.format != XcmsRGBiFormat) {
return (XcmsFailure);
}
/* Now pick the smallest RGB */
- nSmall = MIN3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nSmall = MIN3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Make the smallest RGB equal to zero */
tmp.spec.RGBi.red -= nSmall;
@@ -131,8 +131,8 @@ _XcmsCIELuvQueryMaxLCRGB(
tmp.spec.RGBi.blue -= nSmall;
/* Now pick the largest RGB */
- nLarge = MAX3(tmp.spec.RGBi.red,
- tmp.spec.RGBi.green,
+ nLarge = MAX3(tmp.spec.RGBi.red,
+ tmp.spec.RGBi.green,
tmp.spec.RGBi.blue);
/* Scale the RGB values based on the largest one */
tmp.spec.RGBi.red /= nLarge;
@@ -149,13 +149,13 @@ _XcmsCIELuvQueryMaxLCRGB(
/* Convert from RGBi to Luv */
if (_XcmsConvertColorsWithWhitePt(ccc, &tmp,
- ScreenWhitePointOfCCC(ccc), 1, XcmsCIELuvFormat, (Bool *) NULL)
+ ScreenWhitePointOfCCC(ccc), 1, XcmsCIELuvFormat, (Bool *) NULL)
== XcmsFailure) {
return (XcmsFailure);
}
memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor));
- return (XcmsSuccess);
+ return (XcmsSuccess);
}
@@ -192,7 +192,7 @@ XcmsCIELuvQueryMaxLC (
* XcmsFailure - Failure
* XcmsSuccess - Succeeded
*
- */
+ */
{
XcmsCCCRec myCCC;
@@ -202,7 +202,7 @@ XcmsCIELuvQueryMaxLC (
if (ccc == NULL || pColor_return == NULL) {
return(XcmsFailure);
}
-
+
/* Use my own CCC */
memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
myCCC.clientWhitePt.format = XcmsUndefinedFormat;
@@ -213,8 +213,8 @@ XcmsCIELuvQueryMaxLC (
}
while (hue_angle >= 360.0) {
hue_angle -= 360.0;
- }
-
+ }
+
return(_XcmsCIELuvQueryMaxLCRGB (&myCCC, radians(hue_angle), pColor_return,
(XcmsRGBi *)NULL));
}
diff --git a/src/xcms/LuvWpAj.c b/src/xcms/LuvWpAj.c
index 86a60b42..7ce643e8 100644
--- a/src/xcms/LuvWpAj.c
+++ b/src/xcms/LuvWpAj.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/OfCCC.c b/src/xcms/OfCCC.c
index 1c9e16b4..29d37e6e 100644
--- a/src/xcms/OfCCC.c
+++ b/src/xcms/OfCCC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/PrOfId.c b/src/xcms/PrOfId.c
index 01d2c264..72f75b3f 100644
--- a/src/xcms/PrOfId.c
+++ b/src/xcms/PrOfId.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QBlack.c b/src/xcms/QBlack.c
index cdeae033..c3d1f949 100644
--- a/src/xcms/QBlack.c
+++ b/src/xcms/QBlack.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QBlue.c b/src/xcms/QBlue.c
index eae77dde..6aac3304 100644
--- a/src/xcms/QBlue.c
+++ b/src/xcms/QBlue.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QGreen.c b/src/xcms/QGreen.c
index deb24ccc..449704d5 100644
--- a/src/xcms/QGreen.c
+++ b/src/xcms/QGreen.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QRed.c b/src/xcms/QRed.c
index 51b6be40..5d119dba 100644
--- a/src/xcms/QRed.c
+++ b/src/xcms/QRed.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QWhite.c b/src/xcms/QWhite.c
index d23443db..956bc8a8 100644
--- a/src/xcms/QWhite.c
+++ b/src/xcms/QWhite.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QuCol.c b/src/xcms/QuCol.c
index 7944faaa..67305871 100644
--- a/src/xcms/QuCol.c
+++ b/src/xcms/QuCol.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/QuCols.c b/src/xcms/QuCols.c
index 7a0816df..b6f62052 100644
--- a/src/xcms/QuCols.c
+++ b/src/xcms/QuCols.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/SetCCC.c b/src/xcms/SetCCC.c
index a7094b17..17d3de0b 100644
--- a/src/xcms/SetCCC.c
+++ b/src/xcms/SetCCC.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/SetGetCols.c b/src/xcms/SetGetCols.c
index 03f7a2f7..ce482553 100644
--- a/src/xcms/SetGetCols.c
+++ b/src/xcms/SetGetCols.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -55,7 +55,7 @@
/*
* NAME
- * XcmsSetColor -
+ * XcmsSetColor -
*
* SYNOPSIS
*/
@@ -172,7 +172,7 @@ Query:
/*
* NAME
- * XcmsSetColors -
+ * XcmsSetColors -
*
* SYNOPSIS
*/
diff --git a/src/xcms/StCol.c b/src/xcms/StCol.c
index fef449e7..e93b0dd3 100644
--- a/src/xcms/StCol.c
+++ b/src/xcms/StCol.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/StCols.c b/src/xcms/StCols.c
index 163d6217..65355f6d 100644
--- a/src/xcms/StCols.c
+++ b/src/xcms/StCols.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/UNDEFINED.c b/src/xcms/UNDEFINED.c
index 2c056307..9c9094ed 100644
--- a/src/xcms/UNDEFINED.c
+++ b/src/xcms/UNDEFINED.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/XRGB.c b/src/xcms/XRGB.c
index 0d7e24c7..e2697d2a 100644
--- a/src/xcms/XRGB.c
+++ b/src/xcms/XRGB.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -76,7 +76,7 @@ static unsigned short const MASK[17] = {
/*
* NAME
- * _XcmsRGB_to_XColor -
+ * _XcmsRGB_to_XColor -
*
* SYNOPSIS
*/
@@ -163,7 +163,7 @@ _XcmsResolveColor(
* On a display with N-bit DACs, the "hardware" color is computed as:
*
* ((unsignedlong)(ClientValue >> (16-N)) * 0xFFFF) / ((1 << N) - 1)
- *
+ *
*
* RETURNS
* void.
diff --git a/src/xcms/XYZ.c b/src/xcms/XYZ.c
index 5c93dad3..2868c925 100644
--- a/src/xcms/XYZ.c
+++ b/src/xcms/XYZ.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/Xcmsint.h b/src/xcms/Xcmsint.h
index 1bf02ba2..7ec0d1b0 100644
--- a/src/xcms/Xcmsint.h
+++ b/src/xcms/Xcmsint.h
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/cmsAllCol.c b/src/xcms/cmsAllCol.c
index 145d1177..1b2bc76f 100644
--- a/src/xcms/cmsAllCol.c
+++ b/src/xcms/cmsAllCol.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/cmsAllNCol.c b/src/xcms/cmsAllNCol.c
index efee0f6b..b17f7e4c 100644
--- a/src/xcms/cmsAllNCol.c
+++ b/src/xcms/cmsAllNCol.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -46,7 +46,7 @@
/*
* NAME
- * XcmsAllocNamedColor -
+ * XcmsAllocNamedColor -
*
* SYNOPSIS
*/
diff --git a/src/xcms/cmsCmap.c b/src/xcms/cmsCmap.c
index e2136828..932743b2 100644
--- a/src/xcms/cmsCmap.c
+++ b/src/xcms/cmsCmap.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -411,7 +411,7 @@ _XcmsFreeClientCmaps(
*
* SYNOPSIS
*/
-XcmsCCC
+XcmsCCC
XcmsCCCOfColormap(
Display *dpy,
Colormap cmap)
diff --git a/src/xcms/cmsColNm.c b/src/xcms/cmsColNm.c
index e3ca5183..8aa49585 100644
--- a/src/xcms/cmsColNm.c
+++ b/src/xcms/cmsColNm.c
@@ -4,7 +4,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -12,10 +12,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -187,7 +187,7 @@ _XcmsParseColorString(
* DESCRIPTION
* Assuming color_string contains a numerical string color
* specification, attempts to parse a string into an
- * XcmsColor structure.
+ * XcmsColor structure.
*
* RETURNS
* 0 if failed; otherwise non-zero.
@@ -470,7 +470,7 @@ Retry:
pair->flag = CYCLE;
return(XcmsFailure);
}
-
+
if (_XcmsParseColorString(ccc, pair->second, pColor) == XcmsSuccess) {
/* f2 contains a numerical string specification */
return(XcmsSuccess);
@@ -816,7 +816,7 @@ _XcmsCopyISOLatin1Lowered(
/*
* NAME
- * _XcmsResolveColorString -
+ * _XcmsResolveColorString -
*
* SYNOPSIS
*/
@@ -872,7 +872,7 @@ _XcmsResolveColorString (
if (result_format != XcmsUndefinedFormat
&& pColor_exact_return->format != result_format) {
/* need to be converted to the target format */
- return(XcmsConvertColors(ccc, pColor_exact_return, 1,
+ return(XcmsConvertColors(ccc, pColor_exact_return, 1,
result_format, (Bool *)NULL));
} else {
return(XcmsSuccess);
diff --git a/src/xcms/cmsGlobls.c b/src/xcms/cmsGlobls.c
index abe711c6..3453bef1 100644
--- a/src/xcms/cmsGlobls.c
+++ b/src/xcms/cmsGlobls.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/cmsInt.c b/src/xcms/cmsInt.c
index 68cfebd7..cab12353 100644
--- a/src/xcms/cmsInt.c
+++ b/src/xcms/cmsInt.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -189,7 +189,7 @@ _XcmsInitDefaultCCCs(
if (!(ccc = (XcmsCCC)
Xcalloc((unsigned)nScrn, (unsigned) sizeof(XcmsCCCRec)))) {
return(0);
- }
+ }
dpy->cms.defaultCCCs = (XPointer)ccc;
dpy->free_funcs->defaultCCCs = _XcmsFreeDefaultCCCs;
@@ -328,7 +328,7 @@ _XcmsInitScrnInfo(
if (!(defaultccc->pPerScrnInfo = (XcmsPerScrnInfo *)
Xcalloc(1, (unsigned) sizeof(XcmsPerScrnInfo)))) {
return(0);
- }
+ }
defaultccc->pPerScrnInfo->state = XcmsInitNone;
}
diff --git a/src/xcms/cmsLkCol.c b/src/xcms/cmsLkCol.c
index f19f21d0..5c15bce7 100644
--- a/src/xcms/cmsLkCol.c
+++ b/src/xcms/cmsLkCol.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -46,7 +46,7 @@
/*
* NAME
- * XcmsLookupColor -
+ * XcmsLookupColor -
*
* SYNOPSIS
*/
diff --git a/src/xcms/cmsMath.c b/src/xcms/cmsMath.c
index 5e8cae72..fd48b9ff 100644
--- a/src/xcms/cmsMath.c
+++ b/src/xcms/cmsMath.c
@@ -91,7 +91,7 @@ _XcmsCubeRoot(double a)
#endif
return cur_guess;
}
-
+
/* for square roots, x^2 - a = 0, x_new = x - 1/2 (x - a/x) */
@@ -135,4 +135,4 @@ _XcmsSquareRoot(double a)
#endif
return cur_guess;
}
-
+
diff --git a/src/xcms/cmsProp.c b/src/xcms/cmsProp.c
index 4040a05c..191d6636 100644
--- a/src/xcms/cmsProp.c
+++ b/src/xcms/cmsProp.c
@@ -4,7 +4,7 @@
*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -12,10 +12,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -123,10 +123,10 @@ _XcmsGetProperty(
long len = 6516;
unsigned long nitems_ret, after_ret;
Atom atom_ret;
-
- while (XGetWindowProperty (pDpy, w, property, 0, len, False,
- XA_INTEGER, &atom_ret, &format_ret,
- &nitems_ret, &after_ret,
+
+ while (XGetWindowProperty (pDpy, w, property, 0, len, False,
+ XA_INTEGER, &atom_ret, &format_ret,
+ &nitems_ret, &after_ret,
(unsigned char **)&prop_ret)) {
if (after_ret > 0) {
len += nitems_ret * (format_ret >> 3);
@@ -135,7 +135,7 @@ _XcmsGetProperty(
break;
}
}
- if (format_ret == 0 || nitems_ret == 0) {
+ if (format_ret == 0 || nitems_ret == 0) {
/* the property does not exist or is of an unexpected type */
return(XcmsFailure);
}
diff --git a/src/xcms/cmsTrig.c b/src/xcms/cmsTrig.c
index 4e17e7da..0ab4426f 100644
--- a/src/xcms/cmsTrig.c
+++ b/src/xcms/cmsTrig.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -165,7 +165,7 @@ static double const sin_qcoeffs[] = {
* to the range over which the polynomial approximation
* is valid, and as the polynomial is evaluated using
* finite-precision arithmetic.
- *
+ *
* PROGRAMMER
*
* Fred Fish
@@ -225,7 +225,7 @@ static double const sin_qcoeffs[] = {
* HART satisfies this requirement, although not explicitly
* stated in the text. This may not be true of other
* approximations given in the reference.
- *
+ *
*/
double _XcmsCosine(double x)
@@ -444,7 +444,7 @@ static double _XcmsPolynomial(
* to the range over which the polynomial approximation
* is valid, and as the polynomial is evaluated using
* finite-precision arithmetic.
- *
+ *
* PROGRAMMER
*
* Fred Fish
@@ -505,7 +505,7 @@ static double _XcmsPolynomial(
* HART satisfies this requirement, although not explicitly
* stated in the text. This may not be true of other
* approximations given in the reference.
- *
+ *
*/
double
@@ -559,7 +559,7 @@ _XcmsArcTangent(double x)
* New York, NY, Harper & Row, 1970.
*
* RETURNS
- * Returns the arctangent
+ * Returns the arctangent
*/
{
double ai, a1 = 0.0, bi, b1 = 0.0, l, d;
diff --git a/src/xcms/uvY.c b/src/xcms/uvY.c
index da9fd0f7..0567b206 100644
--- a/src/xcms/uvY.c
+++ b/src/xcms/uvY.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of XCMS based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
diff --git a/src/xcms/xyY.c b/src/xcms/xyY.c
index 2e56a086..555afe4f 100644
--- a/src/xcms/xyY.c
+++ b/src/xcms/xyY.c
@@ -3,7 +3,7 @@
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
- *
+ *
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distribute this
@@ -11,10 +11,10 @@
* that this copyright, permission, and disclaimer notice is reproduced in
* all copies of this software and in supporting documentation. TekColor
* is a trademark of Tektronix, Inc.
- *
+ *
* Tektronix makes no representation about the suitability of this software
* for any purpose. It is provided "as is" and with all faults.
- *
+ *
* TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
@@ -382,7 +382,7 @@ XcmsCIEXYZToCIExyY(
/* Now convert for XYZ to xyY */
if ((div = pColor->spec.CIEXYZ.X + pColor->spec.CIEXYZ.Y + pColor->spec.CIEXYZ.Z) == 0.0) {
div = EPS;
- }
+ }
xyY_return.x = pColor->spec.CIEXYZ.X / div;
xyY_return.y = pColor->spec.CIEXYZ.Y / div;
xyY_return.Y = pColor->spec.CIEXYZ.Y;
diff --git a/src/xkb/XKB.c b/src/xkb/XKB.c
index ecc5ddf0..202a9bd0 100644
--- a/src/xkb/XKB.c
+++ b/src/xkb/XKB.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -39,7 +39,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
XkbInternAtomFunc _XkbInternAtomFunc= XInternAtom;
XkbGetAtomNameFunc _XkbGetAtomNameFunc= XGetAtomName;
-Bool
+Bool
XkbQueryExtension( Display *dpy,
int * opcodeReturn,
int * eventBaseReturn,
@@ -62,7 +62,7 @@ XkbQueryExtension( Display *dpy,
return True;
}
-Bool
+Bool
XkbLibraryVersion(int *libMajorRtrn,int *libMinorRtrn)
{
int supported;
@@ -73,7 +73,7 @@ int supported;
supported= True;
else supported= False;
}
- else {
+ else {
supported = True;
}
@@ -117,7 +117,7 @@ XkbSelectEvents( Display * dpy,
else xkbi->selected_map_details= 0;
}
if (affect&XkbNewKeyboardNotifyMask) {
- if (selectAll&XkbNewKeyboardNotifyMask)
+ if (selectAll&XkbNewKeyboardNotifyMask)
xkbi->selected_nkn_details= XkbAllNewKeyboardEventsMask;
else xkbi->selected_nkn_details= 0;
if (!(xkbi->xlib_ctrls&XkbLC_IgnoreNewKeyboards)) {
diff --git a/src/xkb/XKBAlloc.c b/src/xkb/XKBAlloc.c
index 9430ac0e..567235dd 100644
--- a/src/xkb/XKBAlloc.c
+++ b/src/xkb/XKBAlloc.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -43,7 +43,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <X11/extensions/XKBproto.h>
#include "XKBlibint.h"
-#else
+#else
#include <stdio.h>
#include <X11/X.h>
@@ -163,7 +163,7 @@ XkbNamesPtr names;
if ((which&XkbKeyNamesMask)&&(names->keys==NULL)) {
if ((!XkbIsLegalKeycode(xkb->min_key_code))||
(!XkbIsLegalKeycode(xkb->max_key_code))||
- (xkb->max_key_code<xkb->min_key_code))
+ (xkb->max_key_code<xkb->min_key_code))
return BadValue;
names->keys= _XkbTypedCalloc((xkb->max_key_code+1),XkbKeyNameRec);
if (names->keys==NULL)
@@ -223,7 +223,7 @@ XkbNamesPtr names;
return;
names= xkb->names;
if (freeMap)
- which= XkbAllNamesMask;
+ which= XkbAllNamesMask;
if (which&XkbKTLevelNamesMask) {
XkbClientMapPtr map= xkb->map;
if ((map!=NULL)&&(map->types!=NULL)) {
@@ -290,7 +290,7 @@ XkbFreeControls(XkbDescPtr xkb,unsigned which,Bool freeMap)
/***===================================================================***/
-Status
+Status
XkbAllocIndicatorMaps(XkbDescPtr xkb)
{
if (xkb==NULL)
@@ -368,7 +368,7 @@ register int i;
}
if (devi->num_leds>=devi->sz_leds) {
XkbDeviceLedInfoRec *prev_leds = devi->leds;
-
+
if (devi->sz_leds>0) devi->sz_leds*= 2;
else devi->sz_leds= 1;
devi->leds= _XkbTypedRealloc(devi->leds,devi->sz_leds,
@@ -465,7 +465,7 @@ XkbDeviceInfoPtr devi;
}
-void
+void
XkbFreeDeviceInfo(XkbDeviceInfoPtr devi,unsigned which,Bool freeDevI)
{
if (devi) {
diff --git a/src/xkb/XKBBell.c b/src/xkb/XKBBell.c
index 6ea30855..d2fed0a9 100644
--- a/src/xkb/XKBBell.c
+++ b/src/xkb/XKBBell.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -42,7 +42,7 @@ XkbDeviceBell( Display * dpy,
Window window,
int deviceID,
int bellClass,
- int bellID,
+ int bellID,
int percent,
Atom name)
{
diff --git a/src/xkb/XKBBind.c b/src/xkb/XKBBind.c
index 4dc92654..a349debe 100644
--- a/src/xkb/XKBBind.c
+++ b/src/xkb/XKBBind.c
@@ -77,7 +77,7 @@ XkbKeycodeToKeysym(Display *dpy,
int level)
{
XkbDescRec *xkb;
-
+
if (_XkbUnavailable(dpy))
return NoSymbol;
@@ -112,7 +112,7 @@ XKeycodeToKeysym(Display *dpy,
int col)
{
XkbDescRec *xkb;
-
+
if (_XkbUnavailable(dpy))
return _XKeycodeToKeysym(dpy, kc, col);
@@ -121,7 +121,7 @@ XKeycodeToKeysym(Display *dpy,
xkb = dpy->xkb_info->desc;
if ((kc<xkb->min_key_code)||(kc>xkb->max_key_code))
return NoSymbol;
-
+
if (col>3) {
int lastSym,tmp,nGrp;
@@ -229,8 +229,8 @@ XLookupKeysym(register XKeyEvent *event, int col)
}
/*
- * Not a public entry point -- XkbTranslateKey is an obsolete name
- * that is preserved here so that functions linked against the old
+ * Not a public entry point -- XkbTranslateKey is an obsolete name
+ * that is preserved here so that functions linked against the old
* version will continue to work in a shared library environment.
*/
int
@@ -328,10 +328,10 @@ XkbTranslateKeyCode( register XkbDescPtr xkb,
if (mods_rtrn) {
*mods_rtrn= type->mods.mask&(~preserve);
/* The Motif VTS doesn't get the help callback called if help
- * is bound to Shift+<whatever>, and it appears as though it
- * is XkbTranslateKeyCode that is causing the problem. The
- * core X version of XTranslateKey always OR's in ShiftMask
- * and LockMask for mods_rtrn, so this "fix" keeps this behavior
+ * is bound to Shift+<whatever>, and it appears as though it
+ * is XkbTranslateKeyCode that is causing the problem. The
+ * core X version of XTranslateKey always OR's in ShiftMask
+ * and LockMask for mods_rtrn, so this "fix" keeps this behavior
* and solves the VTS problem.
*/
if ((xkb->dpy)&&(xkb->dpy->xkb_info)&&
@@ -698,7 +698,7 @@ XLookupString ( register XKeyEvent * event,
}
}
}
- }
+ }
#ifdef USE_OWN_COMPOSE
if ( status ) {
@@ -711,7 +711,7 @@ XLookupString ( register XKeyEvent * event,
status->compose_ptr = NULL;
status->chars_matched = 0;
}
- if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) ||
+ if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) ||
XimCompIsComposeKey(*keysym,event->keycode,status) ) {
XimCompRtrn rtrn;
@@ -817,7 +817,7 @@ XkbLookupKeyBinding( Display * dpy,
int nbytes,
int * extra_rtrn)
{
- register struct _XKeytrans *p;
+ register struct _XKeytrans *p;
if (extra_rtrn)
*extra_rtrn= 0;
@@ -841,7 +841,7 @@ char
XkbToControl( char ch )
{
register char c = ch;
-
+
if ((c >= '@' && c < '\177') || c == ' ') c &= 0x1F;
else if (c == '2') c = '\000';
else if (c >= '3' && c <= '7') c -= ('3' - '\033');
diff --git a/src/xkb/XKBCompat.c b/src/xkb/XKBCompat.c
index 5886e4d2..d52fd131 100644
--- a/src/xkb/XKBCompat.c
+++ b/src/xkb/XKBCompat.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -46,7 +46,7 @@ _XkbReadGetCompatMapReply( Display * dpy,
register int i;
XkbReadBufferRec buf;
- if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4))
+ if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4))
return BadAlloc;
if (nread_rtrn)
@@ -99,7 +99,7 @@ XkbReadBufferRec buf;
}
}
i= _XkbFreeReadBuffer(&buf);
- if (i)
+ if (i)
fprintf(stderr,"CompatMapReply! Bad length (%d extra bytes)\n",i);
if (i || buf.error)
return BadLength;
diff --git a/src/xkb/XKBCtrls.c b/src/xkb/XKBCtrls.c
index 0ea131aa..aadcccd3 100644
--- a/src/xkb/XKBCtrls.c
+++ b/src/xkb/XKBCtrls.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -51,10 +51,10 @@ xkbSetControlsReq *req;
return req;
}
-Bool
+Bool
XkbSetAutoRepeatRate( Display *dpy,
- unsigned int deviceSpec,
- unsigned int timeout,
+ unsigned int deviceSpec,
+ unsigned int timeout,
unsigned int interval)
{
register xkbSetControlsReq *req;
@@ -72,7 +72,7 @@ XkbSetAutoRepeatRate( Display *dpy,
return True;
}
-Bool
+Bool
XkbGetAutoRepeatRate( Display * dpy,
unsigned int deviceSpec,
unsigned int * timeoutp,
@@ -91,7 +91,7 @@ XkbGetAutoRepeatRate( Display * dpy,
req->reqType = xkbi->codes->major_opcode;
req->xkbReqType = X_kbGetControls;
req->deviceSpec = deviceSpec;
- if (!_XReply(dpy, (xReply *)&rep,
+ if (!_XReply(dpy, (xReply *)&rep,
(SIZEOF(xkbGetControlsReply)-SIZEOF(xReply))>>2, xFalse)) {
UnlockDisplay(dpy);
SyncHandle();
@@ -175,7 +175,7 @@ XkbChangeEnabledControls( Display * dpy,
return True;
}
-Status
+Status
XkbGetControls(Display *dpy, unsigned long which, XkbDescPtr xkb)
{
register xkbGetControlsReq *req;
@@ -198,12 +198,12 @@ XkbGetControls(Display *dpy, unsigned long which, XkbDescPtr xkb)
UnlockDisplay(dpy);
SyncHandle();
return BadAlloc;
- }
+ }
}
req->reqType = xkbi->codes->major_opcode;
req->xkbReqType = X_kbGetControls;
req->deviceSpec = xkb->device_spec;
- if (!_XReply(dpy, (xReply *)&rep,
+ if (!_XReply(dpy, (xReply *)&rep,
(SIZEOF(xkbGetControlsReply)-SIZEOF(xReply))>>2, xFalse)) {
UnlockDisplay(dpy);
SyncHandle();
@@ -264,14 +264,14 @@ XkbGetControls(Display *dpy, unsigned long which, XkbDescPtr xkb)
}
if (which&XkbPerKeyRepeatMask) {
memcpy(ctrls->per_key_repeat,rep.perKeyRepeat,
- XkbPerKeyBitArraySize);
+ XkbPerKeyBitArraySize);
}
UnlockDisplay(dpy);
SyncHandle();
return Success;
}
-Bool
+Bool
XkbSetControls(Display *dpy, unsigned long which, XkbDescPtr xkb)
{
register xkbSetControlsReq *req;
diff --git a/src/xkb/XKBCvt.c b/src/xkb/XKBCvt.c
index 056f39f4..2f7f1a14 100644
--- a/src/xkb/XKBCvt.c
+++ b/src/xkb/XKBCvt.c
@@ -57,7 +57,7 @@ from The Open Group.
#define XKB_EXTEND_LOOKUP_STRING
#endif
-static int
+static int
_XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn)
{
@@ -65,14 +65,14 @@ _XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn)
if (!(((keysym >= XK_BackSpace) && (keysym <= XK_Clear)) ||
(keysym == XK_Return) || (keysym == XK_Escape) ||
(keysym == XK_KP_Space) || (keysym == XK_KP_Tab) ||
- (keysym == XK_KP_Enter) ||
+ (keysym == XK_KP_Enter) ||
((keysym >= XK_KP_Multiply) && (keysym <= XK_KP_9)) ||
(keysym == XK_KP_Equal) ||
(keysym == XK_Delete)))
return 0;
if (nbytes<1) {
- if (extra_rtrn)
+ if (extra_rtrn)
*extra_rtrn= 1;
return 0;
}
@@ -86,7 +86,7 @@ _XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn)
}
/*ARGSUSED*/
-static int
+static int
_XkbKSToKnownSet ( XPointer priv,
KeySym keysym,
char * buffer,
@@ -144,7 +144,7 @@ _XkbKnownSetToKS(XPointer priv,char *buffer,int nbytes,Status *status)
return NoSymbol;
if (((buffer[0]&0x80)==0)&&(buffer[0]>=32))
return buffer[0];
- else if ((buffer[0]&0x7f)>=32) {
+ else if ((buffer[0]&0x7f)>=32) {
XkbToKS *map= (XkbToKS *)priv;
if ( map ) {
if ( map->map ) return map->prefix|map->map[buffer[0]&0x7f];
@@ -188,7 +188,7 @@ Strcmp(char *str1, char *str2)
}
#endif
-int
+int
_XkbGetConverters(const char *encoding_name, XkbConverters *cvt_rtrn)
{
if ( !cvt_rtrn ) return 0;
@@ -203,14 +203,14 @@ _XkbGetConverters(const char *encoding_name, XkbConverters *cvt_rtrn)
/***====================================================================***/
-/*
+/*
* The function _XkbGetCharset seems to be missnamed as what it seems to
* be used for is to determine the encoding-name for the locale. ???
*/
#ifdef XKB_EXTEND_LOOKUP_STRING
-/*
+/*
* XKB_EXTEND_LOOKUP_STRING is not used by the SI. It is used by various
* X Consortium/X Project Team members, so we leave it in the source as
* an simplify integration by these companies.
@@ -258,7 +258,7 @@ _XkbGetCharset(void)
return buf;
}
}
- else {
+ else {
charset = NULL;
}
@@ -278,7 +278,7 @@ _XkbGetCharset(void)
#ifndef S_ISREG
# define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
#endif
-
+
if ( (stat(cf,&sbuf)==0) && S_ISREG(sbuf.st_mode) &&
(file = fopen(cf,"r")) ) {
tmp = _XkbAlloc(sbuf.st_size+1);
@@ -301,7 +301,7 @@ _XkbGetCharset(void)
if ( (set=strchr(tmp,'=')) == NULL )
break;
*set++ = '\0';
- if ( (next=strchr(set,':')) != NULL )
+ if ( (next=strchr(set,':')) != NULL )
*next++ = '\0';
while ( tmp && *tmp ) {
if ( (end=strchr(tmp,',')) != NULL )
diff --git a/src/xkb/XKBExtDev.c b/src/xkb/XKBExtDev.c
index a22a2998..011f3bc3 100644
--- a/src/xkb/XKBExtDev.c
+++ b/src/xkb/XKBExtDev.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -176,7 +176,7 @@ XkbReadBufferRec buf;
XkbAction * act;
int tmp;
- if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4))
+ if (!_XkbInitReadBuffer(dpy,&buf,(int)rep->length*4))
return BadAlloc;
if ((rep->totalBtns>0)&&(rep->totalBtns!=devi->num_btns)) {
@@ -207,7 +207,7 @@ int tmp;
}
}
tmp= _XkbFreeReadBuffer(&buf);
- if (tmp)
+ if (tmp)
fprintf(stderr,"GetDeviceInfo! Bad length (%d extra bytes)\n",tmp);
if (tmp || buf.error)
return BadLength;
@@ -337,7 +337,7 @@ XkbGetDeviceButtonActions( Display * dpy,
xkbGetDeviceInfoReply rep;
Status status;
- if ((dpy->flags & XlibDisplayNoXkb) ||
+ if ((dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return BadMatch;
if (!devi)
@@ -378,7 +378,7 @@ XkbGetDeviceLedInfo( Display * dpy,
xkbGetDeviceInfoReply rep;
Status status;
- if ((dpy->flags & XlibDisplayNoXkb) ||
+ if ((dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return BadMatch;
if (((which&XkbXI_IndicatorsMask)==0)||(which&(~XkbXI_IndicatorsMask)))
@@ -399,7 +399,7 @@ XkbGetDeviceLedInfo( Display * dpy,
UnlockDisplay(dpy);
SyncHandle();
return BadLength;
- }
+ }
devi->type= rep.devType;
devi->supported= rep.supported;
devi->unsupported= rep.unsupported;
@@ -759,7 +759,7 @@ XkbChangeDeviceInfo( Display * dpy,
return ok;
}
-Bool
+Bool
XkbSetDeviceLedInfo( Display * dpy,
XkbDeviceInfoPtr devi,
unsigned ledClass,
@@ -769,7 +769,7 @@ XkbSetDeviceLedInfo( Display * dpy,
return False;
}
-Bool
+Bool
XkbSetDeviceButtonActions( Display * dpy,
XkbDeviceInfoPtr devi,
unsigned int first,
diff --git a/src/xkb/XKBGAlloc.c b/src/xkb/XKBGAlloc.c
index fddb770b..b3c3e342 100644
--- a/src/xkb/XKBGAlloc.c
+++ b/src/xkb/XKBGAlloc.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -43,7 +43,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <X11/extensions/XKBgeom.h>
#include <X11/extensions/XKBproto.h>
-#else
+#else
#include <stdio.h>
#include <X11/X.h>
@@ -63,7 +63,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
/***====================================================================***/
-static void
+static void
_XkbFreeGeomLeafElems( Bool freeAll,
int first,
int count,
@@ -77,14 +77,14 @@ _XkbFreeGeomLeafElems( Bool freeAll,
if (*elems!=NULL) {
_XkbFree(*elems);
*elems= NULL;
- }
+ }
return;
}
if ((first>=(*num_inout))||(first<0)||(count<1))
return;
- if (first+count>=(*num_inout)) {
+ if (first+count>=(*num_inout)) {
/* truncating the array is easy */
(*num_inout)= first;
}
@@ -104,7 +104,7 @@ typedef void (*ContentsClearFunc)(
char * /* priv */
);
-static void
+static void
_XkbFreeGeomNonLeafElems( Bool freeAll,
int first,
int count,
@@ -192,7 +192,7 @@ XkbFreeGeomKeyAliases( XkbGeometryPtr geom,
int first,
int count,
Bool freeAll)
-{
+{
_XkbFreeGeomLeafElems(freeAll,first,count,
&geom->num_key_aliases,&geom->sz_key_aliases,
(char **)&geom->key_aliases,
@@ -253,7 +253,7 @@ XkbFreeGeomOutlines(XkbShapePtr shape,int first,int count,Bool freeAll)
&shape->num_outlines,&shape->sz_outlines,
(char **)&shape->outlines,
sizeof(XkbOutlineRec),_XkbClearOutline);
-
+
return;
}
@@ -281,7 +281,7 @@ XkbFreeGeomShapes(XkbGeometryPtr geom,int first,int count,Bool freeAll)
/***====================================================================***/
-void
+void
XkbFreeGeomOverlayKeys(XkbOverlayRowPtr row,int first,int count,Bool freeAll)
{
_XkbFreeGeomLeafElems(freeAll,first,count,
@@ -402,7 +402,7 @@ _XkbClearDoodad(char *doodad_in)
XkbDoodadPtr doodad= (XkbDoodadPtr)doodad_in;
switch (doodad->any.type) {
- case XkbTextDoodad:
+ case XkbTextDoodad:
{
if (doodad->text.text!=NULL) {
_XkbFree(doodad->text.text);
@@ -414,7 +414,7 @@ XkbDoodadPtr doodad= (XkbDoodadPtr)doodad_in;
}
}
break;
- case XkbLogoDoodad:
+ case XkbLogoDoodad:
{
if (doodad->logo.logo_name!=NULL) {
_XkbFree(doodad->logo.logo_name);
@@ -547,7 +547,7 @@ _XkbGeomAlloc( XPointer * old,
#define _XkbAllocOverlayKeys(r,n) _XkbGeomAlloc((XPointer *)&(r)->keys,\
&(r)->num_keys,&(r)->sz_keys,\
(n),sizeof(XkbOverlayKeyRec))
-
+
Status
XkbAllocGeomProps(XkbGeometryPtr geom,int nProps)
{
@@ -693,7 +693,7 @@ register XkbPropertyPtr prop;
if (prop->value)
strcpy(prop->value,value);
return prop;
- }
+ }
}
if ((geom->num_properties>=geom->sz_properties)&&
(_XkbAllocProps(geom,1)!=Success)) {
@@ -950,7 +950,7 @@ Bool found;
}
}
if (!found)
- return NULL;
+ return NULL;
if ((row->num_keys>=row->sz_keys)&&(_XkbAllocOverlayKeys(row,1)!=Success))
return NULL;
key= &row->keys[row->num_keys];
diff --git a/src/xkb/XKBGeom.c b/src/xkb/XKBGeom.c
index 6eca6d5b..d0590da4 100644
--- a/src/xkb/XKBGeom.c
+++ b/src/xkb/XKBGeom.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -620,7 +620,7 @@ XkbGeometryPtr geom;
status= _XkbReadGeomKeyAliases(&buf,geom,rep);
left= _XkbFreeReadBuffer(&buf);
if ((status!=Success) || left || buf.error) {
- if (status==Success)
+ if (status==Success)
status= BadLength;
XkbFreeGeometry(geom,XkbGeomAllMask,True);
xkb->geom= NULL;
@@ -648,7 +648,7 @@ Status status;
if ( (!xkb) || (dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return BadAccess;
-
+
LockDisplay(dpy);
GetReq(kbGetGeometry, req);
req->reqType = dpy->xkb_info->codes->major_opcode;
@@ -676,7 +676,7 @@ Status status;
if ( (name==None) || (dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)) )
return BadAccess;
-
+
LockDisplay(dpy);
GetReq(kbGetGeometry, req);
req->reqType = dpy->xkb_info->codes->major_opcode;
diff --git a/src/xkb/XKBGetByName.c b/src/xkb/XKBGetByName.c
index 2c6ff084..c44bd4bb 100644
--- a/src/xkb/XKBGetByName.c
+++ b/src/xkb/XKBGetByName.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/src/xkb/XKBGetMap.c b/src/xkb/XKBGetMap.c
index 59e99621..54d9f335 100644
--- a/src/xkb/XKBGetMap.c
+++ b/src/xkb/XKBGetMap.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -108,7 +108,7 @@ XkbKeyTypePtr type;
type->num_levels = desc->numLevels;
type->map_count = desc->nMapEntries;
if (desc->nMapEntries>0) {
- register xkbKTMapEntryWireDesc *wire;
+ register xkbKTMapEntryWireDesc *wire;
register XkbKTMapEntryPtr entry;
register int size;
@@ -126,7 +126,7 @@ XkbKeyTypePtr type;
}
if (desc->preserve) {
- register xkbModsWireDesc * pwire;
+ register xkbModsWireDesc * pwire;
register XkbModsPtr preserve;
register int sz;
@@ -519,7 +519,7 @@ _XkbHandleGetMapReply(Display *dpy,XkbDescPtr xkb)
xkbGetMapReply rep;
if (!_XReply(dpy, (xReply *)&rep,
- ( (SIZEOF(xkbGetMapReply)-SIZEOF(xGenericReply)) >> 2 ),
+ ( (SIZEOF(xkbGetMapReply)-SIZEOF(xGenericReply)) >> 2 ),
xFalse)) {
return BadImplementation;
}
diff --git a/src/xkb/XKBList.c b/src/xkb/XKBList.c
index 2f4a5349..f348f1c7 100644
--- a/src/xkb/XKBList.c
+++ b/src/xkb/XKBList.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -188,7 +188,7 @@ int extraLen,len,mapLen,codesLen,typesLen,compatLen,symsLen,geomLen;
}
if (_XkbInitReadBuffer(dpy,&buf,extraLen)) {
Status status;
-
+
status= Success;
list= _XkbTypedCalloc(1,XkbComponentListRec);
if (!list) {
diff --git a/src/xkb/XKBMAlloc.c b/src/xkb/XKBMAlloc.c
index 08f29bb0..b1ba3ed2 100644
--- a/src/xkb/XKBMAlloc.c
+++ b/src/xkb/XKBMAlloc.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -42,7 +42,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <X11/keysym.h>
#include "XKBlibint.h"
-#else
+#else
#include <stdio.h>
#include <X11/X.h>
@@ -104,7 +104,7 @@ fprintf(stderr,"bad keycode (%d,%d) in XkbAllocClientMap\n",
return BadAlloc;
}
map->size_types= nTotalTypes;
- bzero(&map->types[map->num_types],
+ bzero(&map->types[map->num_types],
((map->size_types-map->num_types)*sizeof(XkbKeyTypeRec)));
}
}
@@ -197,7 +197,7 @@ XkbServerMapPtr map;
return BadAlloc;
}
map->size_acts= need;
- bzero(&map->acts[map->num_acts],
+ bzero(&map->acts[map->num_acts],
((map->size_acts-map->num_acts)*sizeof(XkbAction)));
}
if (map->key_acts==NULL) {
@@ -409,7 +409,7 @@ KeyCode matchingKeys[XkbMaxKeyCount],nMatchingKeys;
if ((map_count>type->map_count)||(type->map==NULL))
type->map=_XkbTypedRealloc(type->map,map_count,XkbKTMapEntryRec);
if (!type->map) {
- if (prev_map)
+ if (prev_map)
_XkbFree(prev_map);
return BadAlloc;
}
@@ -421,7 +421,7 @@ KeyCode matchingKeys[XkbMaxKeyCount],nMatchingKeys;
XkbModsRec);
}
if (!type->preserve) {
- if (prev_preserve)
+ if (prev_preserve)
_XkbFree(prev_preserve);
return BadAlloc;
}
@@ -438,7 +438,7 @@ KeyCode matchingKeys[XkbMaxKeyCount],nMatchingKeys;
type->level_names=_XkbTypedRealloc(type->level_names,new_num_lvls,Atom);
if (!type->level_names) {
- if (prev_level_names)
+ if (prev_level_names)
_XkbFree(prev_level_names);
return BadAlloc;
}
@@ -457,7 +457,7 @@ KeyCode matchingKeys[XkbMaxKeyCount],nMatchingKeys;
* might have to be enlarged.
* If the key type decreased in size:
* - keys that have a group width > the old width don't have to be
- * resized (because they must have some other wider type associated
+ * resized (because they must have some other wider type associated
* with some group).
* + keys that have a group width == the old width might have to be
* shrunk.
diff --git a/src/xkb/XKBMisc.c b/src/xkb/XKBMisc.c
index 515b2937..df333c9b 100644
--- a/src/xkb/XKBMisc.c
+++ b/src/xkb/XKBMisc.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -42,7 +42,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <X11/keysym.h>
#include "XKBlibint.h"
-#else
+#else
#include <stdio.h>
#include <X11/X.h>
@@ -60,11 +60,11 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
/***====================================================================***/
#define mapSize(m) (sizeof(m)/sizeof(XkbKTMapEntryRec))
-static XkbKTMapEntryRec map2Level[]= {
+static XkbKTMapEntryRec map2Level[]= {
{ True, ShiftMask, {1, ShiftMask, 0} }
};
-static XkbKTMapEntryRec mapAlpha[]= {
+static XkbKTMapEntryRec mapAlpha[]= {
{ True, ShiftMask, { 1, ShiftMask, 0 } },
{ True, LockMask, { 0, LockMask, 0 } }
};
@@ -75,25 +75,25 @@ static XkbModsRec preAlpha[]= {
};
#define NL_VMOD_MASK 0
-static XkbKTMapEntryRec mapKeypad[]= {
+static XkbKTMapEntryRec mapKeypad[]= {
{ True, ShiftMask, { 1, ShiftMask, 0 } },
{ False, 0, { 1, 0, NL_VMOD_MASK } }
};
static XkbKeyTypeRec canonicalTypes[XkbNumRequiredTypes] = {
- { { 0, 0, 0 },
+ { { 0, 0, 0 },
1, /* num_levels */
0, /* map_count */
NULL, NULL,
None, NULL
},
- { { ShiftMask, ShiftMask, 0 },
+ { { ShiftMask, ShiftMask, 0 },
2, /* num_levels */
mapSize(map2Level), /* map_count */
map2Level, NULL,
None, NULL
},
- { { ShiftMask|LockMask, ShiftMask|LockMask, 0 },
+ { { ShiftMask|LockMask, ShiftMask|LockMask, 0 },
2, /* num_levels */
mapSize(mapAlpha), /* map_count */
mapAlpha, preAlpha,
@@ -427,7 +427,7 @@ XkbApplyCompatMapToKey(XkbDescPtr xkb,KeyCode key,XkbChangesPtr changes)
{
KeySym * syms;
unsigned char explicit,mods;
-XkbSymInterpretPtr *interps,ibuf[IBUF_SIZE];
+XkbSymInterpretPtr *interps,ibuf[IBUF_SIZE];
int n,nSyms,found;
unsigned changed,tmp;
diff --git a/src/xkb/XKBNames.c b/src/xkb/XKBNames.c
index a8eeb2ad..aad72c15 100644
--- a/src/xkb/XKBNames.c
+++ b/src/xkb/XKBNames.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -362,7 +362,7 @@ XkbSetNames( Display * dpy,
}
}
}
-
+
nVMods= nLEDs= nRG= nKA= nAtoms= nGroups= 0;
LockDisplay(dpy);
xkbi = dpy->xkb_info;
@@ -407,7 +407,7 @@ XkbSetNames( Display * dpy,
else req->indicators= leds= 0;
if (which&XkbVirtualModNamesMask) {
- vmods= req->virtualMods= (CARD16)
+ vmods= req->virtualMods= (CARD16)
_XkbCountAtoms(names->vmods,XkbNumVirtualMods,&nVMods);
if (nVMods>0)
nAtoms+= nVMods;
@@ -563,7 +563,7 @@ XkbChangeNames(Display *dpy,XkbDescPtr xkb,XkbNameChangesPtr changes)
firstLvlType= changes->first_lvl;;
nLvlTypes= changes->num_lvls;
if (which&XkbKeyTypeNamesMask) {
- if (nTypes<1)
+ if (nTypes<1)
which&= ~XkbKeyTypeNamesMask;
else if (firstType<=XkbLastRequiredType) {
int adjust;
@@ -622,7 +622,7 @@ XkbChangeNames(Display *dpy,XkbDescPtr xkb,XkbNameChangesPtr changes)
changes->changed_groups= 0;
else if (changes->changed_groups==0)
which&= ~XkbGroupNamesMask;
-
+
nVMods= nLEDs= nRG= nKA= nAtoms= nGroups= 0;
LockDisplay(dpy);
xkbi = dpy->xkb_info;
@@ -882,9 +882,9 @@ int first,last,old_last,new_last;
old->changed_groups|= new->changed_groups;
else old->changed_groups= new->changed_groups;
}
- if (wanted&XkbRGNamesMask)
+ if (wanted&XkbRGNamesMask)
old->num_rg= new->num_radio_groups;
- if (wanted&XkbKeyAliasesMask)
+ if (wanted&XkbKeyAliasesMask)
old->num_aliases= new->num_aliases;
old->changed|= wanted;
return;
diff --git a/src/xkb/XKBRdBuf.c b/src/xkb/XKBRdBuf.c
index 097630f0..7fe84529 100644
--- a/src/xkb/XKBRdBuf.c
+++ b/src/xkb/XKBRdBuf.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -38,7 +38,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
/***====================================================================***/
-int
+int
_XkbInitReadBuffer(Display *dpy,XkbReadBufferPtr buf,int size)
{
if ((dpy!=NULL) && (buf!=NULL) && (size>0)) {
diff --git a/src/xkb/XKBSetGeom.c b/src/xkb/XKBSetGeom.c
index 8e4d8b1b..afda1866 100644
--- a/src/xkb/XKBSetGeom.c
+++ b/src/xkb/XKBSetGeom.c
@@ -8,19 +8,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -71,7 +71,7 @@ _SizeGeomProperties(XkbGeometryPtr geom)
{
register int i,size;
XkbPropertyPtr prop;
-
+
for (size=i=0,prop=geom->properties;i<geom->num_properties;i++,prop++) {
size+= _SizeCountedString(prop->name);
size+= _SizeCountedString(prop->value);
@@ -175,7 +175,7 @@ _WriteGeomProperties(char *wire,XkbGeometryPtr geom)
{
register int i;
register XkbPropertyPtr prop;
-
+
for (i=0,prop=geom->properties;i<geom->num_properties;i++,prop++) {
wire= _WriteCountedString(wire,prop->name);
wire= _WriteCountedString(wire,prop->value);
@@ -378,7 +378,7 @@ static char *
_WriteGeomKeyAliases(char *wire,XkbGeometryPtr geom)
{
register int sz;
-
+
sz= geom->num_key_aliases*(XkbKeyNameLength*2);
if (sz>0) {
memcpy(wire,(char *)geom->key_aliases,sz);
@@ -445,7 +445,7 @@ Status ret;
if ( (!geom) || (dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return BadAccess;
-
+
LockDisplay(dpy);
GetReq(kbSetGeometry, req);
req->reqType = dpy->xkb_info->codes->major_opcode;
diff --git a/src/xkb/XKBSetMap.c b/src/xkb/XKBSetMap.c
index 4a3b15c7..d9e1125c 100644
--- a/src/xkb/XKBSetMap.c
+++ b/src/xkb/XKBSetMap.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/src/xkb/XKBUse.c b/src/xkb/XKBUse.c
index ad18bb6f..5bc3c4bd 100644
--- a/src/xkb/XKBUse.c
+++ b/src/xkb/XKBUse.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -232,7 +232,7 @@ wire_to_event(Display *dpy,XEvent *re,xEvent *event)
(xGenericReply *)event);
sev->send_event = ((event->u.u.type & 0x80) != 0);
sev->display = dpy;
- sev->time = sn->time;
+ sev->time = sn->time;
sev->device = sn->deviceID;
sev->keycode = sn->keycode;
sev->event_type = sn->eventType;
@@ -749,7 +749,7 @@ XkbUseExtension(Display *dpy,int *major_rtrn,int *minor_rtrn)
fail= True;
if (debugMsg)
fprintf(stderr,
- "XKEYBOARD version mismatch (want %d.%02d, got %d.%02d)\n",
+ "XKEYBOARD version mismatch (want %d.%02d, got %d.%02d)\n",
XkbMajorVersion,XkbMinorVersion,
rep.serverMajor, rep.serverMinor);
diff --git a/src/xkb/XKBleds.c b/src/xkb/XKBleds.c
index 865342c4..e0cc14b4 100644
--- a/src/xkb/XKBleds.c
+++ b/src/xkb/XKBleds.c
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -43,7 +43,7 @@ XkbGetIndicatorState(Display *dpy,unsigned deviceSpec,unsigned *pStateRtrn)
xkbGetIndicatorStateReply rep;
XkbInfoPtr xkbi;
Bool ok;
-
+
if ((dpy->flags & XlibDisplayNoXkb) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return BadAccess;
@@ -61,7 +61,7 @@ XkbGetIndicatorState(Display *dpy,unsigned deviceSpec,unsigned *pStateRtrn)
return (ok?Success:BadImplementation);
}
-Status
+Status
_XkbReadGetIndicatorMapReply( Display * dpy,
xkbGetIndicatorMapReply * rep,
XkbDescPtr xkb,
@@ -210,7 +210,7 @@ XkbGetNamedDeviceIndicator( Display * dpy,
register xkbGetNamedIndicatorReq *req;
xkbGetNamedIndicatorReply rep;
XkbInfoPtr xkbi;
-
+
if ((dpy->flags & XlibDisplayNoXkb) || (name==None) ||
(!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
return False;
@@ -246,7 +246,7 @@ XkbGetNamedDeviceIndicator( Display * dpy,
pMapRtrn->mods.vmods= rep.virtualMods;
pMapRtrn->ctrls= rep.ctrls;
}
- if (pRealRtrn!=NULL)
+ if (pRealRtrn!=NULL)
*pRealRtrn= rep.realIndicator;
return True;
}
diff --git a/src/xkb/XKBlibint.h b/src/xkb/XKBlibint.h
index ededdaa7..158288ec 100644
--- a/src/xkb/XKBlibint.h
+++ b/src/xkb/XKBlibint.h
@@ -7,19 +7,19 @@ software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
-documentation, and that the name of Silicon Graphics not be
-used in advertising or publicity pertaining to distribution
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
-Silicon Graphics makes no representation about the suitability
+Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
-SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -106,7 +106,7 @@ typedef struct _XkbInfoRec {
#define XKB_XLIB_MAP_MASK (XkbAllClientInfoMask)
/*
- * Handy helper macros
+ * Handy helper macros
*/
#define XKB_INSURE_SIZE(f,t,nNum,oNum) {\
if ((f)==NULL) \
@@ -159,7 +159,7 @@ extern KeySym _XLookupKeysym(
);
extern int _XRefreshKeyboardMapping(
- XMappingEvent* /* event_map */
+ XMappingEvent* /* event_map */
);
extern unsigned _XKeysymToModifiers(
@@ -167,7 +167,7 @@ extern unsigned _XKeysymToModifiers(
KeySym /* ks */
);
-extern int _XTranslateKey(
+extern int _XTranslateKey(
register Display * /* dpy */,
KeyCode /* keycode */,
register unsigned int /* modifiers */,
diff --git a/src/xlibi18n/ICWrap.c b/src/xlibi18n/ICWrap.c
index b51da6f4..5cc99d04 100644
--- a/src/xlibi18n/ICWrap.c
+++ b/src/xlibi18n/ICWrap.c
@@ -13,30 +13,30 @@
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of OMRON, NTT Software, NTT, and
- * Open Software Foundation not be used in advertising or publicity
- * pertaining to distribution of the software without specific,
+ * Open Software Foundation not be used in advertising or publicity
+ * pertaining to distribution of the software without specific,
* written prior permission. OMRON, NTT Software, NTT, and Open Software
* Foundation make no representations about the suitability of this
* software for any purpose. It is provided "as is" without express or
* implied warranty.
*
- * OMRON, NTT SOFTWARE, NTT, AND OPEN SOFTWARE FOUNDATION
- * DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
- * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
+ * OMRON, NTT SOFTWARE, NTT, AND OPEN SOFTWARE FOUNDATION
+ * DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
* SHALL OMRON, NTT SOFTWARE, NTT, OR OPEN SOFTWARE FOUNDATION BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
+ *
* Authors: Li Yuhong OMRON Corporation
* Tatsuya Kato NTT Software Corporation
* Hiroshi Kuribayashi OMRON Coproration
* Muneiyoshi Suzuki Nippon Telegraph and Telephone Co.
- *
- * M. Collins OSF
+ *
+ * M. Collins OSF
* Takashi Fujiwara FUJITSU LIMITED
- */
+ */
/*
Copyright 1991, 1998 The Open Group
@@ -224,7 +224,7 @@ XGetIMValues(XIM im, ...)
}
/*
- * Create an input context within the input method,
+ * Create an input context within the input method,
* and return a pointer to the input context.
*/
@@ -235,7 +235,7 @@ XCreateIC(XIM im, ...)
int total_count;
XIMArg *args;
XIC ic;
-
+
/*
* so count the stuff dangling here
*/
@@ -283,7 +283,7 @@ XDestroyIC(ic)
char *
XGetICValues(XIC ic, ...)
-{
+{
va_list var;
int total_count;
XIMArg *args;
diff --git a/src/xlibi18n/IMWrap.c b/src/xlibi18n/IMWrap.c
index a90b4067..f8cdedc3 100644
--- a/src/xlibi18n/IMWrap.c
+++ b/src/xlibi18n/IMWrap.c
@@ -11,10 +11,10 @@
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of Open Software Foundation and
- * Sony Corporation not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior permission.
- * Open Software Foundation and Sony Corporation make no
- * representations about the suitability of this software for any purpose.
+ * Sony Corporation not be used in advertising or publicity pertaining to
+ * distribution of the software without specific, written prior permission.
+ * Open Software Foundation and Sony Corporation make no
+ * representations about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
* OPEN SOFTWARE FOUNDATION AND SONY CORPORATION DISCLAIM ALL
@@ -24,11 +24,11 @@
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ * M. Collins OSF
* Makoto Wakamatsu Sony Corporation
- */
+ */
/*
Copyright 1991, 1998 The Open Group
@@ -121,7 +121,7 @@ _XCopyToArg(src, dst, size)
* a XIM object and return a pointer the newly created XIM back to the caller.
*/
-XIM
+XIM
XOpenIM( display, rdb, res_name, res_class )
Display *display;
XrmDatabase rdb;
@@ -145,7 +145,7 @@ XCloseIM(im)
Status s;
XIC ic;
XLCd lcd = im->core.lcd;
-
+
s = (im->methods->close) (im);
for (ic = im->core.ic_chain; ic; ic = ic->core.next)
ic->core.im = (XIM)NULL;
diff --git a/src/xlibi18n/XDefaultIMIF.c b/src/xlibi18n/XDefaultIMIF.c
index fd6a8472..a8677f78 100644
--- a/src/xlibi18n/XDefaultIMIF.c
+++ b/src/xlibi18n/XDefaultIMIF.c
@@ -162,7 +162,7 @@ _XDefaultOpenIM(
XlcNCompoundText, lcd, XlcNMultiByte))) {
return((XIM)NULL);
}
-
+
if (!(ctow_conv = _XlcOpenConverter(lcd,
XlcNCompoundText, lcd, XlcNWideChar))) {
return((XIM)NULL);
@@ -413,7 +413,7 @@ _MbLookupString(
{
XComposeStatus NotSupportedYet ;
int length;
-
+
length = XLookupString(ev, buffer, bytes, keysym, &NotSupportedYet);
if (keysym && *keysym == NoSymbol){
diff --git a/src/xlibi18n/XDefaultOMIF.c b/src/xlibi18n/XDefaultOMIF.c
index 13f0d9cf..a6b891b0 100644
--- a/src/xlibi18n/XDefaultOMIF.c
+++ b/src/xlibi18n/XDefaultOMIF.c
@@ -97,7 +97,7 @@ typedef struct _XOCGenericPart {
typedef struct _XOCGenericRec {
XOCMethods methods;
- XOCCoreRec core;
+ XOCCoreRec core;
XOCGenericPart gen;
} XOCGenericRec, *XOCGeneric;
@@ -133,7 +133,7 @@ get_prop_name(
unsigned long fp;
if (XGetFontProperty(fs, XA_FONT, &fp))
- return XGetAtomName(dpy, fp);
+ return XGetAtomName(dpy, fp);
return (char *) NULL;
}
@@ -159,7 +159,7 @@ check_charset(
if (length > name_len)
return(NULL);
-
+
if (_XlcCompareISOLatin1(last - length, font_data->name) == 0)
return font_data;
}
@@ -262,7 +262,7 @@ load_font_info(
return False;
if (fn_num > 0)
font_set->info->fid = XLoadFont(dpy, font_set->font_name);
-
+
if (fn_list) XFreeFontNames(fn_list);
}
return True;
@@ -374,7 +374,7 @@ get_font_name(
name = (char *) Xmalloc(strlen(*list) + 1);
if (name)
strcpy(name, *list);
-
+
XFreeFontNames(list);
} else {
fs = XLoadQueryFont(dpy, pattern);
@@ -480,7 +480,7 @@ Limit the length of the string copy to prevent stack corruption.
continue;
} else {
if (num_fields == 13 || num_fields == 14) {
- /*
+ /*
* There are 14 fields in an XLFD name -- make certain the
* charset (& encoding) is placed in the correct field.
*/
@@ -545,11 +545,11 @@ Limit the length of the string copy to prevent stack corruption.
strcpy(base_name, oc->core.base_name_list);
oc->core.base_name_list = base_name;
- XFreeStringList(name_list);
+ XFreeStringList(name_list);
return found_num;
err:
- XFreeStringList(name_list);
+ XFreeStringList(name_list);
return -1;
}
@@ -660,7 +660,7 @@ destroy_oc(
if (oc->core.res_class)
Xfree(oc->core.res_class);
#endif
-
+
Xfree(oc);
}
@@ -714,7 +714,7 @@ wcs_to_mbs(
&to_left, NULL, 0);
if (ret != 0 || length > 0)
return False;
-
+
return True;
}
@@ -843,7 +843,7 @@ _XmbDefaultTextPerCharExtents(XOC oc, _Xconst char *text, int length,
cs->rbearing);
overall.width += cs->width;
}
- (*num_chars)++;
+ (*num_chars)++;
}
if (overall_ink) {
@@ -998,12 +998,12 @@ create_oc(
if (oc == NULL)
return (XOC) NULL;
bzero((char *) oc, sizeof(XOCGenericRec));
-
+
oc->core.om = om;
if (oc_resources[0].xrm_name == NULLQUARK)
_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
-
+
if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),
args, num_args, XlcCreateMask | XlcDefaultMask))
goto err;
@@ -1039,7 +1039,7 @@ close_om(
if ((data = gen->data)) {
if (data->font_data) {
for (font_data = data->font_data, count = data->font_data_count;
- count-- > 0 ; font_data++) {
+ count-- > 0 ; font_data++) {
if (font_data->name)
Xfree(font_data->name);
}
@@ -1137,7 +1137,7 @@ static _Xconst char *supported_charset_list[] = {
"SUNOLCURSOR-1",
"SUNOLGLYPH-1"
};
-
+
static Bool
init_om(
XOM om)
@@ -1230,7 +1230,7 @@ _XDefaultOpenOM(XLCd lcd, Display *dpy, XrmDatabase rdb,
if (om == NULL)
return (XOM) NULL;
bzero((char *) om, sizeof(XOMGenericRec));
-
+
om->methods = (XOMMethods)&methods;
om->core.lcd = lcd;
om->core.display = dpy;
@@ -1250,7 +1250,7 @@ _XDefaultOpenOM(XLCd lcd, Display *dpy, XrmDatabase rdb,
if (om_resources[0].xrm_name == NULLQUARK)
_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
-
+
om->core.resources = om_resources;
om->core.num_resources = XlcNumber(om_resources);
diff --git a/src/xlibi18n/Xaixlcint.h b/src/xlibi18n/Xaixlcint.h
index 2e4f3f52..b7d344e9 100644
--- a/src/xlibi18n/Xaixlcint.h
+++ b/src/xlibi18n/Xaixlcint.h
@@ -14,7 +14,7 @@
* software without specific, written prior permission.
*
* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
- * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
* NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
* IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
diff --git a/src/xlibi18n/XimImSw.h b/src/xlibi18n/XimImSw.h
index 8ad5d287..d13d43c2 100644
--- a/src/xlibi18n/XimImSw.h
+++ b/src/xlibi18n/XimImSw.h
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/src/xlibi18n/XimProto.h b/src/xlibi18n/XimProto.h
index fe6e5f69..c7458b08 100644
--- a/src/xlibi18n/XimProto.h
+++ b/src/xlibi18n/XimProto.h
@@ -11,7 +11,7 @@ in supporting documentation, and that the name of FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
FUJITSU LIMITED makes no representations about the suitability of
-this software for any purpose.
+this software for any purpose.
It is provided "as is" without express or implied warranty.
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
@@ -22,7 +22,7 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/src/xlibi18n/XimThai.h b/src/xlibi18n/XimThai.h
index 5b2666eb..28e90956 100644
--- a/src/xlibi18n/XimThai.h
+++ b/src/xlibi18n/XimThai.h
@@ -28,13 +28,13 @@ Copyright 1993 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -48,17 +48,17 @@ SOFTWARE.
/* $XFree86: xc/lib/X11/XimThai.h,v 1.5 2001/12/14 19:54:08 dawes Exp $ */
/*
-**++
-** FACILITY:
-**
-** Xlib
-**
-** ABSTRACT:
-**
-** Definition file for Thai specific functions.
-**
-** MODIFICATION HISTORY:
-**
+**++
+** FACILITY:
+**
+** Xlib
+**
+** ABSTRACT:
+**
+** Definition file for Thai specific functions.
+**
+** MODIFICATION HISTORY:
+**
**/
#ifndef _XIMTHAI_H_
diff --git a/src/xlibi18n/XimTrX.h b/src/xlibi18n/XimTrX.h
index a4378439..edf8a8a8 100644
--- a/src/xlibi18n/XimTrX.h
+++ b/src/xlibi18n/XimTrX.h
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/src/xlibi18n/XimTrans.h b/src/xlibi18n/XimTrans.h
index f75270b2..500b2c52 100644
--- a/src/xlibi18n/XimTrans.h
+++ b/src/xlibi18n/XimTrans.h
@@ -24,7 +24,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
******************************************************************/
diff --git a/src/xlibi18n/Ximint.h b/src/xlibi18n/Ximint.h
index 3cbcfc4b..4cc1550a 100644
--- a/src/xlibi18n/Ximint.h
+++ b/src/xlibi18n/Ximint.h
@@ -13,7 +13,7 @@ Sony Corporation not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission. FUJITSU LIMITED and Sony Corporation makes no
representations about the suitability of this software for any
-purpose. It is provided "as is" without express or implied warranty.
+purpose. It is provided "as is" without express or implied warranty.
FUJITSU LIMITED AND SONY CORPORATION DISCLAIM ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
@@ -22,9 +22,9 @@ SONY CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
+PERFORMANCE OF THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Motifier: Makoto Wakamatsu Sony Corporation
makoto@sm.sony.co.jp
@@ -585,7 +585,7 @@ extern char * _XimEncodeIMATTRIBUTE(
Xim im,
XIMResourceList res_list,
unsigned int res_num,
- XIMArg *arg,
+ XIMArg *arg,
XIMArg **arg_ret,
char *buf,
int size,
@@ -598,7 +598,7 @@ extern char * _XimEncodeICATTRIBUTE(
Xic ic,
XIMResourceList res_list,
unsigned int res_num,
- XIMArg *arg,
+ XIMArg *arg,
XIMArg **arg_ret,
char *buf,
int size,
@@ -870,9 +870,9 @@ extern CARD32 _XimExtenArgCheck(
#endif
extern Bool _XimCbDispatch(
- Xim im,
- INT16 len,
- XPointer data,
+ Xim im,
+ INT16 len,
+ XPointer data,
XPointer call_data
);
diff --git a/src/xlibi18n/XimintL.h b/src/xlibi18n/XimintL.h
index 5eeb21f2..1ac4d478 100644
--- a/src/xlibi18n/XimintL.h
+++ b/src/xlibi18n/XimintL.h
@@ -16,17 +16,17 @@ makes no representations about the suitability of this software for
any purpose. It is provided "as is" without express or implied
warranty.
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
-WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
-FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
+ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
- Author: Takashi Fujiwara FUJITSU LIMITED
+ Author: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Modifier: Franky Ling Digital Equipment Corporation
frankyling@hgrd01.enet.dec.com
diff --git a/src/xlibi18n/XimintP.h b/src/xlibi18n/XimintP.h
index d36abdc6..bb99313d 100644
--- a/src/xlibi18n/XimintP.h
+++ b/src/xlibi18n/XimintP.h
@@ -15,7 +15,7 @@ pertaining to distribution of the software without specific, written
prior permission. Sun Microsystems, Inc., FUJITSU LIMITED and Sony
Corporation makes no representations about the suitability of this
software for any purpose. It is provided "as is" without express or
-implied warranty.
+implied warranty.
Sun Microsystems Inc. ,FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
@@ -27,7 +27,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
- Takashi Fujiwara FUJITSU LIMITED
+ Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
Makoto Wakamatsu Sony Corporation
makoto@sm.sony.co.jp
diff --git a/src/xlibi18n/XlcDL.c b/src/xlibi18n/XlcDL.c
index 96a9e953..30dee0c4 100644
--- a/src/xlibi18n/XlcDL.c
+++ b/src/xlibi18n/XlcDL.c
@@ -143,7 +143,7 @@ strdup_with_underscore(const char *symbol)
{
char *result;
- if ((result = malloc(strlen(symbol) + 2)) == NULL)
+ if ((result = malloc(strlen(symbol) + 2)) == NULL)
return NULL;
result[0] = '_';
strcpy(result + 1, symbol);
@@ -213,7 +213,7 @@ Limit the length of path to prevent stack buffer corruption.
if (!xi18n_objects_list) return;
}
n = parse_line(p, args, 6);
-
+
if (n == 3 || n == 5) {
if (!strcmp(args[0], "XLC")){
xi18n_objects_list[lc_count].type = XLC_OBJECT;
@@ -323,7 +323,7 @@ open_object(
char *lc_dir)
{
char *path;
-
+
if (object->refcount == 0) {
path = __lc_path(object->dl_name, lc_dir);
if (!path)
@@ -430,7 +430,7 @@ _XlcDynamicLoad(const char *lc_name)
if (lcd != (XLCd)NULL) {
break;
}
-
+
close_object (objects_list);
}
return (XLCd)lcd;
@@ -468,7 +468,7 @@ _XDynamicOpenIM(XLCd lcd, Display *display, XrmDatabase rdb,
if (im != (XIM)NULL) {
break;
}
-
+
close_object (objects_list);
}
return (XIM)im;
@@ -612,7 +612,7 @@ _XDynamicOpenOM(XLCd lcd, Display *display, XrmDatabase rdb,
strcmp(objects_list->locale_name, lc_name)) continue;
if (!open_object (objects_list, lc_dir))
continue;
-
+
om_openOM = (dynamicIOpenProcp)fetch_symbol(objects_list, objects_list->open);
if (!om_openOM) continue;
om = (*om_openOM)(lcd, display, rdb, res_name, res_class);
diff --git a/src/xlibi18n/XlcGeneric.h b/src/xlibi18n/XlcGeneric.h
index f1d14e71..1b9c68b1 100644
--- a/src/xlibi18n/XlcGeneric.h
+++ b/src/xlibi18n/XlcGeneric.h
@@ -136,9 +136,9 @@ typedef struct _XLCdGenericPart {
} XLCdGenericPart;
typedef struct _XLCdGenericRec {
- XLCdCoreRec core;
+ XLCdCoreRec core;
XLCdPublicPart pub;
- XLCdGenericPart gen;
+ XLCdGenericPart gen;
} XLCdGenericRec, *XLCdGeneric;
extern XLCdMethods _XlcGenericMethods;
diff --git a/src/xlibi18n/XlcPubI.h b/src/xlibi18n/XlcPubI.h
index 4544fb8c..51219305 100644
--- a/src/xlibi18n/XlcPubI.h
+++ b/src/xlibi18n/XlcPubI.h
@@ -98,7 +98,7 @@ typedef struct _XLCdPublicPart {
} XLCdPublicPart;
typedef struct _XLCdPublicRec {
- XLCdCoreRec core;
+ XLCdCoreRec core;
XLCdPublicPart pub;
} XLCdPublicRec, *XLCdPublic;
diff --git a/src/xlibi18n/Xlcint.h b/src/xlibi18n/Xlcint.h
index 53704c54..12efebef 100644
--- a/src/xlibi18n/Xlcint.h
+++ b/src/xlibi18n/Xlcint.h
@@ -42,31 +42,31 @@ from The Open Group.
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of OMRON, NTT Software, NTT, Open
* Software Foundation, and Sony Corporation not be used in advertising
- * or publicity pertaining to distribution of the software without specific,
+ * or publicity pertaining to distribution of the software without specific,
* written prior permission. OMRON, NTT Software, NTT, Open Software
- * Foundation, and Sony Corporation make no representations about the
- * suitability of this software for any purpose. It is provided "as is"
+ * Foundation, and Sony Corporation make no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * OMRON, NTT SOFTWARE, NTT, OPEN SOFTWARE FOUNDATION, AND SONY
- * CORPORATION DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
- * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
- * SHALL OMRON, NTT SOFTWARE, NTT, OPEN SOFTWARE FOUNDATION, OR SONY
+ * OMRON, NTT SOFTWARE, NTT, OPEN SOFTWARE FOUNDATION, AND SONY
+ * CORPORATION DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
+ * SHALL OMRON, NTT SOFTWARE, NTT, OPEN SOFTWARE FOUNDATION, OR SONY
* CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
- * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+ * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
+ *
* Authors: Li Yuhong OMRON Corporation
* Tatsuya Kato NTT Software Corporation
* Hiroshi Kuribayashi OMRON Coproration
* Muneiyoshi Suzuki Nippon Telegraph and Telephone Co.
- *
- * M. Collins OSF
+ *
+ * M. Collins OSF
* Katsuhisa Yano TOSHIBA Corp.
* Makoto Wakamatsu Sony Corporation
* Takashi Fujiwara FUJITSU LIMITED
- */
+ */
#ifndef _XLCINT_H_
@@ -436,11 +436,11 @@ typedef char* (*XGetOCValuesProc)(
);
/*
- * X Font Sets are an instantiable object, so we define it, the
+ * X Font Sets are an instantiable object, so we define it, the
* object itself, a method list and data
*/
-/*
+/*
* XFontSet object method list
*/
@@ -598,7 +598,7 @@ typedef struct _XOC {
/*
- * X Input Managers are an instantiable object, so we define it, the
+ * X Input Managers are an instantiable object, so we define it, the
* object itself, a method list and data.
*/
@@ -656,7 +656,7 @@ typedef struct {
/*
- * An X Input Manager (IM). Implementations may need to extend this data
+ * An X Input Manager (IM). Implementations may need to extend this data
* structure to accomodate additional data, state information etc.
*/
typedef struct _XIM {
@@ -667,13 +667,13 @@ typedef struct _XIM {
/*
- * X Input Contexts (IC) are an instantiable object, so we define it, the
+ * X Input Contexts (IC) are an instantiable object, so we define it, the
* object itself, a method list and data for this object
*/
/*
* Input Context method list
- */
+ */
typedef struct {
void (*destroy)(
XIC
@@ -740,7 +740,7 @@ typedef struct {
/*
- * an Input Context. Implementations may need to extend this data
+ * an Input Context. Implementations may need to extend this data
* structure to accomodate additional data, state information etc.
*/
typedef struct _XIC {
diff --git a/src/xlibi18n/imKStoUCS.c b/src/xlibi18n/imKStoUCS.c
index 7d8d5b92..83c14832 100644
--- a/src/xlibi18n/imKStoUCS.c
+++ b/src/xlibi18n/imKStoUCS.c
@@ -66,7 +66,7 @@ static unsigned short const keysym_to_unicode_590_5fe[] = {
0x06f0, 0x06f1, 0x06f2, 0x06f3, 0x06f4, 0x06f5, 0x06f6, 0x06f7, /* 0x0590-0x0597 */
0x06f8, 0x06f9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, /* 0x0598-0x059f */
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x066a, 0x0670, 0x0679, /* 0x05a0-0x05a7 */
-
+
0x067e, 0x0686, 0x0688, 0x0691, 0x060c, 0x0000, 0x06d4, 0x0000, /* 0x05ac-0x05af */
0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, /* 0x05b0-0x05b7 */
0x0668, 0x0669, 0x0000, 0x061b, 0x0000, 0x0000, 0x0000, 0x061f, /* 0x05b8-0x05bf */
@@ -206,7 +206,7 @@ static unsigned short keysym_to_unicode_12a1_12fe[] = {
0x0175, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x1e6b, /* 0x12f0-0x12f7 */
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0177 /* 0x12f0-0x12ff */
};
-
+
static unsigned short const keysym_to_unicode_13bc_13be[] = {
0x0152, 0x0153, 0x0178 /* 0x13b8-0x13bf */
};
@@ -318,6 +318,6 @@ KeySymToUcs4(KeySym keysym)
return keysym_to_unicode_1e9f_1eff[keysym - 0x1e9f];
else if (keysym > 0x209f && keysym < 0x20ad)
return keysym_to_unicode_20a0_20ac[keysym - 0x20a0];
- else
+ else
return 0;
}
diff --git a/src/xlibi18n/lcCT.c b/src/xlibi18n/lcCT.c
index f3a91e6c..3cc93271 100644
--- a/src/xlibi18n/lcCT.c
+++ b/src/xlibi18n/lcCT.c
@@ -319,7 +319,7 @@ _XlcParseCharSet(
const char *ptr = charset->ct_sequence;
int length;
int char_size;
-
+
if (*ptr == '\0')
return False;
@@ -751,7 +751,7 @@ cttocs(
or stop the current run. */
if (charset) {
if (charset != ch_charset)
- break;
+ break;
} else {
state->charset = charset = ch_charset;
}
@@ -791,7 +791,7 @@ cttocs(
or stop the current run. */
if (charset) {
if (charset != state->charset)
- break;
+ break;
} else {
charset = state->charset;
}
@@ -1097,7 +1097,7 @@ strtocs(
while (side == (*((unsigned char *) src) & 0x80) && length-- > 0)
*dst++ = *src++;
-
+
*from_left -= src - (const char *) *from;
*from = (XPointer) src;
*to_left -= dst - (char *) *to;
@@ -1133,7 +1133,7 @@ cstostr(
|| !((XlcCharSet) args[0] == state->GL_charset
|| (XlcCharSet) args[0] == state->GR_charset))
return -1;
-
+
csptr = *((const char **) from);
string_ptr = *((char **) to);
csstr_len = *from_left;
diff --git a/src/xlibi18n/lcCharSet.c b/src/xlibi18n/lcCharSet.c
index 006a0be2..ceb07095 100644
--- a/src/xlibi18n/lcCharSet.c
+++ b/src/xlibi18n/lcCharSet.c
@@ -50,7 +50,7 @@ _XlcGetCharSet(
{
XlcCharSetList list;
XrmQuark xrm_name;
-
+
xrm_name = XrmStringToQuark(name);
for (list = charset_list; list; list = list->next) {
@@ -71,7 +71,7 @@ _XlcGetCharSetWithSide(
{
XlcCharSetList list;
XrmQuark xrm_encoding_name;
-
+
xrm_encoding_name = XrmStringToQuark(encoding_name);
for (list = charset_list; list; list = list->next) {
@@ -97,7 +97,7 @@ _XlcAddCharSet(
list = (XlcCharSetList) Xmalloc(sizeof(XlcCharSetListRec));
if (list == NULL)
return False;
-
+
list->charset = charset;
list->next = charset_list;
charset_list = list;
@@ -158,7 +158,7 @@ _XlcGetCSValues(XlcCharSet charset, ...)
if (args == (XlcArgList) NULL)
return (char *) NULL;
-
+
ret = get_values(charset, args, num_args);
Xfree(args);
diff --git a/src/xlibi18n/lcConv.c b/src/xlibi18n/lcConv.c
index 2f65ac7b..9acb3519 100644
--- a/src/xlibi18n/lcConv.c
+++ b/src/xlibi18n/lcConv.c
@@ -62,7 +62,7 @@ get_converter(
XlcConverterList list, prev = NULL;
for (list = conv_list; list; list = list->next) {
- if (list->from_lcd == from_lcd && list->to_lcd == to_lcd
+ if (list->from_lcd == from_lcd && list->to_lcd == to_lcd
&& list->from_type == from_type && list->to_type == to_type) {
if (prev && prev != conv_list) { /* XXX */
@@ -95,7 +95,7 @@ _XlcSetConverter(
to_type = XrmStringToQuark(to);
for (list = conv_list; list; list = list->next) {
- if (list->from_lcd == from_lcd && list->to_lcd == to_lcd
+ if (list->from_lcd == from_lcd && list->to_lcd == to_lcd
&& list->from_type == from_type && list->to_type == to_type) {
list->converter = converter;
diff --git a/src/xlibi18n/lcDB.c b/src/xlibi18n/lcDB.c
index 5228a006..31ef9b80 100644
--- a/src/xlibi18n/lcDB.c
+++ b/src/xlibi18n/lcDB.c
@@ -14,7 +14,7 @@
* software without specific, written prior permission.
*
* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
- * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
* NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
* IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
@@ -551,7 +551,7 @@ append_value_list (void)
return 0;
}
-static int
+static int
construct_name(
char *name,
int size)
@@ -836,7 +836,7 @@ f_double_quote(
len = get_quoted_word(str, wordp);
if (len < 1)
goto err;
- if ((parse_info.bufsize + (int)strlen(wordp) + 1)
+ if ((parse_info.bufsize + (int)strlen(wordp) + 1)
>= parse_info.bufMaxSize) {
if (realloc_parse_info(strlen(wordp)+1) == False) {
goto err;
@@ -898,7 +898,7 @@ f_numeric(
len = get_word(p, wordp);
if (len < 1)
goto err;
- if ((parse_info.bufsize + token_len + (int)strlen(wordp) + 1)
+ if ((parse_info.bufsize + token_len + (int)strlen(wordp) + 1)
>= parse_info.bufMaxSize) {
if (realloc_parse_info(token_len + strlen(wordp) + 1) == False)
goto err;
@@ -975,7 +975,7 @@ f_default(
break;
case S_NAME:
case S_VALUE:
- if ((parse_info.bufsize + (int)strlen(wordp) + 1)
+ if ((parse_info.bufsize + (int)strlen(wordp) + 1)
>= parse_info.bufMaxSize) {
if (realloc_parse_info(strlen(wordp) + 1) == False)
goto err;
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
index 65008fa3..5e6f1f53 100644
--- a/src/xlibi18n/lcFile.c
+++ b/src/xlibi18n/lcFile.c
@@ -14,7 +14,7 @@
* software without specific, written prior permission.
*
* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
- * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
* NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
* IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
@@ -266,7 +266,7 @@ xlocaledir(
priv = 0;
} else {
if (seteuid(oldeuid) == -1) {
- /* XXX ouch, coudn't get back to original uid
+ /* XXX ouch, coudn't get back to original uid
what can we do ??? */
_exit(127);
}
@@ -344,7 +344,7 @@ xlocalelibdir(
priv = 0;
} else {
if (seteuid(oldeuid) == -1) {
- /* XXX ouch, coudn't get back to original uid
+ /* XXX ouch, coudn't get back to original uid
what can we do ??? */
_exit(127);
}
@@ -463,11 +463,11 @@ normalize_lcname (const char *name)
{
char *p, *ret;
const char *tmp = name;
-
+
p = ret = Xmalloc(strlen(name) + 1);
if (!p)
return NULL;
-
+
if (tmp) {
while (*tmp && *tmp != '.' && *tmp != '@')
*p++ = *tmp++;
@@ -560,7 +560,7 @@ _XlcResolveLocaleName(
xlocaledir (dir, PATH_MAX);
n = _XlcParsePath(dir, args, NUM_LOCALEDIR);
for (i = 0; i < n; ++i) {
- if ((2 + (args[i] ? strlen (args[i]) : 0) +
+ if ((2 + (args[i] ? strlen (args[i]) : 0) +
strlen (locale_alias)) < PATH_MAX) {
sprintf (buf, "%s/%s", args[i], locale_alias);
name = resolve_name (lc_name, buf, LtoR);
@@ -592,7 +592,7 @@ _XlcResolveLocaleName(
return 1;
}
- /*
+ /*
* pub->siname is in the format <lang>_<terr>.<codeset>, typical would
* be "en_US.ISO8859-1", "en_US.utf8", "ru_RU.KOI-8", or ja_JP.SJIS,
* although it could be ja.SJIS too.
@@ -664,8 +664,8 @@ _XlcLocaleDirName(dir_name, dir_len, lc_name)
xlocaledir (dir, PATH_MAX);
n = _XlcParsePath(dir, args, 256);
for (i = 0; i < n; ++i) {
-
- if ((2 + (args[i] ? strlen(args[i]) : 0) +
+
+ if ((2 + (args[i] ? strlen(args[i]) : 0) +
strlen(locale_alias)) < PATH_MAX) {
sprintf (buf, "%s/%s", args[i], locale_alias);
name = resolve_name(lc_name, buf, LtoR);
@@ -676,13 +676,13 @@ _XlcLocaleDirName(dir_name, dir_len, lc_name)
name = resolve_name (nlc_name, buf, LtoR);
}
}
-
+
/* If name is not an alias, use lc_name for locale.dir search */
if (name == NULL)
name = lc_name;
-
+
/* look at locale.dir */
-
+
target_dir = args[i];
if (!target_dir) {
/* something wrong */
@@ -722,7 +722,7 @@ _XlcLocaleDirName(dir_name, dir_len, lc_name)
} else {
strcat(dir_name, "/");
strncat(dir_name, target_name, dir_len - strlen(dir_name) - 1);
- if (strlen(target_name) >= dir_len - strlen(dir_name) - 1)
+ if (strlen(target_name) >= dir_len - strlen(dir_name) - 1)
dir_name[dir_len - 1] = '\0';
}
if (target_name != lc_name)
@@ -767,8 +767,8 @@ _XlcLocaleLibDirName(dir_name, dir_len, lc_name)
xlocalelibdir (dir, PATH_MAX);
n = _XlcParsePath(dir, args, 256);
for (i = 0; i < n; ++i) {
-
- if ((2 + (args[i] ? strlen(args[i]) : 0) +
+
+ if ((2 + (args[i] ? strlen(args[i]) : 0) +
strlen(locale_alias)) < PATH_MAX) {
sprintf (buf, "%s/%s", args[i], locale_alias);
name = resolve_name(lc_name, buf, LtoR);
@@ -779,13 +779,13 @@ _XlcLocaleLibDirName(dir_name, dir_len, lc_name)
name = resolve_name (nlc_name, buf, LtoR);
}
}
-
+
/* If name is not an alias, use lc_name for locale.dir search */
if (name == NULL)
name = lc_name;
-
+
/* look at locale.dir */
-
+
target_dir = args[i];
if (!target_dir) {
/* something wrong */
@@ -825,7 +825,7 @@ _XlcLocaleLibDirName(dir_name, dir_len, lc_name)
} else {
strcat(dir_name, "/");
strncat(dir_name, target_name, dir_len - strlen(dir_name) - 1);
- if (strlen(target_name) >= dir_len - strlen(dir_name) - 1)
+ if (strlen(target_name) >= dir_len - strlen(dir_name) - 1)
dir_name[dir_len - 1] = '\0';
}
if (target_name != lc_name)
diff --git a/src/xlibi18n/lcGeneric.c b/src/xlibi18n/lcGeneric.c
index dead3056..00fd1df4 100644
--- a/src/xlibi18n/lcGeneric.c
+++ b/src/xlibi18n/lcGeneric.c
@@ -716,7 +716,7 @@ load_generic(
/***** wc_encoding_mask *****/
_XlcGetResource(lcd, "XLC_XLOCALE", "wc_encoding_mask", &value, &num);
if (num > 0) {
- if (string_to_ulong(value[0], &l) == False)
+ if (string_to_ulong(value[0], &l) == False)
goto err;
gen->wc_encode_mask = l;
}
@@ -738,7 +738,7 @@ load_generic(
gen->force_convert_to_mb = True;
else
gen->force_convert_to_mb = False;
-
+
for (i = 0; ; i++) {
CodeSetRec *codeset = NULL;
char cs[16];
@@ -788,7 +788,7 @@ load_generic(
sprintf(name, "%s.%s", cs, "mb_encoding");
_XlcGetResource(lcd, "XLC_XLOCALE", name, &value, &num);
if (num > 0) {
- static struct {
+ static struct {
const char *str;
EncodingType type;
} shifts[] = {
@@ -813,7 +813,7 @@ load_generic(
break;
}
}
- if (strlen (tmp) > sizeof encoding ||
+ if (strlen (tmp) > sizeof encoding ||
string_to_encoding(tmp, encoding) == False)
goto err;
add_parse_list(gen, type, encoding, codeset);
@@ -826,11 +826,11 @@ load_generic(
if (num > 0) {
if (codeset == NULL && (codeset = add_codeset(gen)) == NULL)
goto err;
- if (string_to_ulong(value[0], &l) == False)
+ if (string_to_ulong(value[0], &l) == False)
goto err;
codeset->wc_encoding = l;
}
-
+
/***** codeset.ct_encoding *****/
sprintf(name, "%s.%s", cs, "ct_encoding");
_XlcGetResource(lcd, "XLC_XLOCALE", name, &value, &num);
@@ -950,7 +950,7 @@ load_generic(
/* For VW/UDC end */
}
-
+
read_charset_define(lcd,gen); /* For VW/UDC */
read_segmentconversion(lcd,gen); /* For VW/UDC */
@@ -1031,7 +1031,7 @@ initialize(lcd)
}
/* VW/UDC start 95.01.08 */
-static void
+static void
freeByteM(
CodeSet codeset)
{
@@ -1047,11 +1047,11 @@ freeByteM(
blst[i].byteinfo = NULL;
}
}
- Xfree(codeset->byteM);
+ Xfree(codeset->byteM);
codeset->byteM = NULL;
}
-static void
+static void
freeConversion(
CodeSet codeset)
{
@@ -1078,7 +1078,7 @@ freeConversion(
}
}
-static void
+static void
freeExtdSegment(
CodeSet codeset)
{
@@ -1095,11 +1095,11 @@ freeExtdSegment(
Xfree(ctextseg->area);
ctextseg->area = NULL;
}
- Xfree(codeset->ctextseg);
+ Xfree(codeset->ctextseg);
codeset->ctextseg = NULL;
}
-static void
+static void
freeParseInfo(
CodeSet codeset)
{
@@ -1112,7 +1112,7 @@ freeParseInfo(
Xfree(parse_info->encoding);
parse_info->encoding = NULL;
}
- Xfree(codeset->parse_info);
+ Xfree(codeset->parse_info);
codeset->parse_info = NULL;
}
@@ -1154,7 +1154,7 @@ destroy_SegConv(
seg[i].source_encoding = NULL;
}
if (seg[i].destination_encoding) {
- Xfree(seg[i].destination_encoding);
+ Xfree(seg[i].destination_encoding);
seg[i].destination_encoding = NULL;
}
if (seg[i].conv) {
diff --git a/src/xlibi18n/lcInit.c b/src/xlibi18n/lcInit.c
index 6375de80..eda24c82 100644
--- a/src/xlibi18n/lcInit.c
+++ b/src/xlibi18n/lcInit.c
@@ -71,7 +71,7 @@ Sun Microsystems, Inc. or its licensors is granted.
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDE/Motif PST.
*
- * Modifier: Masayoshi Shimamura FUJITSU LIMITED
+ * Modifier: Masayoshi Shimamura FUJITSU LIMITED
*
*/
/* $XFree86: xc/lib/X11/lcInit.c,v 3.9 2001/11/16 00:52:27 dawes Exp $ */
diff --git a/src/xlibi18n/lcPrTxt.c b/src/xlibi18n/lcPrTxt.c
index 5a781280..64475907 100644
--- a/src/xlibi18n/lcPrTxt.c
+++ b/src/xlibi18n/lcPrTxt.c
@@ -81,7 +81,7 @@ copy_list(
if (is_wide_char) {
wchar_t *wc_text, *wstr, **wstr_list;
-
+
wc_text = (wchar_t *) text;
wstr_list = (wchar_t **) list;
@@ -94,7 +94,7 @@ copy_list(
}
} else {
char *mb_text, *str, **str_list;
-
+
mb_text = (char *) text;
str_list = (char **) list;
diff --git a/src/xlibi18n/lcPubWrap.c b/src/xlibi18n/lcPubWrap.c
index e30a55c0..b579f956 100644
--- a/src/xlibi18n/lcPubWrap.c
+++ b/src/xlibi18n/lcPubWrap.c
@@ -50,7 +50,7 @@ _XGetLCValues(XLCd lcd, ...)
if (args == (XlcArgList) NULL)
return (char *) NULL;
-
+
ret = (*methods->get_values)(lcd, args, num_args);
Xfree(args);
@@ -81,17 +81,17 @@ _XlcCreateLC(
if (lcd->core->name == NULL) {
lcd->core->name = (char*) Xmalloc(strlen(name) + 1);
- if (lcd->core->name == NULL)
+ if (lcd->core->name == NULL)
goto err;
strcpy(lcd->core->name, name);
}
-
+
if (lcd->methods == NULL)
lcd->methods = methods;
if ((*pub_methods->pub.initialize)(lcd) == False)
goto err;
-
+
return lcd;
err:
diff --git a/src/xlibi18n/lcPublic.c b/src/xlibi18n/lcPublic.c
index d8045161..851e2f53 100644
--- a/src/xlibi18n/lcPublic.c
+++ b/src/xlibi18n/lcPublic.c
@@ -61,7 +61,7 @@ static XLCdPublicMethodsRec publicMethods = {
default_string,
NULL,
NULL
- },
+ },
{
NULL,
create,
@@ -218,9 +218,9 @@ initialize(
name = lcd->core->name;
#if !defined(X_LOCALE)
- /*
- * _XlMapOSLocaleName will return the same string or a substring
- * of name, so strlen(name) is okay
+ /*
+ * _XlMapOSLocaleName will return the same string or a substring
+ * of name, so strlen(name) is okay
*/
if ((len = strlen(name)) < sizeof sinamebuf)
siname = sinamebuf;
diff --git a/src/xlibi18n/lcStd.c b/src/xlibi18n/lcStd.c
index e112dcea..1c52013a 100644
--- a/src/xlibi18n/lcStd.c
+++ b/src/xlibi18n/lcStd.c
@@ -135,7 +135,7 @@ _Xlcmbstowcs(
if (lcd == NULL)
return -1;
}
-
+
conv = _XlcOpenConverter(lcd, XlcNMultiByte, lcd, XlcNWideChar);
if (conv == NULL)
return -1;
@@ -290,7 +290,7 @@ _Xwcslen(
while (*wstr_ptr)
wstr_ptr++;
-
+
return wstr_ptr - wstr;
}
diff --git a/src/xlibi18n/lcTxtPr.c b/src/xlibi18n/lcTxtPr.c
index 1f9765f6..82071b10 100644
--- a/src/xlibi18n/lcTxtPr.c
+++ b/src/xlibi18n/lcTxtPr.c
@@ -93,7 +93,7 @@ _XTextListToTextProperty(
buf_len = get_buf_size(is_wide_char, list, count);
if ((buf = (char *) Xmalloc(buf_len)) == NULL)
return XNoMemory;
-
+
switch (style) {
case XStringStyle:
case XStdICCTextStyle:
@@ -116,7 +116,7 @@ _XTextListToTextProperty(
mb_list = (char **) list;
to = buf;
for (i = 0; i < count && buf_len > 0; i++) {
- if (*mb_list)
+ if (*mb_list)
strcpy(to, *mb_list);
else
*to = '\0';
diff --git a/src/xlibi18n/lcUtil.c b/src/xlibi18n/lcUtil.c
index ab1db008..2fbbd021 100644
--- a/src/xlibi18n/lcUtil.c
+++ b/src/xlibi18n/lcUtil.c
@@ -40,7 +40,7 @@
/* Compares two ISO 8859-1 strings, ignoring case of ASCII letters.
Like strcasecmp in an ASCII locale. */
-int
+int
_XlcCompareISOLatin1(
const char *str1,
const char *str2)
@@ -63,7 +63,7 @@ _XlcCompareISOLatin1(
/* Compares two ISO 8859-1 strings, at most len bytes of each, ignoring
case of ASCII letters. Like strncasecmp in an ASCII locale. */
-int
+int
_XlcNCompareISOLatin1(
const char *str1,
const char *str2,
diff --git a/src/xlibi18n/lcWrap.c b/src/xlibi18n/lcWrap.c
index c0cee44b..6ddad050 100644
--- a/src/xlibi18n/lcWrap.c
+++ b/src/xlibi18n/lcWrap.c
@@ -44,15 +44,15 @@ from The Open Group.
* OPEN SOFTWARE FOUNDATION AND TOSHIBA DISCLAIM ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN OR TOSHIBA BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
+ *
+ * M. Collins OSF
*
* Katsuhisa Yano TOSHIBA Corp.
- */
+ */
/* $XFree86: xc/lib/X11/lcWrap.c,v 3.15 2003/04/13 19:22:22 dawes Exp $ */
#ifdef HAVE_CONFIG_H
@@ -236,7 +236,7 @@ _XlcAddLoader(
last = loader_list;
while (last->next)
last = last->next;
-
+
loader->next = NULL;
last->next = loader;
}
@@ -260,9 +260,9 @@ _XOpenLC(
if (name == NULL) {
name = setlocale (LC_CTYPE, (char *)NULL);
#if !defined(X_LOCALE)
- /*
- * _XlMapOSLocaleName will return the same string or a substring
- * of name, so strlen(name) is okay
+ /*
+ * _XlMapOSLocaleName will return the same string or a substring
+ * of name, so strlen(name) is okay
*/
if ((len = strlen(name)) >= sizeof sinamebuf) {
siname = Xmalloc (len + 1);
@@ -358,7 +358,7 @@ _XlcCurrentLC()
if (last_lcd)
_XCloseLC(last_lcd);
-
+
last_lcd = lcd;
return lcd;
@@ -369,10 +369,10 @@ _XrmInitParseInfo(
XPointer *state)
{
XLCd lcd = _XOpenLC((char *) NULL);
-
+
if (lcd == (XLCd) NULL)
return (XrmMethods) NULL;
-
+
return (*lcd->methods->init_parse_info)(lcd, state);
}
@@ -384,7 +384,7 @@ XmbTextPropertyToTextList(
int *count_ret)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -400,7 +400,7 @@ XwcTextPropertyToTextList(
int *count_ret)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -416,7 +416,7 @@ Xutf8TextPropertyToTextList(
int *count_ret)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -433,7 +433,7 @@ XmbTextListToTextProperty(
XTextProperty *text_prop)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -450,7 +450,7 @@ XwcTextListToTextProperty(
XTextProperty *text_prop)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -467,7 +467,7 @@ Xutf8TextListToTextProperty(
XTextProperty *text_prop)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return XLocaleNotSupported;
@@ -480,7 +480,7 @@ XwcFreeStringList(
wchar_t **list)
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return;
@@ -491,10 +491,10 @@ const char *
XDefaultString()
{
XLCd lcd = _XlcCurrentLC();
-
+
if (lcd == NULL)
return (char *) NULL;
-
+
return (*lcd->methods->default_string)(lcd);
}
@@ -555,7 +555,7 @@ _XlcCountVaList(
for (count = 0; va_arg(var, char *); count++)
(void)va_arg(var, XPointer);
-
+
*count_ret = count;
}
@@ -570,7 +570,7 @@ _XlcVaToArgList(
*args_ret = args = (XlcArgList) Xmalloc(sizeof(XlcArg) * count);
if (args == (XlcArgList) NULL)
return;
-
+
for ( ; count-- > 0; args++) {
args->name = va_arg(var, char *);
args->value = va_arg(var, XPointer);
diff --git a/src/xlibi18n/mbWrap.c b/src/xlibi18n/mbWrap.c
index 827c10b1..5c1a9dd7 100644
--- a/src/xlibi18n/mbWrap.c
+++ b/src/xlibi18n/mbWrap.c
@@ -33,7 +33,7 @@ from The Open Group.
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Open Software Foundation
+ * documentation, and that the name of Open Software Foundation
* not be used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Open Software
* Foundation makes no representations about the suitability of this
@@ -43,13 +43,13 @@ from The Open Group.
* OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
- */
+ *
+ * M. Collins OSF
+ */
/* $XFree86: xc/lib/X11/mbWrap.c,v 1.6 2001/12/14 19:54:10 dawes Exp $ */
#ifdef HAVE_CONFIG_H
@@ -122,7 +122,7 @@ XmbDrawImageString(
(char *)text, text_len);
}
-int
+int
XmbTextEscapement(
XFontSet font_set,
_Xconst char *text,
@@ -159,7 +159,7 @@ XmbTextPerCharExtents(
XRectangle *max_logical_extents)
{
return (*font_set->methods->mb_extents_per_char)
- (font_set, (char *)text, text_len,
+ (font_set, (char *)text, text_len,
ink_extents_buffer, logical_extents_buffer,
buffer_size, num_chars, max_ink_extents, max_logical_extents);
}
diff --git a/src/xlibi18n/utf8Wrap.c b/src/xlibi18n/utf8Wrap.c
index bde3f041..8d902509 100644
--- a/src/xlibi18n/utf8Wrap.c
+++ b/src/xlibi18n/utf8Wrap.c
@@ -33,7 +33,7 @@ from The Open Group.
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Open Software Foundation
+ * documentation, and that the name of Open Software Foundation
* not be used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Open Software
* Foundation makes no representations about the suitability of this
@@ -43,13 +43,13 @@ from The Open Group.
* OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
- */
+ *
+ * M. Collins OSF
+ */
/*
* Copyright 2000 by Bruno Haible
*
@@ -144,7 +144,7 @@ Xutf8DrawImageString(
(char *)text, text_len);
}
-int
+int
Xutf8TextEscapement(
XFontSet font_set,
_Xconst char *text,
@@ -181,7 +181,7 @@ Xutf8TextPerCharExtents(
XRectangle *max_logical_extents)
{
return (*font_set->methods->utf8_extents_per_char)
- (font_set, (char *)text, text_len,
+ (font_set, (char *)text, text_len,
ink_extents_buffer, logical_extents_buffer,
buffer_size, num_chars, max_ink_extents, max_logical_extents);
}
diff --git a/src/xlibi18n/wcWrap.c b/src/xlibi18n/wcWrap.c
index a0314da7..41161d59 100644
--- a/src/xlibi18n/wcWrap.c
+++ b/src/xlibi18n/wcWrap.c
@@ -44,13 +44,13 @@ from The Open Group.
* OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
- * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
- */
+ *
+ * M. Collins OSF
+ */
/* $XFree86: xc/lib/X11/wcWrap.c,v 1.6 2001/12/14 19:54:11 dawes Exp $ */
#ifdef HAVE_CONFIG_H
@@ -122,7 +122,7 @@ XwcDrawImageString(
text, text_len);
}
-int
+int
XwcTextEscapement(
XFontSet font_set,
_Xconst wchar_t *text,
@@ -156,8 +156,8 @@ XwcTextPerCharExtents(
XRectangle *max_ink_extents,
XRectangle *max_logical_extents)
{
- return (*font_set->methods->wc_extents_per_char)
- (font_set, text, text_len,
+ return (*font_set->methods->wc_extents_per_char)
+ (font_set, text, text_len,
ink_extents_buffer, logical_extents_buffer,
buffer_size, num_chars, max_ink_extents, max_logical_extents);
}