list[i][j] = '\0';
}
}
- if (list[l] == NULL) {
- VERBOSE (ERROR, fprintf (stderr, "can't allocate memory\n"));
- exit (1);
+ if (list[l] != NULL) {
+ l++;
}
- l++;
}
for (i = 0; i < NB_FUNCTIONS; i++) {
list[l] = strdup ((functions + i)->keyword);
- if (list[l] == NULL) {
- VERBOSE (ERROR, fprintf (stderr, "can't allocate memory\n"));
- exit (1);
+ if (list[l] != NULL) {
+ l++;
}
- l++;
}
for (i = 0; i < NB_CONSTANTS; i++) {
list[l] = strdup ((constants + i)->keyword);
- if (list[l] == NULL) {
- VERBOSE (ERROR, fprintf (stderr, "can't allocate memory\n"));
- exit (1);
+ if (list[l] != NULL) {
+ l++;
}
- l++;
}
for (i = 0; i < NB_SYMBOLS; i++) {
list[l] = strdup (symbols[i]);
- if (list[l] == NULL) {
- VERBOSE (ERROR, fprintf (stderr, "can't allocate memory\n"));
- exit (1);
+ if (list[l] != NULL) {
+ l++;
}
- l++;
}
return (list);