Branch: Tag:

2022-03-09

2022-03-09 11:02:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

GC: Support remaining types in Pike.count_memory().

Users of Pike.count_memory() typically do not want to bother
filtering its arguments, so perform filtering in count_memory()
rather than throwing errors.

Also adds support for counting memory for objects referenced
via functions.

2021-07-02

2021-07-02 20:27:26 by Tobias S. Josefowitz <tobij@tobij.de>

decode_value(): Allow to restrict decoding to simple types

The encoded value has quite a bit of control over our process. Allow to
restrict decoding to primitive types by passing coding as -1.

2021-02-03

2021-02-03 15:34:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Inotify: add_watch() now returns -1 on some failures.

This is to simplify differentiation between failures due to
the filesystem being in flux (eg races), and failures due to
resource limits.

Fixes race condition (time of check, time of use) in
Filesystem.Monitor.basic.InotifyMonitor()->register_path().

Fixes #10059.

2020-02-07

2020-02-07 12:15:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some pty-handling cleanup.

Add wrappers emulating missing libc functions.

2020-01-20

2020-01-20 15:44:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some pty-handling cleanup.

Add wrappers emulating missing libc functions.

2019-09-26

2019-09-26 11:03:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Sprintf: Cleanup linebreak mode.

The sprintf "%/s" and "%=s" modes now break at the column width
(defaulting it to the field width) and not the field width. This
makes it possible to use formats like eg "%;*-=s" (instead of
"%*-=s") to not get every line padded to the full column width.

2019-09-23

2019-09-23 14:10:28 by Kevin O'Rourke <kevinor@opera.com>

TURBO2-1398: Allow disabling of wrapping of describe_backtrace output.

The wrapping can add lots of spaces to the end of lines to pad
them, resulting in enormous backtrace files in some circumstances.

2019-06-23

2019-06-23 21:56:56 by Tobias S. Josefowitz <tobij@tobij.de>

Tools.Standalone.precompile: Fix storage offset handling

Programs using their parent may store parent information in the
beginning of ->storage, thus we need to add
p->inherits[0].storage_offset when trying to reach an object's storage.
The compiler/runtime correctly takes care of this in THIS, but the OBJ2_
and GET_..._STORAGE macros did not take this into account.

2019-03-19

2019-03-19 12:33:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '722771973bd' into patches/lyslyskom22891031

* commit '722771973bd': (6177 commits)
Verify that callablep responses are aligned with reality.
...

2019-03-19 09:50:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Thread.Farm: Added ResultWrapper.

This is a wrapper for the Result class to detect when the user
loses its reference to it, in order to not lose reports of any
errors from the worker threads.

2019-03-14

2019-03-14 10:39:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '2470270f500c728d10b8895314d8d8b07016e37b' into grubba/typechecker-automap

* commit '2470270f500c728d10b8895314d8d8b07016e37b': (18681 commits)
Removed the old typechecker.
...

2019-02-02

2019-02-02 15:25:44 by Marcus Comstedt <marcus@mc.pp.se>

Image.Dims: Revert EXIF flipping of dimensions in get_JPEG

Like for JPEG._decode, add a specific exif_get_JPEG which does the
flipping instead.

2018-05-24

2018-05-24 09:40:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Support encoding to UTF-8 encoded UTF-16 in string_to_utf8().

string_to_utf8() now supports the same extensions as utf8_to_string().

Fixes PIKE-111 (#8111).

2018-05-02

2018-05-02 09:31:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'pike-modules/sass' into 8.0

* pike-modules/sass: (91 commits)
Sass: Use ONERROR to free sass contexts on error.
Sass: Unlink stale JMPBUF.
Sass: Fixed indentation.
Added some tests for Sass compilation errors.
Just some cleanup of a simple test.
Transfered "ownership" of error message from libsass to Pike.
Fixed stupid Emacs indentation.:wq
Testsuite [Sass]: Fixed detection of Web.Sass some more.
Testsuite [Sass]: Updated testsuite to the moved module.
Sass: Move module to Web.Sass.
Sass: Hide the module when not available.
Install: Added Tools.Sass to the feature list.
Testsuite [Sass]: Check that Tools.Sass is available.
Sass: Hide the s8 symbol.
Sass: Use HAVE_LIBSASS instead of HAVE_SASS_H.
Sass: Clean up configure script.
Sass: Clean up acheader.h.
Sass: Removed redundant cast.
Sass: Adjusted debug message.
Sass: Fixed a few C99-isms.
...

2018-04-26

2018-04-26 17:18:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

I/O [NT]: Use new low-level functions from Process.

2018-04-12

2018-04-12 09:26:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'pike-modules/sass' into 8.1

* pike-modules/sass: (79 commits)
Testsuite [Sass]: Check that Tools.Sass is available.
Sass: Hide the s8 symbol.
Sass: Use HAVE_LIBSASS instead of HAVE_SASS_H.
Sass: Clean up configure script.
Sass: Clean up acheader.h.
Sass: Removed redundant cast.
Sass: Adjusted debug message.
Sass: Fixed a few C99-isms.
Sass: Don't throw pike errors through the libsass layer.
Sass: Error messages need to end with a line feed.
Sass: Cleaned up documentation a bit.
Sass: Fix building in a separate build tree.
Sass: Generate config.h.in from acconfig.h.
Sass: Removed obsolete stuff from Makefile.in.
Sass: Removed quite a bit of stuff.
...

2018-04-11

2018-04-11 09:58:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge github.com:poppa/pike-libsass into patches/pike89

* github.com:poppa/pike-libsass: (64 commits)
[...]

2018-02-25

2018-02-25 19:02:42 by Arne Goedeke <el@laramies.com>

Stdio.File()->write: add documentation for buffer variant

2018-02-15

2018-02-15 15:54:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e' into patches/pike63

* commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e': (19587 commits)
...

2017-08-28

2017-08-28 21:19:33 by Per Cederqvist <cederp@opera.com>

Add extensible error handling in Protocols.DNS.server

Some servers might want to report errors during other mechanisms than
werror. By moving the error reporting to the new
report_decode_error() method, it is easy to override that method and
do something else.

Likewise, some servers might want to not reply to malformed requests.
Move that code to the new handle_decode_error() method.

2016-12-05

2016-12-05 13:42:16 by Martin Nilsson <nilsson@fastmail.com>

Added Nettle.version()

2014-11-13

2014-11-13 11:24:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Process.spawn_pike: Added launcher argument.

2014-08-22

2014-08-22 18:02:24 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/8.0' into string_alloc

2013-12-10

2013-12-10 10:55:22 by Markus Ottensmann <markuso@opera.com>

Add class Standards.JSON.Validator which can be used to validate json with a schema

The Standards.JSON.Validator class does not yet implement the full set of
schema validations. It does not yet handle dependencies nor references.
The regular expressions (for pattern properties) are limited to those that
can be handled by Regexp.SimpleRegexp.

To use the validator, load and decode a JSON schema and create a validator:

mixed schema = Standards.JSON.decode(schema_string);
Standards.JSON.Validator validator = Standards.JSON.Validator(schema);

Then load and decode some JSON data and pass it to the function
Standards.JSON.Validator->validate():

mixed json_data = Standards.JSON.decode(data_string);
if (string error = validator->validate(json_data))
werror("Error: %s\n", error);
else
write("JSON matches the schema\n");

For more information of JSON schema look at
- http://json-schema.org/documentation.html "The home of JSON Schema"