[Vala] Help with manual binding vapi for old C lib that uses only ASCII.

2020-01-10 Thread Jason Martin via vala-list
In libgvc.vapi : [CCode (cname = "gvLayout")] public int layout (Graph graph, [CCode (type = "char*")] string layout_engine); Does [CCode (type = "char*")] limit string to ascii only? If not should I just use char*? ___ vala-list mailing list

[Vala] Vala syntax file for Midnight Commander editor

2019-06-19 Thread Jason Martin via vala-list
https://raw.githubusercontent.com/agrellum/NetRexx-Samples/master/vala.syntax See this post to add it. https://superuser.com/questions/386904/is-it-possible-and-how-make-user-customization-for-syntax-highlighting-in-buil ___ vala-list mailing list

Re: [Vala] Why is 77 greater than 4294967295?

2018-11-23 Thread Jason Martin via vala-list
You can look at the old code base here. https://sourceforge.net/p/netrexx/code/ci/netrexx4android/tree/GObjexx.tar.gz?format=raw Just want to get it out there and working. Can not think and reason like I used too. ___ vala-list mailing list

Re: [Vala] Why is 77 greater than 4294967295?

2018-11-23 Thread Jason Martin via vala-list
Thanks, for the replys. Finishing a Vala project, I started 3 years ago. The Rexx data type and functions for the GObject system. Just writing unit tests and working out bugs. I am working with unichar in Vala. From Wikipedia, "Unicode 11.0, contains a repertoire of 137,439 characters" -

[Vala] Why is 77 greater than 4294967295?

2018-11-22 Thread Jason Martin via vala-list
// simple vala code void main () {     long i = 77;     stdout.printf ("%ld\n", i); // outputs 77     stdout.printf ("%u\n", uint.MIN); // outputs 0     if (i < uint.MIN) {         stdout.printf ("Never made it here.\n");     }     stdout.printf ("%u\n", uint.MAX); // outputs 4294967295 //

[Vala] valadoc - How do I avoid this.

2018-09-14 Thread Jason Martin via vala-list
error: unexpected token:   * The '//' operator. using this code documentation /**  * The '//' operator.  */ ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Vala 0.36.7 now in OpenIndiana Hipster

2017-11-10 Thread Jason Martin
#pkg install pkg://openindiana.org/developer/vala Thanks for answering my questions. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] testrunner.sh on OpenIndiana

2017-11-08 Thread Jason Martin
ot convert message: Conversion from character set 'UTF-8' to '646' is not supported Conversion from character set '646' to 'UTF-8' is not supported Terminated Could be how iconv, glib or dbus is built or setup here. On Wed, Nov 8, 2017 at 9:54 AM, Jason Martin <agrel...@gmail.com> wrote: >

Re: [Vala] testrunner.sh on OpenIndiana

2017-11-08 Thread Jason Martin
This is my latest patch with some things removed. CC fixed in oi-userland Makefile and removed more cflags to build 32 and 64 https://github.com/agrellum/oi-userland/blob/vala/components/developer/vala/patches/tests.patch Four tests failed but I now have test snapshots setup.

Re: [Vala] testrunner.sh on OpenIndiana

2017-11-01 Thread Jason Martin
All but three pass now. My patch below. Comments might help someone. /control-flow/bug736774-2 ERROR:/export/home/agrellum/vala-0.36.6/tests/_test/main.c:111:control_flow_bug736774_2_main: assertion failed: (keep != "test") control_flow.bug736774_2.check: line 2: 17168 Abort

[Vala] testrunner.sh on OpenIndiana

2017-10-26 Thread Jason Martin
Should test enum-string-marshalling.vala include a Packages: statement? gio-unix-2.0 posix I got my tests somewhat working but I had to create a run one at a time script. #!/usr/bin/env bash for testfile in "$@"; do echo $testfile ./testone.sh $testfile done 244 Pass OK. The ones

Re: [Vala] New test framework updates.

2017-10-24 Thread Jason Martin
Just a update: I settled with just "printf" and not "env printf" in the patch for testrunner.sh System has multiple compilers and I found that out using by adding valac -v flag in VALAFLAGS in testrunner.sh Had to add VALAFLAGS="$VALAFLAGS --cc=gcc ; this might be a flag

Re: [Vala] New test framework updates.

2017-10-17 Thread Jason Martin
I have replaced echo -n -e or echo -e and I think that works. (patch below) And I get a _test dir under tests but I do not think the check files are right. Example: annotations.deprecated.check set -e ./test /annotations/deprecated And my main.vala has all tests combined in one big program.

Re: [Vala] New test framework updates.

2017-10-14 Thread Jason Martin
It looks like the first echo -n problem is on line 222 in testrunner.sh if $VALAC $VALAFLAGS -o test$EXEEXT $([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg") main.vala &>log; then TEST: Building... FAIL Unknown option -n

[Vala] New test framework updates.

2017-10-14 Thread Jason Martin
Trying to update to vala-0.36.6 from vala-0.36.4 but on solaris or sunos: echo takes no options. >From checkall: echo -n -e " /basic-types/integers: \033[72G" ((all++)) if bash basic_types.integers.check &>log; then echo -e "\033[0;32mOK\033[m" else ((fail++)) echo -e

Re: [Vala] Vala on OpenIndiana Updated

2017-08-16 Thread Jason Martin
GLib.Math.pow10.vala GLib.Math.pow10f.vala These functions are missing on some platforms: Some of the core dumps are truly meant to be core dumps. Maybe a good vala example (someone more qualified than me) of trapping signals would be handy? ___

[Vala] Vala on OpenIndiana Updated

2017-08-14 Thread Jason Martin
With help; got developer/vala (openindiana.org) 0.36.4-2017.0.0.2 into https://github.com/OpenIndiana/oi-userland 940 examples from https://github.com/valadoc/valadoc-org 62 examples from https://github.com/acmeism/RosettaCodeData 974 PASSED Skipped --pkg gee-1.0 and some more examples Still

Re: [Vala] Vala on OpenIndiana or Solaris

2017-08-08 Thread Jason Martin
Redone with OpenIndiana Hipster's primary build framework oi-userland https://github.com/OpenIndiana/oi-userland Still get cores with all my build variations Example GLib.Array.prepend_vals.vala gdb states: 0xfec96f9b in strlen () from /lib/libc.so.1 Then I installed the Vala 0.29.3 from:

[Vala] Having a problem understanding Vala or Gee HashMap

2015-08-06 Thread Jason Martin
I am porting some Java software to Vala but I cannot understand why the following code will not work like I think it should. Vala 0.26.2, libgee-0.8 on Xubuntu 15.04 Thanks in advance. I have used many variations and casts but I cannot get @get or has_key for Gee.HashMap to work. (website