Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15214
Modified Files:
pfi-library.nsh
Log Message:
Make future maintenance a little easier.
Index: pfi-library.nsh
===================================================================
RCS file: /cvsroot/popfile/windows/pfi-library.nsh,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** pfi-library.nsh 7 Nov 2006 15:38:46 -0000 1.69
--- pfi-library.nsh 3 Dec 2006 15:24:36 -0000 1.70
***************
*** 59,63 ****
#--------------------------------------------------------------------------
! !define C_PFI_LIBRARY_VERSION "0.1.14"
#--------------------------------------------------------------------------
--- 59,63 ----
#--------------------------------------------------------------------------
! !define C_PFI_LIBRARY_VERSION "0.1.15"
#--------------------------------------------------------------------------
***************
*** 4102,4106 ****
Function ${UN}PFI_StrCheckDecimal
! !define DECIMAL_DIGIT "0123456789"
Exch $0 ; The input string
--- 4102,4107 ----
Function ${UN}PFI_StrCheckDecimal
! !define DECIMAL_DIGIT "0123456789" ; accept only these digits
! !define BAD_OFFSET 10 ; length of DECIMAL_DIGIT string
Exch $0 ; The input string
***************
*** 4124,4128 ****
StrCpy $4 $5 1 $3 ; Extract next "valid" character (from "validity check" string)
StrCmp $2 $4 0 next_valid_char
! IntCmp $3 10 invalid 0 invalid ; If match is with the char we added, input string is bad
StrCpy $1 $1$4 ; Add "valid" character to the result
goto next_input_char
--- 4125,4129 ----
StrCpy $4 $5 1 $3 ; Extract next "valid" character (from "validity check" string)
StrCmp $2 $4 0 next_valid_char
! IntCmp $3 ${BAD_OFFSET} invalid 0 invalid ; If match is with the char we added, input is bad
StrCpy $1 $1$4 ; Add "valid" character to the result
goto next_input_char
|