Modify the PMT usage

Modify the PMT usage

--- TimeValue/PMT.cpp
+++ TimeValue/PMT.cpp
@@ -3,7 +3,7 @@

 void PrintUsage(char *name)
 {
-	cout << name << " <rate> <nper> <pmt> [pv] [type]" << endl;
+	cout << name << " <rate> <nper> <pv> [fv] [type]" << endl;
 }

 int main(int argc, char *argv[])


defined snprinf for windows

defined snprinf for windows

git-svn-id: 6606a84a1d01fa02befc1ed30c516e387236735c@8 952c4003-4f3d-4dae-b0a9-05f14f9418f2

--- clunk_ex.cpp
+++ clunk_ex.cpp
@@ -2,6 +2,12 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+
+#if defined _WINDOWS
+#    ifndef snprintf
+#        define snprintf _snprintf
+#    endif
+#endif

 void clunk::Exception::add_message(const char *file, int line) {
 	char buf[1024];


Allow to create projects with dashes in name (being replaced by underscores in classes names)

--- cmd/main.cpp
+++ cmd/main.cpp
@@ -429,7 +429,9 @@

 bool createApplication(const QString &name)
 {
-    if (name.contains(QRegularExpression(QStringLiteral("\\W"))) || name.contains(QRegularExpression(QStringLiteral("^\\d")))) {
+    QString nameWithUnderscore = name;
+    nameWithUnderscore.replace(QLatin1Char('-'), QLatin1Char('_'));
+    if (nameWithUnderscore.contains(QRegularExpression(QStringLiteral("\\W"))) || nameWithUnderscore.contains(QRegularExpression(QStringLiteral("^\\d")))) {
         qDebug() << "Error: Invalid Application name.";
         return false;
     }
@@ -440,7 +442,7 @@
         return false;
     }

-    if (!buildProjectCMakeLists(name % QStringLiteral("/CMakeLists.txt"), name)) {
+    if (!buildProjectCMakeLists(name % QStringLiteral("/CMakeLists.txt"), nameWithUnderscore)) {
         return false;
     }

@@ -457,7 +459,7 @@
         return false;
     }

-    if (!buildSrcCMakeLists(name % QLatin1String("/src/CMakeLists.txt"), name)) {
+    if (!buildSrcCMakeLists(name % QLatin1String("/src/CMakeLists.txt"), nameWithUnderscore)) {
         return false;
     }

@@ -473,11 +475,13 @@
         return false;
     }

-    if (!buildApplicationHeader(name % QLatin1String("/src/") % name.toLower() % QLatin1String(".h"), name)) {
-        return false;
-    }
-
-    if (!buildApplicationImplementation(name % QLatin1String("/src/") % name.toLower() % QLatin1String(".cpp"), name)) {
+    if (!buildApplicationHeader(name % QLatin1String("/src/") % name.toLower() % QLatin1String(".h"),
+                                nameWithUnderscore)) {
+        return false;
+    }
+
+    if (!buildApplicationImplementation(name % QLatin1String("/src/") % name.toLower() % QLatin1String(".cpp"),
+                                        nameWithUnderscore)) {
         return false;
     }