From bb3ea92b54e016afaf5ea31ebd8a321d329bf2a4 Mon Sep 17 00:00:00 2001 From: oldfaber Date: Fri, 30 Nov 2012 15:26:40 +0100 Subject: [PATCH] Fixed style issues. --- src/win32/README.win32 | 6 ++++-- src/win32/configure.js | 31 ++++++++++++------------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/win32/README.win32 b/src/win32/README.win32 index e1d8b61..60a7008 100644 --- a/src/win32/README.win32 +++ b/src/win32/README.win32 @@ -12,6 +12,8 @@ See ../../README.md config.h and ../modbus-version.h are generated using configure.js. Run - cscript configurs.js -to generate these files. + cscript configure.js +or + wscript configure.js +or double click configure.js to generate these files. diff --git a/src/win32/configure.js b/src/win32/configure.js index daa2f77..fe99f93 100644 --- a/src/win32/configure.js +++ b/src/win32/configure.js @@ -27,8 +27,7 @@ var error = 0; /* Helper function, transforms the option variable into the 'Enabled' or 'Disabled' string. */ -function boolToStr(opt) -{ +function boolToStr(opt) { if (opt == false) return "no"; else if (opt == true) @@ -39,8 +38,7 @@ function boolToStr(opt) /* Helper function, transforms the argument string into a boolean value. */ -function strToBool(opt) -{ +function strToBool(opt) { if (opt == 0 || opt == "no") return false; else if (opt == 1 || opt == "yes") @@ -50,8 +48,7 @@ function strToBool(opt) } /* Displays the details about how to use this script. */ -function usage() -{ +function usage() { var txt; txt = "Usage:\n"; txt += " cscript " + WScript.ScriptName + " \n"; @@ -59,26 +56,25 @@ function usage() txt += "Options can be specified in the form