Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamukherji committed May 8, 2023
1 parent f39183c commit b008c75
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rabs (2.27.5) UNRELEASED; urgency=medium
rabs (2.28.1) UNRELEASED; urgency=medium

* Updates.
* Updates.
Expand Down Expand Up @@ -50,5 +50,6 @@ rabs (2.27.5) UNRELEASED; urgency=medium
* Updates.
* Updates.
* Updates.
* Updates.

-- Raja Mukherji <[email protected]> Fri, 17 Feb 2023 09:45:21 +0000
-- Raja Mukherji <[email protected]> Mon, 08 May 2023 08:08:13 +0100
2 changes: 1 addition & 1 deletion minilang
Submodule minilang updated 77 files
+350 −325 docs/library/array.rst
+3 −3 docs/library/buffer.rst
+8 −2 docs/library/compiler.rst
+10 −10 docs/library/enum.rst
+8 −8 docs/library/flags.rst
+12 −6 docs/library/general.rst
+45 −1 docs/library/gir.rst
+5 −0 docs/library/hierarchy.rst
+11 −3 docs/library/list.rst
+34 −9 docs/library/map.rst
+2 −2 docs/library/math.rst
+1 −1 docs/library/method.rst
+10 −10 docs/library/number.rst
+4 −1 docs/library/polynomial.rst
+8 −0 docs/library/range.rst
+11 −5 docs/library/runtime.rst
+2 −3 docs/library/sequence.rst
+10 −2 docs/library/set.rst
+17 −0 docs/library/socket.rst
+43 −0 docs/library/string.rst
+14 −18 docs/library/tasks.rst
+21 −21 docs/library/time.rst
+4 −0 docs/library/type.rst
+2 −2 docs/library/uuid.rst
+5 −5 docs/library/xml.rst
+3 −1 src/array/compare_eq.c
+3 −1 src/array/compare_ge.c
+3 −1 src/array/compare_gt.c
+185 −0 src/array/compare_impl.h
+66 −106 src/array/compare_impl_complex.h
+49 −89 src/array/compare_impl_real.h
+3 −1 src/array/compare_le.c
+3 −1 src/array/compare_lt.c
+3 −1 src/array/compare_ne.c
+206 −0 src/array/update_impl.h
+5 −191 src/array/update_impl_complex.h
+1 −192 src/array/update_impl_real.h
+4 −0 src/ast.mini
+59 −31 src/build.rabs
+707 −0 src/coro.c
+418 −0 src/coro.h
+1 −1 src/document.mini
+51 −10 src/minilang.c
+1 −1 src/minipp.c
+71 −22 src/ml_array.c
+2 −0 src/ml_ast_types.c
+9 −1 src/ml_bytecode.c
+33 −20 src/ml_cbor.c
+13 −1 src/ml_compiler.c
+69 −0 src/ml_coroutine.c
+18 −0 src/ml_coroutine.h
+0 −2 src/ml_file.h
+75 −14 src/ml_gir.c
+1,693 −290 src/ml_gir_bytecode.c
+4 −4 src/ml_library.c
+18 −2 src/ml_library.h
+9 −0 src/ml_list.c
+97 −7 src/ml_map.c
+12 −0 src/ml_math.c
+9 −2 src/ml_method.c
+62 −11 src/ml_minijs.c
+94 −0 src/ml_number.c
+19 −4 src/ml_runtime.c
+1 −0 src/ml_runtime.h
+63 −3 src/ml_sequence.c
+9 −0 src/ml_set.c
+9 −0 src/ml_socket.c
+17 −0 src/ml_socket.h
+14 −9 src/ml_stream.c
+2 −1 src/ml_stream.h
+201 −26 src/ml_string.c
+9 −18 src/ml_table.c
+53 −59 src/ml_tasks.c
+83 −12 src/ml_types.c
+17 −0 src/ml_types.h
+1 −1 src/ml_xml.c
+10 −0 src/tre.patch
2 changes: 1 addition & 1 deletion radb
Submodule radb updated 3 files
+2 −0 linear_index.c
+2 −0 linear_index0.c
+4 −4 string.c
8 changes: 6 additions & 2 deletions src/rabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,15 @@ ML_FUNCTION(Open) {
//>file
// Opens the file at path :mini:`Path` with the specified mode.
ML_CHECK_ARG_COUNT(2);
ML_CHECK_ARG_TYPE(1, MLStringT);
ml_stringbuffer_t Buffer[1] = {ML_STRINGBUFFER_INIT};
ml_value_t *Result = ml_stringbuffer_simple_append(Buffer, Args[0]);
if (ml_is_error(Result)) return Result;
char *FileName = ml_stringbuffer_get_string(Buffer);
return ml_simple_inline((ml_value_t *)MLFileOpen, 2, ml_string(FileName, -1), Args[1]);
const char *Path = ml_stringbuffer_get_string(Buffer);
const char *Mode = ml_string_value(Args[1]);
FILE *Handle = fopen(Path, Mode);
if (!Handle) return ml_error("FileError", "failed to open %s in mode %s: %s", Path, Mode, strerror(errno));
return ml_file(Handle);
}

static const char *find_root(const char *Path) {
Expand Down
2 changes: 1 addition & 1 deletion src/rabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extern __thread target_t *CurrentTarget;
ml_value_t *rabs_global(const char *Name);
ml_value_t *rabs_ml_global(void *Data, const char *Name, const char *Source, int Line, int Mode);

#define CURRENT_VERSION 2, 27, 8
#define CURRENT_VERSION 2, 28, 1
#define MINIMAL_VERSION 2, 10, 0

#endif

0 comments on commit b008c75

Please sign in to comment.