Skip to content

Commit

Permalink
Attempt to pass tests by manually adding prototypes to lf code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadliaJerad committed Dec 2, 2024
1 parent 957fd91 commit 113d5f4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/c/reactor-c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ target C {
preamble {=
#include <stdlib.h>
#include <string.h>
#include "federate.h"
char* lf_get_federates_bin_directory();
const char* lf_get_federation_id();
=}

/** Persistent federate that is responsible for lauching the transient federate */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import Middle from "TransientDownstreamWithTimer.lf"
preamble {=
#include <stdlib.h>
#include <string.h>
#include "federate.h"
char* lf_get_federates_bin_directory();
const char* lf_get_federation_id();
=}

/** Persistent federate that is responsible for lauching the transient federate */
Expand Down
3 changes: 2 additions & 1 deletion test/C/src/federated/transient/TransientHotSwap.lf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import Down from "TransientDownstreamWithTimer.lf"
preamble {=
#include <stdlib.h>
#include <string.h>
#include "federate.h"
char* lf_get_federates_bin_directory();
const char* lf_get_federation_id();
=}

/** Persistent federate that is responsible for lauching the transient federate */
Expand Down
4 changes: 3 additions & 1 deletion test/C/src/federated/transient/TransientStatePersistence.lf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ target C {
preamble {=
#include <stdlib.h>
#include <string.h>
#include "federate.h"

char* lf_get_federates_bin_directory();
const char* lf_get_federation_id();

// The internal federate state to be persistent across executions
typedef struct federate_state_t {
Expand Down

0 comments on commit 113d5f4

Please sign in to comment.