[Vala] [Genie] simple Hello world.
- From: Diego Jacobi <jacobidiego gmail com>
- To: vala-list gnome org
- Subject: [Vala] [Genie] simple Hello world.
- Date: Sat, 2 May 2009 21:24:32 +0200
Hi. I find Genie, perfect for me, but i ask my self sometimes about
certain stuff that i can not answer, like for this simple hello world:
[indent=2]
init
print "Hello World"
This produces the next main.c:
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
void _main (char** args, int args_length1);
void _main (char** args, int args_length1) {
g_print ("Hello World\n");
}
int main (int argc, char ** argv) {
g_type_init ();
_main (argv, argc);
return 0;
}
Can i ask why string.h and stdlib.h are included?
Arent all of thoose wrapped by glib to make glib based applications
more uniform in different arquitectures?
Cheers.
Diego
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]