Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 21 checkins (+225/-110) by 5 people : 1 checkin (+7/-2) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+34/-27) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+12/-8) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+16/-3) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+6/-0) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 3 checkins (+126/-7) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+11/-1) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+10/-7) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 4 checkins (+290/-317) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+52/-17) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 6 checkins (+77/-18) by 2 people : 3 checkins (+118/-48) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+15/-4) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+14/-15) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+18/-21) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+13/-9) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 9 checkins (+88/-106) by 2 people : 6 checkins (+94/-27) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+160/-130) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 3 checkins (+12/-6) by 2 people : 3 checkins (+30/-15) by 2 people : 2 checkins (+12/-8) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+14/-0) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 12 checkins (+29/-15) by 2 people : 33 checkins (+590/-137) by 6 people : 1 checkin (+11/-4) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+5/-1) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+3/-1) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 3 checkins (+50/-40) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 7 checkins (+55/-12) by 2 people : 9 checkins (+55/-29) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 12 checkins (+106/-6) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+8/-6) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+2/-1) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+21/-0) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 2 checkins (+4/-2) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 1 checkin (+2/-1) by Henrik Grubbström (Grubba) <grubba@grubba.org> : 5 checkins (+15/-5) by 2 people : 1 checkin (+17/-16) by Henrik Grubbström (Grubba) <grubba@grubba.org> Lines added/removed recently

Yesterday; Thursday 06 October 2022

2022-10-06 10:23:43 (1 day ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compat [8.0]: Use symbols directly from _Debug.

Change (indirect) references to symbols from the Debug module
to direct references to same in the _Debug module.

The Debug module contains code that pulls in lots of other
modules (among other things Stdio.Buffer). This caused the
early bootstrap code to load stuff in an unsupported order
when run -V8.0, causing the Stdio module to fail to compile.

Fixes support for -V8.0 (and earlier).

Wednesday 05 October 2022

2022-10-05 13:28:09 (2 days ago) by Daniel Wressle <wressle@roxen.com>

release number bumped to 8.0.1787 by export.pike
release number bumped to 8.0.1786 by export.pike

2022-10-05 11:26:01 (2 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10094' into 8.0

* patches/bug10094:
Standards.IIM: Fix alignment of Photoshop 6 block scanner.
Merge branch 'patches/bug10094'

* patches/bug10094:
Standards.IIM: Fix alignment of Photoshop 6 block scanner.

2022-10-05 11:20:45 (2 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.IIM: Fix alignment of Photoshop 6 block scanner.

https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
says that the pascal string containing the description text
is NUL-padded to an even length.

Fixes #10094.

Tuesday 04 October 2022

2022-10-04 11:15:33 (3 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

7.8::SSL.handshake: Fix typo in handling of anonymous Diffie-Hellman.

Monday 03 October 2022

2022-10-03 11:26:37 (4 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Web.EngineIO: Fix type for farm().
Protocols.Bittorrent: Fix typo in argument to sprintf().

Sunday 02 October 2022

2022-10-02 11:48:39 (5 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [7.8::Crypto]: Fix some tests.

Saturday 01 October 2022

2022-10-01 11:39:14 (6 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Parser.Markdown: Fix typo in type.

Friday 30 September 2022

2022-09-30 16:51:07 (7 days ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Web.Auth.OAuth: Fix typo in add_mapping().

2022-09-30 10:33:42 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.WebSocket: Fix some types.

The module should now compile again.

Thursday 29 September 2022

2022-09-29 15:21:47 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

release number bumped to 8.0.1785 by export.pike
release number bumped to 8.0.1784 by export.pike

2022-09-29 15:14:58 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Add optional validation that %rsp is properly aligned.

Add new generic configure option `--with-experimental` intended
to be used to enable various experimental and/or debug code.
Exactly what `--with-experimental` enables is NOT intended to
be stable, and may be changed at any time. It may also have no
effect at all.
Compiler: Add optional validation that %rsp is properly aligned.

Add new generic configure option `--with-experimental` intended
to be used to enable various experimental and/or debug code.
Exactly what `--with-experimental` enables is NOT intended to
be stable, and may be changed at any time. It may also have no
effect at all.

2022-09-29 12:51:42 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Allow indexing of type(object) with strings.

2022-09-29 11:29:54 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved types for predef::indices() and predef::values().

2022-09-29 11:25:04 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Added PIKE_T_THRESHOLD.

This is a threshold function that coerces its argument to
mixed|void if the argument is not __unknown__. It can be
used to convert other type operators from set-operations
to boolean operations.

Wednesday 28 September 2022

2022-09-28 13:39:40 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

release number bumped to 8.0.1782 by export.pike
release number bumped to 8.0.1783 by export.pike

2022-09-28 11:08:28 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP.Server.Request: Fix type for extend_timeout().

2022-09-28 11:06:06 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Shuffler.Shuffle: The wrap callback may return zero.

2022-09-28 11:01:15 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Survive mixed|void in pop_type_stack().

2022-09-28 10:56:49 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Survive mixed|void in pop_type_stack().

Tuesday 27 September 2022

2022-09-27 23:06:28 (1 week ago) by Automatic Build <autobuild@roxen.com>

release number bumped to 8.0.1781 by export.pike
release number bumped to 8.0.1780 by export.pike

2022-09-27 17:30:40 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Shuffler.Shuffle: Fix type for add_source().

2022-09-27 14:30:56 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix common consequential error.

Triggering a compilation error caused return statements for
later functions declared as returning void in the same program
to fail with:

Must return a value for a non-void function.
Expected: mixed.
Got : void.

2022-09-27 14:22:30 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix common consequential error.

Triggering a compilation error caused return statements for
later functions declared as returning void in the same program
to fail with:

Must return a value for a non-void function.
Expected: mixed.
Got : void.

2022-09-27 12:09:09 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Inhibit erroneous warning.

Inhibits erroneous warning in strict_types mode when eg calling
predef::object_program() with a mixed value.

Fixes multiple testsuite failures.

2022-09-27 10:49:46 (1 week ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Support object_program(obj)() again.

Fixes multiple testsuite failures.

Monday 26 September 2022

2022-09-26 15:33:15 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.ASN1.Decode: Fix bug in der_decode().

2022-09-26 13:32:21 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix issue comparing function types.

Promote void to zero when comparing return types.
The following code is thus now allowed without complaint:

void foo(string, int|void);
function(string:int(0..)) f = foo;

Fixes compilation error in Tool.Hilfe.

2022-09-26 11:38:46 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Improved robustness in simple_describe_type().

Sunday 25 September 2022

2022-09-25 10:23:20 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved type for predef::object_program().

Saturday 24 September 2022

2022-09-24 12:06:58 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.Timezone: Fix return type for _locale().

It looks like _locale at some time may have been a function variable,
and this OLD typo was a remnant from that.

2022-09-24 11:56:38 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Allow indexing of types with strings.

Friday 23 September 2022

2022-09-23 12:54:16 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix T_OBJECT - T_PROGRAM.

Thursday 22 September 2022

2022-09-22 23:14:13 (2 weeks ago) by Marcus Wellhardh <wellhardh@roxen.com>

release number bumped to 8.0.1779 by export.pike
release number bumped to 8.0.1778 by export.pike

2022-09-22 14:56:16 (2 weeks ago) by unknown <unknown user@unknown>

release number bumped to 8.0.1777 by export.pike
release number bumped to 8.0.1776 by export.pike

2022-09-22 14:40:17 (2 weeks ago) by Tobias S. Josefowitz <tobij@tobij.de>

Compiler [amd64]: Keep stack alignment before calling C code

GCC 8 started to emit movaps instructions with (%RSP) as destination,
leading to GPF in case it was not properly aligned.

Backport of the remainder of the fix since it is now relevant.

2022-09-22 13:03:35 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

release number bumped to 8.0.1774 by export.pike
release number bumped to 8.0.1775 by export.pike

2022-09-22 12:56:45 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bignum: Add missing definition of ulongest_to_svalue_no_free().

2022-09-22 12:53:19 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Do no use frame_{set,get}_expendible().

2022-09-22 12:25:27 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

release number bumped to 8.0.1773 by export.pike
release number bumped to 8.0.1772 by export.pike

2022-09-22 11:58:31 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Remove some redundant special cases.

Remove the compiler special cases for indices() and values()
as the type system already handles this.

2022-09-22 11:35:42 (2 weeks ago) by Tobias S. Josefowitz <tobij@tobij.de>

Debug.generate_perf_map(): Handle memory locations > MAX_INT_TYPE

2022-09-22 11:35:41 (2 weeks ago) by Martin Karlgren <marty@roxen.com>

Debug.get_perf_map: minor bugfix for empty programs.
Add --with-mc-stack-frames configure option. (Currently X86-64 only.)

This will enable frame pointers in machine code, thereby allowing e.g.
Linux perf to unwind the stack and get proper stack traces including
Pike functions.

2022-09-22 11:35:39 (2 weeks ago) by Arne Goedeke <el@laramies.com>

Debug.get_program_layout: behave as documented

2022-09-22 11:35:39 (2 weeks ago) by Martin Karlgren <marty@roxen.com>

Inline the F_CATCH opcode (on AMD64 so far).

This is a prerequisite for MACHINE_CODE_STACK_FRAMES, since
inter_return_opcode_F_CATCH will "inject" itself on the C stack when the first
F_CATCH opcode is encountered (and won't vanish until inter return, which may
occur in an outer Pike frame).

2022-09-22 11:04:29 (2 weeks ago) by Tobias S. Josefowitz <tobij@tobij.de>

Debug: added functions to generate perf map files

Wednesday 21 September 2022

2022-09-21 23:07:27 (2 weeks ago) by Automatic Build <autobuild@roxen.com>

release number bumped to 8.0.1771 by export.pike
release number bumped to 8.0.1770 by export.pike

2022-09-21 12:32:01 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/terminfo' into 7.8

* patches/terminfo:
Terminfo: Support Ncurses 6 format.

2022-09-21 11:59:05 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Use low_discard_type() where appropriate.

2022-09-21 11:52:15 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10054'

* patches/bug10054:
Compiler [Typechecker]: compiler_discard_type() now leaves a marker.

2022-09-21 11:42:01 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10054' into 8.0

* patches/bug10054:
Compiler [Typechecker]: compiler_discard_type() now leaves a marker.

2022-09-21 11:39:57 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10054' into 7.8

* patches/bug10054:
Compiler [Typechecker]: Missed one place.
Compiler [Typechecker]: Missed one place.

2022-09-21 11:33:09 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10054' into 7.8

* patches/bug10054:
Compiler [Typechecker]: compiler_discard_type() now leaves a marker.

2022-09-21 11:25:02 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: compiler_discard_type() now leaves a marker.

This restores the behavior to be compatible with that of
`free_type(compiler_pop_type());` but more robust.

Fixes #10054.

2022-09-21 11:07:46 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Clean up __create__() generation code somewhat.

Tuesday 20 September 2022

2022-09-20 13:09:05 (2 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

CHANGES: Added some notes about zero and __unknown__.

Monday 19 September 2022

2022-09-19 12:46:42 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Fix some broken calls of predef::compile_string().

2022-09-19 11:48:24 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.Timezone: Fix timezone compiler.

predef::compile_string() no longer accepts 0 as the second argument,
so use UNDEFINED instead.

Also move some error output from stdout to stderr, and add a title
to it so that it is easier to identify where it came from.

Fixes "Error looking up 'ISO_UTC' in module Calendar.".

Sunday 18 September 2022

2022-09-18 15:58:57 (3 weeks ago) by Martin Nilsson <nilsson@fastmail.com>

More default arguments.

2022-09-18 13:34:42 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Master.Encoder: Add special case for Pike.Lazy.LazyValue.

Saturday 17 September 2022

2022-09-17 12:07:58 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.HMAC: Fix some warnings.

2022-09-17 12:05:49 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle.Hash: Adjust type of block_size() to match __builtin.Nettle.Hash.

2022-09-17 11:36:29 (3 weeks ago) by Marcus Comstedt <marcus@mc.pp.se>

SSL: Stricter types.

Friday 16 September 2022

2022-09-16 12:30:11 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Documentation [Protocols.HTTP]: Prefix StatusCode descriptions with code.

This makes it easier to find out that eg Protocols.HTTP.HTTP_NOT_FOUND
should be used to generate error code 404.

2022-09-16 10:36:05 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP: Updated the set of known status codes.

The set of status codes should now be up to date with
http://www.iana.org/assignments/http-status-codes/http-status-codes.txt .

Also adds the enum StatusCode for grouping the status codes and
autodoc markup with rfc references for all the symbols.

Thursday 15 September 2022

2022-09-15 16:21:59 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Update to new type for predef::max().

2022-09-15 16:18:19 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix or of string types.

Fixes type for or with string(zero).

Fixes testsuite failure.

2022-09-15 12:35:04 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix NULL-deref.

2022-09-15 10:45:11 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved integer types for several math functions.

Improves the return types for predef::sqrt(), predef::min(),
predef::max(), predef::limit(), predef::abs() and predef::sgn()
when called with integer types.

2022-09-15 10:41:17 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Add PIKE_T_INT_OP_{MIN,MAX}.

NB: Also renumbers PIKE_T_INT_OP_MUL.

2022-09-15 00:37:25 (3 weeks ago) by Martin Nilsson <nilsson@fastmail.com>

A few more uses of default argument value.

Wednesday 14 September 2022

2022-09-14 22:25:07 (3 weeks ago) by Martin Nilsson <nilsson@fastmail.com>

A few more uses of default argument value.

2022-09-14 11:05:20 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

__builtin.Nettle.BlockCipher: Fix warning.

Tuesday 13 September 2022

2022-09-13 11:34:37 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved type of predef::`/() some more.

The bounds of the integer dividend now propagate to the result.

2022-09-13 11:14:49 (3 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved type for predef::`/().

Division of integer types where the dividend contains zero now
get the expected result.

Monday 12 September 2022

2022-09-12 15:06:35 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.PikeParser: Remove unused variable.

Fixes some warnings.

2022-09-12 11:11:27 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

__builtin.Nettle.Hash: Fix some warnings.

Fixes fall-out from the stricter type for predef::`*().

Stricter types for the block_size argument in some functions,
where it now has the type int(1..)|void (previously int|void)).

Also uses the new default argument value syntax is a few places.
This means that a few places that previously accepted 0 as a
placeholder for the default value now require UNDEFINED.

Sunday 11 September 2022

2022-09-11 13:12:58 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

String: Fix some warnings in expend_tabs().

String.expand_tabs() now uses the default argument syntax,
and has a stricter type for the tab_width argument.

Saturday 10 September 2022

2022-09-10 12:06:20 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Improved type for predef::`*().

Improved result for multiplication of arrays or strings with integers.

Friday 09 September 2022

2022-09-09 12:03:35 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc: Improved support for array length information.

Fixes support for parsing and rendering of array types like
array(0..5:string).

Thursday 08 September 2022

2022-09-08 12:21:36 (4 weeks ago) by Martin Nilsson <nilsson@fastmail.com>

Remove useless void

2022-09-08 10:36:15 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Remove some dead code.

This makes yacc et al happier.
CHANGES: Argument default value syntax now valid with implicit create().

2022-09-08 10:31:36 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.PikeParser: Survive the argument default value syntax.

Fixes remainder of #10086.

2022-09-08 10:26:58 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [Compiler]: Test argument default values.

TODO: Corresponding generator function tests are missing.

Fixes some more of #10086.

2022-09-08 08:51:34 (4 weeks ago) by Martin Nilsson <nilsson@fastmail.com>

Use default argument value.

Wednesday 07 September 2022

2022-09-07 10:54:28 (4 weeks ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Adjust approach to lfun::create() fallback.

Instead of having a fallback at lookup time, the compiler now
adds lfun::create() as an alias for lfun::__create__() if
there is no explicitly defined lfun::create(). This should
be (much) more robust and backward-compatible.

Fixes some fall-out from the #10086 changes.

Tuesday 06 September 2022

2022-09-06 12:32:10 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Look up of ::create() now falls back to ::__create__().

Fixes various calls of ::create() and similar in classes where
there only is an implicit create() (ie only __create__()).

Fixes multiple testsuite failures.

2022-09-06 10:45:16 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Support default values for implicit create arguments.

Fixes the implicit create cases of #10086.

2022-09-06 10:35:35 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Add lfun::__create__().

This lfun is intended to hold the code previously inlined
in lfun::create() for the implicit create syntax.

Preparation for implementing the implicit create case(s) of #10086.

Monday 05 September 2022

2022-09-05 13:42:12 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Warn only once about protypes with argument default values.

Sunday 04 September 2022

2022-09-04 10:46:39 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Warn about defining argument default values in prototypes.

Defining a default value for an argument in a prototype is
equivalent to adding '|void' to its type, and the actual
argument default value is not used.

Fixes some more of #10086.

Saturday 03 September 2022

2022-09-03 11:39:57 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Add syntax for specifying default values for functions.

The function definition

string foo(string bar = "bar") { return bar; }

will now result in a function(string|void:string) that returns
"bar" if called with no arguments or UNDEFINED, and its argument
otherwise. The local variable 'bar' above will be typed string
(ie not string|void) in the function body.

Fixes some of #10086.

Friday 02 September 2022

2022-09-02 10:43:46 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fix parser issue with syntax error in array type.

The parser did not like syntax errors like:

array(3) foo;

Fixes #10089.

Thursday 01 September 2022

2022-09-01 10:34:27 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Array: Fixed erroneous error from array_fix_type_field() --with-cdebug.

In addition to bignums, also regard destructed objects and
functions as integers in the type field.

Fixes fatal "Type field out of order".

Wednesday 31 August 2022

2022-08-31 12:13:21 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Fix typos in previous commit.

2022-08-31 11:09:41 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [float]: Improved diagnostics for some tests.

Tuesday 30 August 2022

2022-08-30 13:52:33 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [cast]: Update test of casting objects to mappings.

2022-08-30 13:02:26 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Operators: Allow casting of all objects to mapping.

Previously objects that implemented lfun::cast() needed to
handle this themselves.

Monday 29 August 2022

2022-08-29 12:04:47 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.ASN1.Types.Integer: Fix leading zero detection.

A leading zero (or 0xff) is allowed if it is necessary in
order to encode the sign bit.

Now also complains about leading 0xff (ie negative zero).

Fixes several testsuite errors.

2022-08-29 00:28:25 (1 month ago) by Martin Nilsson <nilsson@fastmail.com>

Output array length type things.

Sunday 28 August 2022

2022-08-28 23:07:19 (1 month ago) by Automatic Build <autobuild@roxen.com>

release number bumped to 8.0.1769 by export.pike
release number bumped to 8.0.1768 by export.pike

2022-08-28 22:28:30 (1 month ago) by Martin Nilsson <nilsson@fastmail.com>

Parse new array type.

2022-08-28 19:01:54 (1 month ago) by Peter Bortas <bortas@gmail.com>

Misc: Fix incorrect syntax in autodoc

2022-08-28 18:18:38 (1 month ago) by Martin Nilsson <nilsson@fastmail.com>

CCM IV size is between 7 and 13 bytes. Change checks and iv_size to accordingly.

2022-08-28 16:59:20 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: __weak__ now implies zero in the type for variables.

Fixes #10083.

2022-08-28 16:34:09 (1 month ago) by Martin Nilsson <nilsson@fastmail.com>

Make ASN.1 secure_der_decode always catch decoding errors and return 0 instead. Make leading zero in integer encodings an error in secure mode.

2022-08-28 14:03:20 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.DSA: Fix rejection of signatures with offset r and/or s.

Fixes #10077.

2022-08-28 13:56:32 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.DSA: Fix rejection of signatures with offset r and/or s.

Fixes #10077.

2022-08-28 13:29:34 (1 month ago) by Tobias S. Josefowitz <tobij@tobij.de>

Protocols.HTTP: KeptConnection()s may outlast their Session()

2022-08-28 12:46:31 (1 month ago) by Tobias S. Josefowitz <tobij@tobij.de>

Compiler [Typechecker]: Fix NULL-deref.

2022-08-28 11:57:29 (1 month ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Gdbm: Update to new iterator API.

Fixes some of #10085.

[permalink]

Bugs mentioned

  #10054CLOSEDType mark stack underflow
  #10077CLOSEDCrypto.DSA verifies signature with modified R/S values
  #10083CLOSEDDeclaring a variable as __weak__ ought to imply that the type includes zero.
  #10085INPROGRESSAdjust Iterator API to be more simple to implement and simpler to generate code for.
  #10086CLOSEDAdd syntax for specifying default values for optional arguments.
  #10089CLOSEDCoredump with new array type
  #10094CLOSEDStandards.IIM.get_information() returns ([]) for some files that have IPTC-IIM metadata.
Bugs? Suggestions?