radareorg/radare2

Add commands to create, display and process an RTable

Open

#7.519 aberto em 18 de mai. de 2017

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)C (3.229 forks)batch import
FEEDBACK WANTEDconsoleuienhancementgood first issue

Métricas do repositório

Stars
 (23.826 stars)
Métricas de merge de PR
 (Mesclagem média 16h 24m) (99 fundiu PRs em 30d)

Description

<pancake> i have implemented the RTable api so we just need to have a command like the agn/age/agg but for tables.

libr/util/table.c:

// TODO: to be implemented
R_API RTable *r_table_clone(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API RTable *r_table_push(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API RTable *r_table_pop(RTable *t) {
	// TODO: implement
	return NULL;
}

R_API void r_table_fromjson(RTable *t, const char *csv) {
	//  TODO
}

R_API void r_table_fromcsv(RTable *t, const char *csv) {
	//  TODO
}

R_API char *r_table_tohtml(RTable *t) {
	// TODO
	return NULL;
}

R_API void r_table_transpose(RTable *t) {
	// When the music stops rows will be cols and cols... rows!
}

R_API void r_table_format(RTable *t, int nth, RTableColumnType *type) {
	// change the format of a specific column
	// change imm base, decimal precission, ...
}

// to compute sum result of all the elements in a column
R_API ut64 r_table_reduce(RTable *t, int nth) {
	// When the music stops rows will be cols and cols... rows!
	return 0;
}

Guia do colaborador