complicated build system is mandatory
This commit is contained in:
@@ -241,6 +241,32 @@ typedef struct {
|
||||
int flags;
|
||||
} Crapulor;
|
||||
|
||||
#include "crapstr.h"
|
||||
|
||||
Crapulor CrapL[] = {
|
||||
{ CR_none, str_none },
|
||||
{ CR_cos01, str_cos01 },
|
||||
{ CR_cos010, str_cos010 },
|
||||
{ CR_fx3, str_fx3 },
|
||||
{ CR_end, str_end }
|
||||
};
|
||||
|
||||
#define NBCRAP (sizeof(CrapL)/sizeof(Crapulor))
|
||||
|
||||
void list_crapulors(char *texte)
|
||||
{
|
||||
int idx;
|
||||
|
||||
for (idx=0; idx<NBCRAP; idx++) {
|
||||
|
||||
fprintf(stderr, "%3d : %3d %-12s %5d %f\n", idx,
|
||||
CrapL[idx].id,
|
||||
CrapL[idx].name,
|
||||
CrapL[idx].ipar,
|
||||
CrapL[idx].fpar);
|
||||
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------------------------- */
|
||||
char * crap_name_from_number(int num)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user