Commits on Source (99)
-
Christian Hergert authored20639d45
-
Christian Hergert authored
Doing the suggested change for name-prefix breaks the compile, so we can't do that one yet.
da74653c -
Christian Hergert authorede245fe9e
-
Christian Hergert authored3d4dd662
-
Christian Hergert authored506d0960
-
Christian Hergert authored
So we can use this from tests directly without dealing with linker things for tests and what not.
9a1a3a7a -
Christian Hergert authored
There is a bunch I'd like to do to make this better now, but we have to get some basics in place and round off some corners which never really worked with GITypelib access. My goal here is to make this a bit easier to use as a basic scripting layer for Builder to use in it's shortcut bindings.
2ec46155 -
Christian Hergert authored
Without this, you can't call a function called "require" on a GObject as the require keyword would have higher priority. To use the reserved keyword you can now instead use the following, similar to C♯. obj.@require(args)
b75b466c -
Christian Hergert authored
This will give us a bit more flexibility going forward so that we can have different syntax between the two from a scriptability standpoint.
40abca13 -
Christian Hergert authored
Just makes it easier to debug later on.
73840978 -
Christian Hergert authored
Mostly used for debugging so that you can see if/why you should have missed something in that list.
cfff88ab -
Christian Hergert authoredd92cf7b9
-
Christian Hergert authoredb0b4e1aa
-
Christian Hergert authored
We don't care about the whole L"" stuff in the literal as that should only be dealt with when scanning so the parser can be naive.
4a1f6088 -
Christian Hergert authored1aadfa74
-
Christian Hergert authored
This was lost when we renamed the old STMT_LIST to ARGS.
696cfbd8 -
Christian Hergert authored
These are not handled automatically for us, and most TmplExpr node creation take `const char *` strings and therefore are not freeing these for us. An oversight I wish we could fix for parsing performance, but what can you do at this point.
f0a25ddb -
Christian Hergert authored
We always had this in the syntax, but we never actually finished the implementation of defining functions so that the user can call them. I'd still like to change the syntax somewhat, but this at least gets things working so we can define those functions and use them from the test script.
acab44aa -
Christian Hergert authored
This fixes an incorrect unref we couldn't hit before because we didn't have user functions working. But in particular USER_FN_CALL does not use the SIMPLE expr node as it has it's own.
e69fed3c -
Christian Hergert authored
The parameter is transfer full, so we don't need to ref the array.
58d1f787 -
Christian Hergert authored
We don't really need to unset the value since it's a primitive type, but best to just do the right thing anyway.
0a4ce4c3 -
Christian Hergert authored7cd583c1
-
Christian Hergert authored19711890
-
Christian Hergert authored
This wasn't supposed to be changed previously.
442985cb -
Christian Hergert authored
So that we can use this in more ways without duplication.
01726520 -
Christian Hergert authoredf0723d02
-
Christian Hergert authored
This is mostly useful for us for tests so that we can fill in the script files with things we expect to be without having to check return values from the C sources directly.
cb05c717 -
Christian Hergert authored
And test it in test1.script
58275f72 -
Christian Hergert authored
This was supposed to be on the parameter, which is already there.
8dc38bc4 -
Christian Hergert authored
And add cos/sin/tan builtins
ba76c86a -
Christian Hergert authored379174c6
-
Christian Hergert authored
Builtins can only take a single parameter currently, so pow() cannot currently be hoisted asa builtin. Test something dumb as a fallback.
a7150207 -
Christian Hergert authored
Like python you can do # some comment
2749e786 -
Christian Hergert authoreddab1e36c
-
Christian Hergert authored
This can be used to end things on a single line where you might not otherwise be able to.
4219f2f3 -
Christian Hergert authoredf6789494
-
Christian Hergert authored
This can be helpful in some upcoming places.
22d5e5db -
Christian Hergert authored9acc0a76
-
Christian Hergert authored
These are just handy in case people are blindingly writing as they read from other bits of GLib stuff.
561f913a -
Christian Hergert authorede6bcc41e
-
Christian Hergert authored5df75093
-
Christian Hergert authored
These should be reversed to preserve the expected order.
9626da26 -
Christian Hergert authored
It turned out to be too much effort to treat it as EOL.
178c7613 -
Christian Hergert authored
We might want to drop names from func as well but we'll see.
c3fc66c6 -
Christian Hergert authored
This is just handy to write to stderr intead of stdout.
d4ce6851 -
Christian Hergert authoreda02aec44
-
Christian Hergert authored1ecfbfdb
-
Christian Hergert authored
This way we can reuse it for anonymous functions.
3c603402 -
Christian Hergert authored
This just makes calling code a bit cleaner and avoids copying a GValue to get the boxed pointer.
b88336d7 -
Christian Hergert authored
Just to make quick testing as we fix things easier.
11186cbb -
Christian Hergert authored
This allows creating a new function which does not have a name even though we can't call them yet.
b8247680 -
Christian Hergert authored8993d159
-
Christian Hergert authored
This is just general progress towards making an anonymous function that has been assigned to a symbol in scope work. Not quite there yet, but closer.
2fcf4bb4 -
Christian Hergert authoredbb18d333
-
Christian Hergert authored
We can just use def/end for cases other than that.
1f72e8d7 -
Christian Hergert authored
This should use item.@version instead now to get the proper attribute.
f9847e51 -
Christian Hergert authored0d2c278b
-
Christian Hergert authored9a458934
-
Christian Hergert authorede58b2ab9
-
Christian Hergert authored
* Use -Wl,-z,relro and -Wl,-z,now when possible in release builds * Use -Wl,-Bsymbolic and -fno-plt when possible * Disable cast checks and assertions in release builds
1c0a3e2b -
Christian Hergert authored
This ensures we've built the enums headers before it can begin compiling to avoid the race. Also we can avoid the weird include_directories() issue from tests/meson.build.
80cd8f2f -
Christian Hergert authored
We don't need to allocate these, so long as reference counting is correct they never get freed and we can just re-use the same instance as a constant sort of cheap hack.
a584ab18 -
Christian Hergert authored
We will probably run into additional things to fix with this, particularly around comparisons/etc but this is a start.
a9d5e27f -
Christian Hergert authored
That way we can check pointer equality (although we need additional checks for object/variant/etc comparisons).
c4d9397b -
Christian Hergert authored03767173
-
Christian Hergert authored
This allows you to do handy things like check types with inheritance such as the following: typeof(widget).is_a(typeof(Gtk.Native))
615ed73a -
Christian Hergert authorede3ea65b2
-
Christian Hergert authoredf6af441b
-
Tristan Partin authored
This is a little bit of a cleanup around the build. Makes the build a little bit more modern.
-
Christian Hergert authored377e59b2
-
Christian Hergert authoredfe1c2f05
-
Christian Hergert authored5c7e99c0
-
Christian Hergert authored
Its nice and all to force extraneous (), but its also really annoying.
377c3ec7 -
Christian Hergert authored589f8df4
-
Christian Hergert authored
We need to fix this still.
732b033e -
Christian Hergert authored
Clean up Meson a bit See merge request GNOME/template-glib!6
c75ef616 -
Christian Hergert authored2ea9b011
-
Christian Hergert authoredbd72c595
-
Christian Hergert authored64bacde9
-
Christian Hergert authoredf5488d89
-
Christian Hergert authored9b44da67
-
Christian Hergert authored1fbd74c2
-
Christian Hergert authored
For various sizes/floating point/double.
c982a343 -
Christian Hergert authored9b1f5631
-
Christian Hergert authored
Fixes #3
8abddaa3 -
Tristan Partin authored
-
Jason Francis authored
-
Christian Hergert authored
meson: export package in gir See merge request GNOME/template-glib!9
601029a8 -
Christian Hergert authored
Error out build early when is a subproject without -Dpackage_subdir See merge request GNOME/template-glib!8
cc3a5107 -
Christian Hergert authored
As mentioned in !8
4966b1e3 -
Christian Hergert authored
This fixes things to work where we don't have non-standard sscanf features such as on macOS.
0fd40ba9 -
Christian Hergert authored
Obviously you don't want to evaluate the whole tree.
14ef84df -
Christian Hergert authored4b6fe35e
-
Christian Hergert authored47957c9b
-
Christian Hergert authorede4db4cb5
-
Christian Hergert authored99309dc5
-
Christian Hergert authoredd5493a56
-
Christian Hergert authored840e8dd0
-
Jeremy Bicha authored185c0a3d
This diff is collapsed.