Index: ar_cpcb.c =================================================================== --- ar_cpcb.c (revision 30954) +++ ar_cpcb.c (revision 30955) @@ -164,11 +164,11 @@ lidx = strtol(nl->str, &end, 10); if (*end != '\0') { - rnd_message(PCB_MSG_ERROR, "Ignoring invalid layer index '%s' (not an integer) in line %ld\n", nl->str, (long)nl->line); + rnd_message(RND_MSG_ERROR, "Ignoring invalid layer index '%s' (not an integer) in line %ld\n", nl->str, (long)nl->line); continue; } if ((lidx < 0) || (lidx >= stack->maxlayer)) { - rnd_message(PCB_MSG_ERROR, "Ignoring invalid layer index '%s' (out of range) in line %ld\n", nl->str, (long)nl->line); + rnd_message(RND_MSG_ERROR, "Ignoring invalid layer index '%s' (out of range) in line %ld\n", nl->str, (long)nl->line); continue; } @@ -180,7 +180,7 @@ 0, PCB_PSTK_COMPAT_ROUND, pcb_true); } else - rnd_message(PCB_MSG_ERROR, "Invalid via: not vertical, in line %ld:%ld\n", (long)nl->line, (long)nl->col); + rnd_message(RND_MSG_ERROR, "Invalid via: not vertical, in line %ld:%ld\n", (long)nl->line, (long)nl->col); } else line = pcb_line_new(stack->copper[lidx], lx, ly, x, y, thick, clear, pcb_flag_make(PCB_FLAG_CLEARLINE)); @@ -296,7 +296,7 @@ f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { - rnd_message(PCB_MSG_ERROR, "Can not open %s for read\n", fn); + rnd_message(RND_MSG_ERROR, "Can not open %s for read\n", fn); RND_ACT_IRES(-1); return 0; } @@ -323,7 +323,7 @@ f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { - rnd_message(PCB_MSG_ERROR, "Can not open %s for write\n", fn); + rnd_message(RND_MSG_ERROR, "Can not open %s for write\n", fn); RND_ACT_IRES(-1); return 0; } @@ -330,7 +330,7 @@ if (cpcb_map_nets(PCB, &nmap) != 0) { fclose(f); - rnd_message(PCB_MSG_ERROR, "Failed to map nets\n"); + rnd_message(RND_MSG_ERROR, "Failed to map nets\n"); RND_ACT_IRES(-1); return 0; } @@ -359,7 +359,7 @@ rnd_PCB_ACT_MAY_CONVARG(2, FGW_STR, cpcb, cmd = argv[2].val.str); if (strcmp(scope, "board") != 0) { - rnd_message(PCB_MSG_ERROR, "Only board routing is supported at the moment\n"); + rnd_message(RND_MSG_ERROR, "Only board routing is supported at the moment\n"); RND_ACT_IRES(-1); return 0; } @@ -366,7 +366,7 @@ f = pcb_fopen(&PCB->hidlib, tmpfn, "w"); if (f == NULL) { - rnd_message(PCB_MSG_ERROR, "Can not open temp file %s for write\n", tmpfn); + rnd_message(RND_MSG_ERROR, "Can not open temp file %s for write\n", tmpfn); RND_ACT_IRES(-1); return 0; } @@ -373,7 +373,7 @@ if (cpcb_map_nets(PCB, &nmap) != 0) { fclose(f); - rnd_message(PCB_MSG_ERROR, "Failed to map nets\n"); + rnd_message(RND_MSG_ERROR, "Failed to map nets\n"); RND_ACT_IRES(-1); return 0; } @@ -390,7 +390,7 @@ RND_ACT_IRES(0); } else { - rnd_message(PCB_MSG_ERROR, "Failed to execute c-pcb\n"); + rnd_message(RND_MSG_ERROR, "Failed to execute c-pcb\n"); RND_ACT_IRES(-1); return 0; }