crashappsec / libcon4m

Base Compiler and Runtime Support for con4m
Apache License 2.0
0 stars 0 forks source link

Add missing literal types from previous version #91

Closed viega closed 1 month ago

viega commented 1 month ago

Re-implemented the 'other' literal types: Datetime Time Date Size Duration

URLs are done not as a separate type, but as a literal modifier that calls CURL's URL validation (loose as it is).

Added an option to turn on / off static binding of calls exposed via the FFI. If not set, it's on if glibc is off on linux, and off by default on mac.

Also, for simple assignment ONLY, if the assignment is to a variable with an explicitly declared type (and that type is a simple literal), then we will infer the litmod type, picking the first one added associated with the type.

Closes #77

viega commented 1 month ago

Certainly don't review until I fix the Linux tests; was surprised it didn't work there, but I'll take a look first.

viega commented 1 month ago

@ee7 Fixed, feel free.