From d543ff7f6c155952cb50c2bd1589546265004b3a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 22 Feb 2007 03:09:19 +0000 Subject: 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 --- config.d.in | 4 ++-- src/helloworld.d | 3 ++- 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) -- cgit v1.1-32-gdbae