summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mszulecki2007-02-22 03:09:19 +0000
committerGravatar mszulecki2007-02-22 03:09:19 +0000
commitd543ff7f6c155952cb50c2bd1589546265004b3a (patch)
treec84387d1697f7a6bdce228ac76a3a4b6b1be15c5
parente781c4aa8ae7c7f6c6a4092a35b74af8e347a390 (diff)
downloaddskel-d543ff7f6c155952cb50c2bd1589546265004b3a.tar.gz
dskel-d543ff7f6c155952cb50c2bd1589546265004b3a.tar.bz2
Fix config.d.in types and use it in the helloworld application.
git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@11 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
-rw-r--r--config.d.in4
-rwxr-xr-xsrc/helloworld.d3
2 files changed, 4 insertions, 3 deletions
diff --git a/config.d.in b/config.d.in
index 8d67a4e..0e84400 100644
--- a/config.d.in
+++ b/config.d.in
@@ -1,7 +1,7 @@
/* @configure_input@ */
-module system.config;
+module config;
-typedef const char[] s;
+alias char[] s;
s PACKAGE = "@PACKAGE@";
s PACKAGE_NAME = "@PACKAGE_NAME@";
diff --git a/src/helloworld.d b/src/helloworld.d
index df15b0b..e1113cc 100755
--- a/src/helloworld.d
+++ b/src/helloworld.d
@@ -1,8 +1,9 @@
+import config;
import std.stdio;
void main(char[][] args)
{
- writefln("Hello World, Reloaded");
+ writefln("Hello World, Version: " ~ config.VERSION);
// auto type inference and built-in foreach
foreach (argc, argv; args)