harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
Subject svn commit: r565174 - /harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c
Date Sun, 12 Aug 2007 22:13:01 GMT
Author: dlydick
Date: Sun Aug 12 15:13:01 2007
New Revision: 565174

URL: http://svn.apache.org/viewvc?view=rev&rev=565174
Log:
Generalized several command line parameters for use
by any program.  Added functions jvmutil_versionmsg(),
jvmutil_copyrightmsg(), and jvmutil_licensemsg() for
this purpose.

Modified:
    harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c

Modified: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c?view=diff&rev=565174&r1=565173&r2=565174
==============================================================================
--- harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c (original)
+++ harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/jvmutil.c Sun Aug 12 15:13:01 2007
@@ -130,6 +130,74 @@
 
 
 /*!
+ * @brief Show program version message to standard output.
+ *
+ *
+ * @b Parameters: @link #rvoid rvoid@endlink
+ *
+ *
+ * @returns @link #rvoid rvoid@endlink
+ *
+ */
+rvoid jvmutil_versionmsg(rvoid)
+{
+    ARCH_FUNCTION_NAME(jvmutil_versionmsg);
+
+    fprintfLocalStdout("%s\n", CONFIG_RELEASE_LEVEL);
+
+    return;
+
+} /* END of jvmutil_versionmsg() */
+
+
+/*!
+ * @brief Show program copyright message to standard output.
+ *
+ *
+ * @b Parameters: @link #rvoid rvoid@endlink
+ *
+ *
+ * @returns @link #rvoid rvoid@endlink
+ *
+ */
+rvoid jvmutil_copyrightmsg(rvoid)
+{
+    ARCH_FUNCTION_NAME(jvmutil_copyrightmsg);
+
+    fprintfLocalStdout("\n%s:  %s, version %s\n%s\n\n",
+                       CONFIG_PROGRAM_NAME,
+                       CONFIG_PROGRAM_DESCRIPTION,
+                       CONFIG_RELEASE_LEVEL,
+                       ARCH_COPYRIGHT_TEXT_APACHE);
+
+    return;
+
+} /* END of jvmutil_copyrightmsg() */
+
+
+/*!
+ * @brief Show program software license message to standard output.
+ *
+ *
+ * @b Parameters: @link #rvoid rvoid@endlink
+ *
+ *
+ * @returns @link #rvoid rvoid@endlink
+ *
+ */
+rvoid jvmutil_licensemsg(rvoid)
+{
+    ARCH_FUNCTION_NAME(jvmutil_licensemsg);
+
+    jvmutil_copyrightmsg();
+    fprintfLocalStdout("%s\n\n", ARCH_LICENSE_TEXT_APACHE);
+
+    return;
+
+} /* END of jvmutil_licensemsg() */
+
+
+/*!
  * @name Stack dump utilities.
  *
  * @brief Print contents of a thread's stack to standard error.



Mime
View raw message