36static int compar_int(
const void *int_1_p,
const void *int_2_p)
38 int *int_1 = (
int *)int_1_p;
39 int *int_2 = (
int *)int_2_p;
41 return ( *int_1 - *int_2);
51 if (tab == NULL)
return cnt;
55 if (tab[i] != keep_id)
75 if (tab[i] != keep_id)
104 for (i=0; i<nb_dataline; i++)
113 if (strlen(line) > 0)
146 for (i=0; i<nb_dataline; i++)
155 if (strlen(line) > 0)
183 if (strncmp(line,
"ENGLISH",7) == 0)
198 while ( (
analyse_getline(line, infile, infilename, linecount_p) != -1) &&
199 ( strncmp(line,
"/END", 4) != 0 ))
202 if (strstr(line,
"/ANALYSE/MESSAGE/") != NULL) (*cnt_p)++;
207void analyse_count_check(
char *line, FILE *infile,
char *infilename,
int *linecount_p,
int *cnt_check_p,
int *cnt_group_p)
212 while ( (
analyse_getline(line, infile, infilename, linecount_p) != -1) &&
213 ( strncmp(line,
"/END", 4) != 0 ))
215 if (strstr(line,
"/ANALYSE/CHECK/GROUP") != NULL)
219 else if ( strstr(line,
"/ANALYSE/CHECK/") != NULL)
228 int *cnt_p,
int *size_p,
int **tab_p)
238 while ( (
analyse_getline(line, infile, infilename, linecount_p) != -1) &&
239 ( strncmp(line,
"/END", 4) != 0 ))
242 if (strstr(line,
"/ANALYSE/MESSAGE/") != NULL)
246 sscanf_s(key,
"%d", *tab_p+ step );
248 sscanf(key,
"%d", *tab_p+ step );
264 int *nb_check_group_p,
int *size_p,
int **tab_p,
265 int *nb_check_p,
int *size2_p,
int **tab2_p)
268 int nb_check, nb_check_group;
270 *size_p = *nb_check_group_p;
271 *size2_p = *nb_check_p;
279 while ( (
analyse_getline(line, infile, infilename, linecount_p) != -1) &&
280 ( strncmp(line,
"/END", 4) != 0 ))
282 if (strstr(line,
"/ANALYSE/CHECK/GROUP") != NULL)
286 sscanf_s(key,
"%d", *tab_p+nb_check_group );
288 sscanf(key,
"%d", *tab_p+nb_check_group );
292 else if (strstr(line,
"/ANALYSE/CHECK") != NULL)
296 sscanf_s(key,
"%d", *tab2_p+nb_check);
298 sscanf(key,
"%d", *tab2_p+nb_check);
309 *nb_check_group_p =
count_ids(*size_p, *tab_p);
310 *nb_check_p =
count_ids(*size2_p, *tab2_p);
#define ANALYSE_SIZE_OF_LINE
int analyse_getsize_of_enum(int *nb_line, int *nb_dataline, FILE *infile, char *infilename, int *linecount)
int analyse_getkey(int pos, char *line, char *name)
int analyse_getline(char line[], FILE *infile, char *infilename, int *linecount)
void * analyse_malloc(size_t size)
void analyse_free(void *block)
char * analyse_string_fit_start_end(char *name)
recursive subroutine qsort(a, idx, first, last)