Skip to content

Commit 47b28c0

Browse files
committed
Addressing comments
1 parent 58d7c23 commit 47b28c0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/ini.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,7 @@ void handle_address_change(DWORD dwCurrAddress, DWORD dwPrevAddress, BOOL *bVali
293293
}
294294

295295
void handle_xdata_mode_switch(BYTE byCurrXMode, BYTE *byPrevXMode, BOOL *bValidDataOffset, BYTE *byDataLength, WORD *wDataLengthOffset, BYTE *m_pBinConfig, WORD *m_wDataOffset) {
296-
/* Update the xdata mode only if the current mode is not same
297-
* of the previous mode */
298-
// Take care of xdata mode switching
296+
// Update the xdata mode only if the current mode is not same of the previous mode
299297
if (byCurrXMode != *byPrevXMode)
300298
{
301299
if (*bValidDataOffset)
@@ -434,8 +432,8 @@ int switchtec_convert_ini2bin(FILE *szINIFileName, char *pclog ,BYTE *m_pBinConf
434432
char szKeyList[KEY_BUF_SIZE];
435433
WORD m_wDataOffset = 0;
436434
char szKeyEntry[KEY_BUF_SIZE];
437-
/* xdata mode is added to the binary only on byPrevXMode != byCurrXMode.
438-
* So, initializing the Previous xdata mode to SET_XMODE_NONE */
435+
// xdata mode is added to the binary only on byPrevXMode != byCurrXMode.
436+
// So, initializing the Previous xdata mode to SET_XMODE_NONE
439437
BYTE byPrevXMode = SET_XMODE_NONE;
440438
BYTE byCurrXMode = SET_XMODE_NONE;
441439
unsigned int nTemp = 0;

0 commit comments

Comments
 (0)