Hi All,

Here is the (not very long) list of UINT Windows type usage
in non-Windows Harbour source code. I'd like to ask developers
to take a look at it and change to use some ANSI C types
wherever possible.

---
contrib/rddsql/hbrddsql.h:167:   UINT                  Leaf;
contrib/rddsql/hbrddsql.h:168:   UINT                  KeyCount;
contrib/rddsql/hbrddsql.h:176:   UINT                  Leaf;
contrib/rddsql/hbrddsql.h:177:   UINT                  KeyCount;
contrib/rddsql/hbrddsql.h:193:   UINT                 uiKeyLen;
    /* Length of key */
contrib/rddsql/hbrddsql.h:194:   UINT                 uiTotalLen;
    /* Total length of key structure */
contrib/rddsql/hbrddsql.h:204:   UINT                 CurPos;
contrib/rddsql/sqlmix.c:254:static int hb_mixKeyCompareValue( PMIXTAG
pTag, PMIXKEY pKey1, PMIXKEY pKey2, UINT uiLen )
contrib/rddsql/sqlmix.c:257:   UINT   ui, uiSize;
contrib/rddsql/sqlmix.c:294:static int hb_mixKeyCompare( PMIXTAG pTag,
PMIXKEY pKey1, PMIXKEY pKey2, UINT uiLen )
contrib/rddsql/sqlmix.c:297:   UINT   ui, uiSize;
contrib/rddsql/sqlmix.c:369:   UINT     i;
contrib/rddsql/sqlmix.c:416:static UINT hb_mixTagNodeParentIndex(
PMIXNODE pNode )
contrib/rddsql/sqlmix.c:419:   UINT      ui;
contrib/rddsql/sqlmix.c:428:   return (UINT) -1;
contrib/rddsql/sqlmix.c:432:static int hb_mixTagFindKey( PMIXTAG pTag,
PMIXKEY pKey, UINT uiLen, PMIXNODE* ppNode, UINT* puiPos, BOOL
fValidKey )
contrib/rddsql/sqlmix.c:435:   UINT       ui;
contrib/rddsql/sqlmix.c:491:static void hb_mixTagSetCurrent( PMIXTAG
pTag, PMIXNODE pNode, UINT uiPos )
contrib/rddsql/sqlmix.c:525:      UINT       ui;
contrib/rddsql/sqlmix.c:540:static void hb_mixTagAddKeyNode( PMIXTAG
pTag, PMIXNODE pNode, UINT uiPos, PMIXKEY pKey, PMIXNODE pChildLeft,
PMIXNODE pChildRight )
contrib/rddsql/sqlmix.c:556:static void hb_mixTagAddKeyPos( PMIXTAG
pTag, PMIXNODE pNode, UINT uiPos, PMIXKEY pKey, PMIXNODE pChildLeft,
PMIXNODE pChildRight )
contrib/rddsql/sqlmix.c:559:   UINT       j, k;
contrib/rddsql/sqlmix.c:668:   UINT       ui;
contrib/rddsql/sqlmix.c:682:static void hb_mixTagDelKeyNode( PMIXTAG
pTag, PMIXNODE pNode, UINT uiPos )
contrib/rddsql/sqlmix.c:695:   UINT       i, j;
contrib/rddsql/sqlmix.c:805:static void hb_mixTagDelKeyPos( PMIXTAG
pTag, PMIXNODE pNode, UINT uiPos )
contrib/rddsql/sqlmix.c:831:   UINT       ui;
contrib/rddsql/sqlmix.c:879:static PMIXTAG hb_mixTagCreate( const
char* szTagName, PHB_ITEM pKeyExpr, PHB_ITEM pKeyItem, PHB_ITEM
pForItem, PHB_ITEM pWhileItem, BYTE bType, UINT uiKeyLen, SQLMIXAREAP
pArea )
contrib/rddsql/sqlmix.c:1016:      UINT    ui;
contrib/rddsql/sqlmix.c:1098:   UINT         uiPos, uiPos2;
contrib/rddsql/sqlmix.c:1265:   UINT      ui;
contrib/rddsql/sqlmix.c:1309:      UINT        uiPos = pTag->CurPos;
contrib/rddsql/sqlmix.c:1345:      UINT       ui, uiPos = pTag->CurPos;
contrib/rddsql/sqlmix.c:1441:      UINT      uiKeyLen, ui;
contrib/rddsql/sqlmix.c:1454:         uiKeyLen = (UINT) hb_itemGetCLen( pItem );
contrib/xhb/hbserv.c:116:   UINT sig;
contrib/xhb/hbserv.c:117:   UINT subsig;
contrib/xhb/hbserv.c:118:   UINT translated;
contrib/xhb/hbserv.c:121:static int s_translateSignal( UINT sig, UINT subsig );
contrib/xhb/hbserv.c:157:   UINT uiMask;
contrib/xhb/hbserv.c:158:   UINT uiSig;
contrib/xhb/hbserv.c:180:   uiSig = ( UINT ) s_translateSignal( ( UINT
) sig, 0 );
contrib/xhb/hbserv.c:185:      uiMask = ( UINT ) hb_arrayGetNI( pFunction, 1 );
contrib/xhb/hbserv.c:363:static UINT s_uiErrorMode = 0;
contrib/xhb/hbserv.c:415:   UINT uiSig, uiMask;
contrib/xhb/hbserv.c:431:   uiSig = ( UINT ) s_translateSignal( ( UINT
) type, ( UINT ) sig );
contrib/xhb/hbserv.c:436:      uiMask = ( UINT ) hb_arrayGetNI( pFunction, 1 );
contrib/xhb/hbserv.c:690:static int s_translateSignal( UINT sig, UINT subsig )
include/hbcomp.h:353:extern void hb_compI18nAdd( HB_COMP_DECL, const
char* szText, const char* szContext, const char * szModule, UINT
uiLine );
include/hbcomp.h:354:extern void hb_compI18nAddPlural( HB_COMP_DECL,
const char** szTexts, ULONG ulCount, const char* szContext, const char
* szModule, UINT uiLine );
include/hbcompdf.h:589:   UINT           uiLine;
include/hbcompdf.h:597:   UINT           uiPlurals;
include/hbcompdf.h:600:   UINT           uiPosCount;
source/compiler/compi18n.c:78:         UINT ui;
source/compiler/compi18n.c:104:
    const char * szModule, UINT uiLine )
source/compiler/compi18n.c:108:   UINT           uiLeft, uiRight, uiMiddle;
source/compiler/compi18n.c:186:                     const char *
szModule, UINT uiLine )
source/compiler/compi18n.c:191:void hb_compI18nAddPlural(
HB_COMP_DECL, const char ** szTexts, ULONG ulCount, const char*
szContext, const char * szModule, UINT uiLine )
source/compiler/compi18n.c:259:   UINT ui = 0;
source/compiler/compi18n.c:286:   UINT             uiIndex, uiLine;
source/rdd/wacore.c:415:   else if( iArea >= 1 && ( UINT ) iArea < (
UINT ) pRddInfo->uiWaNumMax )
source/rtl/filebuf.c:89:   UINT           uiLocks;
source/rtl/filebuf.c:90:   UINT           uiSize;
source/rtl/filebuf.c:103:   UINT uiPos = 0;
source/rtl/filebuf.c:165:static UINT hb_fileFindOffset( PHB_FILE
pFile, HB_FOFFSET ulOffset )
source/rtl/filebuf.c:167:   UINT uiFirst, uiLast, uiMiddle;
source/rtl/filebuf.c:187:static void hb_fileInsertLock( PHB_FILE
pFile, UINT uiPos,
source/rtl/filebuf.c:205:static void hb_fileDeleteLock( PHB_FILE
pFile, UINT uiPos )
source/rtl/filebuf.c:222:   UINT uiPos;
source/rtl/filebuf.c:267:   UINT uiPos;
source/rtl/filesys.c:240:                                 UINT uiDummy; \
source/rtl/filesys.c:2729:      UINT uiSave, uiNewDrive;
source/rtl/filesys.c:2737:      if( ( UINT ) nDrive == uiNewDrive )
source/rtl/filesys.c:2766:   UINT uiResult;
source/rtl/filesys.c:2819:      UINT uiSave, uiNewDrive;
source/rtl/filesys.c:2826:      if( ( UINT ) nDrive != uiNewDrive )
source/rtl/hbinet.c:1832:         Socket->remote.sin_addr.s_addr = ( *
( UINT * ) Host->h_addr_list[ 0 ] );
source/rtl/transfrm.c:660:         UINT nFor;
source/rtl/transfrm.c:761:         UINT nFor;
source/vm/classes.c:1390:       ( UINT ) uiMethod < ( UINT )
hb_clsMthNum( s_pClasses[ uiClass ] ) )
source/vm/dynsym.c:100:static PHB_DYNS hb_dynsymInsert( PHB_SYMB
pSymbol, UINT uiPos )
source/vm/dynsym.c:136:static PHB_DYNS hb_dynsymPos( const char *
szName, UINT * puiPos )
source/vm/dynsym.c:138:   UINT uiFirst, uiLast, uiMiddle;
source/vm/dynsym.c:194:   UINT uiFirst, uiLast;
source/vm/dynsym.c:205:      UINT uiMiddle = ( uiFirst + uiLast ) >> 1;
source/vm/dynsym.c:244:   UINT uiPos;
source/vm/dynsym.c:364:   UINT uiPos;
source/vm/dynsym.c:619:   UINT uiPos = 0;
source/vm/fm.c:938:static char * hb_mem2str( char * membuffer, void *
pMem, UINT uiSize )
source/vm/fm.c:941:   UINT uiIndex, uiPrintable;
---

Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to