2012-11-21 15:36 UTC+0100 Viktor Szakats (harbour syenar.net)

* contrib/hbwin/win_regc.c
    % merged UNICODE/non-UNICODE branch by using sizeof().
      Checkme.

  * contrib/hbzebra/datamtrx.c
    * minor formatting

  * contrib/xhb/freadlin.c
    * deleted excessive ()
This commit is contained in:
Viktor Szakats
2012-11-21 14:37:40 +00:00
parent 91f4eceed8
commit 66e541e8ae
4 changed files with 20 additions and 10 deletions

View File

@@ -10,6 +10,17 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2012-11-21 15:36 UTC+0100 Viktor Szakats (harbour syenar.net)
* contrib/hbwin/win_regc.c
% merged UNICODE/non-UNICODE branch by using sizeof().
Checkme.
* contrib/hbzebra/datamtrx.c
* minor formatting
* contrib/xhb/freadlin.c
* deleted excessive ()
2012-11-21 15:05 UTC+0100 Viktor Szakats (harbour syenar.net)
* contrib/hbzebra/code128.c
* contrib/hbzebra/pdf417.c

View File

@@ -143,9 +143,7 @@ HB_FUNC( WIN_REGQUERYVALUEEX )
lpValue,
&dwSize ) == ERROR_SUCCESS )
{
#if defined( UNICODE )
dwSize >>= 1;
#endif
dwSize /= sizeof( TCHAR );
HB_STORSTRLEN( ( LPTSTR ) lpValue, dwSize, 5 );
}
@@ -225,9 +223,7 @@ HB_FUNC( WIN_REGSETVALUEEX )
++nValueLen;
#if defined( UNICODE )
nValueLen *= 2;
#endif
nValueLen *= sizeof( TCHAR );
hb_retl( RegSetValueEx( ( HKEY ) hb_parptr( 1 ),
lpKey,

View File

@@ -364,7 +364,8 @@ static void _datamatrix_do_placement( PHB_BITBUFFER pBits, unsigned char * pCW,
_datamatrix_place( pArr, iPRow, iPCol, iR, iC, i++ );
iR -= 2;
iC += 2;
} while( iR >= 0 && iC < iPCol );
}
while( iR >= 0 && iC < iPCol );
iR++;
iC += 3;
@@ -375,11 +376,13 @@ static void _datamatrix_do_placement( PHB_BITBUFFER pBits, unsigned char * pCW,
_datamatrix_place( pArr, iPRow, iPCol, iR, iC, i++ );
iR += 2;
iC -= 2;
} while( iR < iPRow && iC >= 0 );
}
while( iR < iPRow && iC >= 0 );
iR += 3;
iC++;
} while( iR < iPRow || iC < iPCol );
}
while( iR < iPRow || iC < iPCol );
if( pArr[ iPRow * iPCol - 1 ] == 0 )
pArr[ iPRow * iPCol - 1 ] = pArr[ iPRow * iPCol - iPCol - 2 ] = 1;

View File

@@ -155,7 +155,7 @@ static char * hb_fsReadLine( HB_FHANDLE hFileHandle, HB_ISIZ * plBuffLen, const
nTries++;
}
while( ( ! *pbFound ) && nRead > 0 );
while( ! *pbFound && nRead > 0 );
return pBuff;
}