radareorg/radare2

Add commands to create, display and process an RTable

Open

#7519 aperta il 18 mag 2017

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)C (3229 fork)batch import
FEEDBACK WANTEDconsoleuienhancementgood first issue

Metriche repository

Star
 (23.826 star)
Metriche merge PR
 (Merge medio 16h 24m) (99 PR mergiate in 30 g)

Descrizione

<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;
}

Guida contributor