undef_ref added

This commit is contained in:
Kolan Sh 2013-02-06 18:27:37 +04:00
parent 2048757054
commit 4c5033e8d5
5 changed files with 16 additions and 0 deletions

4
vala/undef_ref/a.vala Normal file
View File

@ -0,0 +1,4 @@
static void main () {
stdout.printf ("Hello world!\n");
func ();
}

1
vala/undef_ref/b.h Normal file
View File

@ -0,0 +1 @@
void func (void) G_GNUC_CONST;

1
vala/undef_ref/b.vapi Normal file
View File

@ -0,0 +1 @@
void func ();

7
vala/undef_ref/test_lin.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# in one step
#valac -C a.vala --vapidir=. --pkg=b -X -fPIC && gcc -fPIC -shared -o libaaa.so a.vala.o -lm
valac -C a.vala --vapidir=. --pkg=b -X -fPIC
gcc `pkg-config --cflags glib-2.0` -fPIC -shared -o libaaa.so a.c -lm `pkg-config --libs glib-2.0`

3
vala/undef_ref/test_win.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# ???