Rizin
unix-like reverse engineering framework and cli tools
set.h File Reference
#include "ht_pp.h"
#include "ht_up.h"

Go to the source code of this file.

Typedefs

typedef HtPP SetP
 
typedef HtUP SetU
 

Functions

RZ_API SetPset_p_new (void)
 
RZ_API void set_p_add (SetP *p, const void *u)
 
RZ_API bool set_p_contains (SetP *s, const void *u)
 
RZ_API void set_p_delete (SetP *s, const void *u)
 
RZ_API void set_p_free (SetP *p)
 
RZ_API SetUset_u_new (void)
 
RZ_API void set_u_add (SetU *p, ut64 u)
 
RZ_API bool set_u_contains (SetU *s, ut64 u)
 
RZ_API void set_u_delete (SetU *s, ut64 u)
 
RZ_API void set_u_free (SetU *p)
 

Typedef Documentation

◆ SetP

typedef HtPP SetP

Definition at line 14 of file set.h.

◆ SetU

typedef HtUP SetU

Definition at line 22 of file set.h.

Function Documentation

◆ set_p_add()

RZ_API void set_p_add ( SetP p,
const void *  u 
)

Definition at line 12 of file set.c.

12  {
13  ht_pp_insert(s, u, (void *)1);
14 }
static RzSocket * s
Definition: rtr.c:28

References s.

Referenced by place_nodes().

◆ set_p_contains()

RZ_API bool set_p_contains ( SetP s,
const void *  u 
)

Definition at line 16 of file set.c.

16  {
17  return ht_pp_find(s, u, NULL) != NULL;
18 }
#define NULL
Definition: cris-opc.c:27

References NULL, and s.

Referenced by compute_pos(), and place_nodes().

◆ set_p_delete()

RZ_API void set_p_delete ( SetP s,
const void *  u 
)

Definition at line 20 of file set.c.

20  {
21  ht_pp_delete(s, u);
22 }

References s.

◆ set_p_free()

RZ_API void set_p_free ( SetP p)

Definition at line 24 of file set.c.

24  {
25  ht_pp_free((HtPP *)p);
26 }
void * p
Definition: libc.cpp:67

References p.

Referenced by compute_pos().

◆ set_p_new()

RZ_API SetP* set_p_new ( void  )

Definition at line 8 of file set.c.

8  {
9  return ht_pp_new0();
10 }

◆ set_u_add()

RZ_API void set_u_add ( SetU p,
ut64  u 
)

Definition at line 34 of file set.c.

34  {
35  ht_up_insert(s, u, (void *)1);
36 }

References s.

Referenced by parse_type(), relocation_function_process_noreturn(), rz_analysis_fcn(), rz_analysis_rtti_itanium_recover_all(), rz_dyldcache_symbols_from_locsym(), symbols(), and symbols_from_bin().

◆ set_u_contains()

RZ_API bool set_u_contains ( SetU s,
ut64  u 
)

Definition at line 38 of file set.c.

38  {
39  return ht_up_find(s, u, NULL) != NULL;
40 }

References NULL, and s.

Referenced by parse_type(), rz_analysis_fcn(), rz_analysis_rtti_itanium_recover_all(), rz_dyldcache_symbols_from_locsym(), and symbols().

◆ set_u_delete()

RZ_API void set_u_delete ( SetU s,
ut64  u 
)

Definition at line 42 of file set.c.

42  {
43  ht_up_delete(s, u);
44 }

References s.

Referenced by parse_type().

◆ set_u_free()

RZ_API void set_u_free ( SetU p)

Definition at line 46 of file set.c.

46  {
47  ht_up_free(s);
48 }

References s.

Referenced by parse_type_outer(), rz_analysis_fcn(), rz_analysis_free(), rz_analysis_rtti_itanium_recover_all(), rz_core_analysis_propagate_noreturn_relocs(), and symbols().

◆ set_u_new()

RZ_API SetU* set_u_new ( void  )

Definition at line 30 of file set.c.

30  {
31  return (SetU *)ht_up_new0();
32 }
HtUP SetU
Definition: set.h:22

Referenced by parse_type_outer(), rz_analysis_fcn(), rz_analysis_rtti_itanium_recover_all(), rz_core_analysis_propagate_noreturn_relocs(), and symbols().