changement du message d'erreur pour ne pas embrouiller l'utilisateur

This commit is contained in:
Francois Donnet 2002-04-03 11:27:09 +00:00
parent 9b7d942ab7
commit 508bbcd89c
8 changed files with 18 additions and 18 deletions

View File

@ -440,33 +440,33 @@ extern void control_lib()
"Mapping Warning: 'ZERO' constant cell is missing in library\n");
}
if (!not) {
fprintf(stderr,"Mapping Error: 'NOT' cell is missing in library\n");
fprintf(stderr,"Library Error: 'NOT' cell is missing in library\n");
exit(1);
}
if (!or) {
fprintf(stderr,"Mapping Error: 'OR' cell is missing in library\n");
fprintf(stderr,"Library Error: 'OR' cell is missing in library\n");
exit(1);
}
else if (or->ARITY!=2) {
fprintf(stderr,
"Mapping Error: 'OR 2' is missing in library\n");
"Library Error: 'OR 2' is missing in library\n");
exit(1);
}
if (!and) {
fprintf(stderr,"Mapping Error: 'AND' cell is missing in library\n");
fprintf(stderr,"Library Error: 'AND' cell is missing in library\n");
exit(1);
}
else if (and->ARITY!=2) {
fprintf(stderr,
"Mapping Error: 'AND 2' is missing in library\n");
"Library Error: 'AND 2' is missing in library\n");
exit(1);
}
if (xor && xor->ARITY!=2) {
fprintf(stderr,
"Mapping Error: 'XOR 2' is missing in library\n");
"Library Error: 'XOR 2' is missing in library\n");
exit(1);
}

View File

@ -331,7 +331,7 @@ extern void library_reader(char* cell_directory)
if (!vbe_list /*list of name*/) {
fprintf(stderr,
"Mapping Error: no cell in directory '%s'\n",
"Library Error: no cell in directory '%s'\n",
cell_directory?cell_directory:".");
exit(1);
}

View File

@ -138,7 +138,7 @@ static int getgeneric(befig_list* befig, char* name)
if (begen->NAME==name) return getvalue(begen);
}
fprintf(stderr,"Mapping Error: generic '%s' not found in cell %s\n",
fprintf(stderr,"Library Error: generic '%s' not found in cell %s\n",
name,befig->NAME);
exit(1);
}

View File

@ -167,7 +167,7 @@ static chain_list* loc_adapt_abl(chain_list* expr, float C)
}
ABL_ARITY(expr)=arity; /*put back arity*/
if (!cell) {
fprintf(stderr,"Mapping Error: No cell could match '");
fprintf(stderr,"Library Error: No cell could match '");
display_abl(expr);
if (ABL_ATOM(expr)) fprintf(stderr,"'\n");
else fprintf(stderr,"' (oper arity=%d)\n",ABL_ARITY(expr));
@ -228,7 +228,7 @@ extern chain_list* adapt_abl(chain_list* expr)
if (ABL_ATOM(expr)) {
/*no buffer?!!!*/
fprintf(stderr,"Mapping Error: No cell could match '");
fprintf(stderr,"Library Error: No cell could match '");
display_abl(expr);
fprintf(stderr,"'\n");
exit(1);
@ -244,7 +244,7 @@ extern chain_list* adapt_abl(chain_list* expr)
}
ABL_ARITY(expr)=arity; /*put back arity*/
if (!cell) {
fprintf(stderr,"Mapping Error: No cell could match '");
fprintf(stderr,"Library Error: No cell could match '");
display_abl(expr);
fprintf(stderr,"' (oper arity=%d)\n",ABL_ARITY(expr));
exit(1);

View File

@ -521,7 +521,7 @@ extern cell_list* cell_pattern(chain_list* expr)
&& (ABL_ATOM_VALUE(expr)==getablatomone()
|| ABL_ATOM_VALUE(expr)==getablatomzero())
&& ABL_ATOM_VALUE(expr)!=ABL_ATOM_VALUE(best_cell->ABL)) ) {
fprintf(stderr,"Mapping Error: No cell could match '");
fprintf(stderr,"Library Error: No cell could match '");
display_abl(expr);
if (ABL_ATOM(expr)) fprintf(stderr,"'\n");
else fprintf(stderr,"' (oper arity=%d)\n",ABL_ARITY(expr));
@ -663,7 +663,7 @@ extern cell_list* cell_pattern_bus(biabl_list* biabl)
if (!best_cell) {
fprintf(stderr,"Mapping Error: No cell could match\n");
fprintf(stderr,"Library Error: No cell could match\n");
for ( ; biabl; biabl=biabl->NEXT) {
fprintf(stderr,"BLOCK( ");
display_abl(biabl->CNDABL);
@ -811,7 +811,7 @@ extern cell_list* cell_pattern_reg(biabl_list* biabl)
}
if (!best_cell) {
fprintf(stderr,"Mapping Error: No cell could match\n");
fprintf(stderr,"Library Error: No cell could match\n");
for ( ; biabl; biabl=biabl->NEXT) {
fprintf(stderr,"BLOCK( ");
display_abl(biabl->CNDABL);

View File

@ -167,7 +167,7 @@ extern cell_list* cell_prepare_bus(biabl_list* biabl)
}
fprintf(stderr,"Mapping Error: No cell could match\n");
fprintf(stderr,"Library Error: No cell could match\n");
for ( ; biabl; biabl=biabl->NEXT) {
fprintf(stderr,"BLOCK( ");
display_abl(biabl->CNDABL);
@ -236,7 +236,7 @@ extern cell_list* cell_prepare_reg(biabl_list* biabl)
}
fprintf(stderr,"Mapping Error: No cell could match\n");
fprintf(stderr,"Library Error: No cell could match\n");
for ( ; biabl; biabl=biabl->NEXT) {
fprintf(stderr,"BLOCK( ");
display_abl(biabl->CNDABL);

View File

@ -113,7 +113,7 @@ extern void library_reader(char* cell_directory)
if (!vbe_list /*list of name*/) {
fprintf(stderr,
"Mapping Error: no cell in directory '%s'\n",
"Library Error: no cell in directory '%s'\n",
cell_directory?cell_directory:".");
exit(1);
}

View File

@ -138,7 +138,7 @@ static int getgeneric(befig_list* befig, char* name)
if (begen->NAME==name) return getvalue(begen);
}
fprintf(stderr,"Mapping Error: generic '%s' not found in cell %s\n",
fprintf(stderr,"Library Error: generic '%s' not found in cell %s\n",
name,befig->NAME);
exit(1);
}