Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16661
Modified Files:
Tag: b0_22_2
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.53.4.4
retrieving revision 1.53.4.5
diff -C2 -d -r1.53.4.4 -r1.53.4.5
*** pfi-library.nsh 29 Aug 2006 16:02:57 -0000 1.53.4.4
--- pfi-library.nsh 3 Dec 2006 15:28:36 -0000 1.53.4.5
***************
*** 58,62 ****
#--------------------------------------------------------------------------
! !define C_PFI_LIBRARY_VERSION "0.2.0"
#--------------------------------------------------------------------------
--- 58,62 ----
#--------------------------------------------------------------------------
! !define C_PFI_LIBRARY_VERSION "0.2.1"
#--------------------------------------------------------------------------
***************
*** 4084,4088 ****
Function ${UN}PFI_StrCheckDecimal
! !define DECIMAL_DIGIT "0123456789"
Exch $0 ; The input string
--- 4084,4089 ----
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
***************
*** 4106,4110 ****
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
--- 4107,4111 ----
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
|