Skip to content

Commit

Permalink
Merge pull request #210 from wrapl/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
rajamukherji authored Jul 20, 2024
2 parents 53adc72 + dfa6828 commit 189ed79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
6 changes: 4 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rabs (2.30.12) UNRELEASED; urgency=medium
rabs (2.30.14) UNRELEASED; urgency=medium

* Updates.
* Updates.
Expand Down Expand Up @@ -63,5 +63,7 @@ rabs (2.30.12) UNRELEASED; urgency=medium
* Updates.
* Updates.
* Updates.
* Updates.
* Updates.

-- Raja Mukherji <raja@hinano> Mon, 15 Jul 2024 18:39:00 +0100
-- Raja Mukherji <raja@hinano> Sat, 20 Jul 2024 23:52:10 +0100
13 changes: 4 additions & 9 deletions src/rabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,10 @@ static long rabs_property_hash(rabs_property_t *Property, ml_hash_chain_t *Chain
}

static ml_value_t *rabs_property_deref(rabs_property_t *Property) {
ml_value_t *Value = context_symb_get(CurrentContext, Property->Name);
if (Value) {
if (CurrentTarget) {
target_depends_auto(target_symb_new(CurrentContext, Property->Name));
}
return Value;
} else {
return stringmap_search(Globals, Property->Name) ?: MLNil; //ml_error("NameError", "%s undefined", Name);
}
ml_value_t *Value = context_symb_get(CurrentContext, Property->Name) ?:
stringmap_search(Globals, Property->Name) ?: MLNil;
if (CurrentTarget) target_depends_auto(target_symb_new(CurrentContext, Property->Name));
return Value;
}

static void rabs_property_assign(ml_state_t *Caller, rabs_property_t *Property, ml_value_t *Value) {
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, 30, 12
#define CURRENT_VERSION 2, 30, 14
#define MINIMAL_VERSION 2, 10, 0

#endif

0 comments on commit 189ed79

Please sign in to comment.