Skip to content

Commit

Permalink
Remove fd_flamenco.c
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl authored and ripatel-fd committed Jan 11, 2024
1 parent dd380e9 commit f15eb12
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 52 deletions.
5 changes: 2 additions & 3 deletions src/app/fdctl/spy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "fdctl.h"
#include "../../flamenco/gossip/fd_gossip.h"
#include "../../flamenco/fd_flamenco.h"
#include "../../util/fd_util.h"
#include "../../ballet/base58/fd_base58.h"
#include "../../flamenco/types/fd_types_yaml.h"
Expand Down Expand Up @@ -91,7 +90,7 @@ main_loop( fd_gossip_t * glob, fd_gossip_config_t * config, volatile int * stopf
FD_LOG_ERR(("bind failed: %s", strerror(errno)));
return -1;
}

fd_gossip_settime(glob, fd_log_wallclock());
fd_gossip_start(glob);

Expand All @@ -104,7 +103,7 @@ main_loop( fd_gossip_t * glob, fd_gossip_config_t * config, volatile int * stopf
while ( !*stopflag ) {
fd_gossip_settime(glob, fd_log_wallclock());
fd_gossip_continue(glob);

fd_memset(msgs, 0, sizeof(msgs));
for (uint i = 0; i < VLEN; i++) {
iovecs[i].iov_base = bufs[i];
Expand Down
3 changes: 1 addition & 2 deletions src/flamenco/Local.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
$(call make-lib,fd_flamenco)
$(call add-hdrs,fd_flamenco_base.h fd_flamenco.h)
$(call add-objs,fd_flamenco,fd_flamenco)
$(call add-hdrs,fd_flamenco_base.h)
11 changes: 0 additions & 11 deletions src/flamenco/fd_flamenco.c

This file was deleted.

17 changes: 0 additions & 17 deletions src/flamenco/fd_flamenco.h

This file was deleted.

13 changes: 6 additions & 7 deletions src/flamenco/gossip/fd_gossip_spy.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define _GNU_SOURCE /* See feature_test_macros(7) */

#include "fd_gossip.h"
#include "../fd_flamenco.h"
#include "../../util/fd_util.h"
#include "../../ballet/base58/fd_base58.h"
#include "../types/fd_types_yaml.h"
Expand Down Expand Up @@ -101,7 +100,7 @@ main_loop( fd_gossip_t * glob, fd_gossip_config_t * config, volatile int * stopf
FD_LOG_ERR(("bind failed: %s", strerror(errno)));
return -1;
}

fd_gossip_settime(glob, fd_log_wallclock());
fd_gossip_start(glob);

Expand All @@ -114,7 +113,7 @@ main_loop( fd_gossip_t * glob, fd_gossip_config_t * config, volatile int * stopf
while ( !*stopflag ) {
fd_gossip_settime(glob, fd_log_wallclock());
fd_gossip_continue(glob);

fd_memset(msgs, 0, sizeof(msgs));
for (uint i = 0; i < VLEN; i++) {
iovecs[i].iov_base = bufs[i];
Expand Down Expand Up @@ -189,9 +188,10 @@ resolve_hostport(const char* str /* host:port */, fd_gossip_peer_addr_t * res) {
return res;
}

int main(int argc, char **argv) {
fd_boot ( &argc, &argv );
fd_flamenco_boot( &argc, &argv );
int
main( int argc,
char ** argv ) {
fd_boot( &argc, &argv );

fd_valloc_t valloc = fd_libc_alloc_virtual();

Expand Down Expand Up @@ -270,6 +270,5 @@ int main(int argc, char **argv) {
fd_valloc_free(valloc, fd_gossip_delete(fd_gossip_leave(glob), valloc));

fd_halt();

return 0;
}
3 changes: 0 additions & 3 deletions src/flamenco/runtime/sysvar/test_sysvar_rent.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "../../fd_flamenco.h"
#include "fd_sysvar_rent.h"

struct fd_rent_exempt_fixture {
Expand Down Expand Up @@ -46,7 +45,6 @@ int
main( int argc,
char ** argv ) {
fd_boot( &argc, &argv );
fd_flamenco_boot( &argc, &argv );

fd_rent_exempt_fixture_t const * iter;
for( iter = test_rent_exempt_vector;
Expand All @@ -61,7 +59,6 @@ main( int argc,
}

FD_LOG_NOTICE(( "pass" ));
fd_flamenco_halt();
fd_halt();
return 0;
}
1 change: 0 additions & 1 deletion src/flamenco/snapshot/fd_snapshot_restore.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "fd_snapshot.h"
#include "../../util/archive/fd_tar.h"
#include "../fd_flamenco.h"
#include "../types/fd_types.h"
#include "../runtime/fd_acc_mgr.h"

Expand Down
3 changes: 0 additions & 3 deletions src/flamenco/types/test_types_fixtures.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "fd_types.h"
#include "../fd_flamenco.h"
#include "fd_types_yaml.h"

#include <stdio.h>
Expand Down Expand Up @@ -166,7 +165,6 @@ int
main( int argc,
char ** argv ) {
fd_boot( &argc, &argv );
fd_flamenco_boot( &argc, &argv );

static uchar scratch_mem [ 1<<25 ]; /* 32 MiB */
static ulong scratch_fmem[ 4UL ] __attribute((aligned(FD_SCRATCH_FMEM_ALIGN)));
Expand All @@ -183,7 +181,6 @@ main( int argc,
FD_LOG_NOTICE(( "pass" ));
FD_TEST( fd_scratch_frame_used()==0UL );
fd_scratch_detach( NULL );
fd_flamenco_halt();
fd_halt();
return 0;
}
5 changes: 1 addition & 4 deletions src/flamenco/types/test_types_meta.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#include "fd_types_meta.h"
#include "../fd_flamenco.h"

int
main( int argc,
char ** argv ) {
fd_boot ( &argc, &argv );
fd_flamenco_boot( &argc, &argv );
fd_boot( &argc, &argv );

FD_TEST( fd_flamenco_type_is_primitive( FD_FLAMENCO_TYPE_NULL )==1 );
FD_TEST( fd_flamenco_type_is_primitive( FD_FLAMENCO_TYPE_BOOL )==1 );
Expand Down Expand Up @@ -66,6 +64,5 @@ main( int argc,
FD_TEST( fd_flamenco_type_is_collection_end( FD_FLAMENCO_TYPE_MAP_END )==1 );

FD_LOG_NOTICE(( "pass" ));
fd_flamenco_halt();
fd_halt();
}
1 change: 0 additions & 1 deletion src/flamenco/types/test_types_yaml.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "fd_bincode.h"
#include "fd_types_meta.h"
#include "fd_types_yaml.h"
#include "../fd_flamenco.h"
#include "fd_types.h"

#include <stdio.h>
Expand Down

0 comments on commit f15eb12

Please sign in to comment.