gctx_t *gctx = (gctx_t *)clientData;
if (argc < 2) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], "\" option ?arg arg ...?", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], "\" option ?arg arg ...?", NULL);
return TCL_ERROR;
}
e = cmd2e(argv[0]);
if (!e) {
- Tcl_AppendResult(interp, "Edge \"", argv[0], "\" not found", NULL);
+ Tcl_AppendResult(interp, "edge \"", argv[0], "\" not found", NULL);
return TCL_ERROR;
}
g = agraphof(agtail(e));
if ((a = agfindedgeattr(g, argv2[j]))) {
Tcl_AppendElement(interp, agxget(e, a));
} else {
- Tcl_AppendResult(interp, "No attribute named \"", argv2[j], "\"", NULL);
+ Tcl_AppendResult(interp, "no attribute named \"", argv2[j], "\"", NULL);
return TCL_ERROR;
}
}
Tcl_AppendElement(interp, argv2[j]);
Tcl_AppendElement(interp, agxget(e, a));
} else {
- Tcl_AppendResult(interp, "No attribute named \"", argv2[j], "\"", NULL);
+ Tcl_AppendResult(interp, "no attribute named \"", argv2[j], "\"", NULL);
return TCL_ERROR;
}
}
(CONST84 char ***) &argv2) != TCL_OK)
return TCL_ERROR;
if ((argc2 == 0) || (argc2 % 2)) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0],
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
"\" setattributes attributename attributevalue ?attributename attributevalue? ?...?",
NULL);
Tcl_Free((char *) argv2);
Tcl_Free((char *) argv2);
} else {
if ((argc < 4) || (argc % 2)) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0],
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
"\" setattributes attributename attributevalue ?attributename attributevalue? ?...?",
NULL);
return TCL_ERROR;
return TCL_OK;
} else {
- Tcl_AppendResult(interp, "Bad option \"", argv[1],
+ Tcl_AppendResult(interp, "bad option \"", argv[1],
"\": must be one of:",
"\n\tdelete, listattributes, listnodes,",
"\n\tueryattributes, queryattributevalues,",
GVJ_t *job = gvc->job;
if (argc < 2) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " option ?arg arg ...?\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " option ?arg arg ...?\"", NULL);
return TCL_ERROR;
}
g = cmd2g(argv[0]);
if (!g) {
- Tcl_AppendResult(interp, "Graph \"", argv[0], "\" not found", NULL);
+ Tcl_AppendResult(interp, "graph \"", argv[0], "\" not found", NULL);
return TCL_ERROR;
}
if (MATCHES_OPTION("addedge", argv[1], c, length)) {
if ((argc < 4) || (argc % 2)) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0],
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
" addedge tail head ?attributename attributevalue? ?...?\"",
NULL);
return TCL_ERROR;
tail = cmd2n(argv[2]);
if (!tail) {
if (!(tail = agfindnode(g, argv[2]))) {
- Tcl_AppendResult(interp, "Tail node \"", argv[2], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "tail node \"", argv[2], "\" not found.", NULL);
return TCL_ERROR;
}
}
if (agroot(g) != agroot(agraphof(tail))) {
- Tcl_AppendResult(interp, "Tail node ", argv[2], " is not in the graph.", NULL);
+ Tcl_AppendResult(interp, "tail node ", argv[2], " is not in the graph.", NULL);
return TCL_ERROR;
}
head = cmd2n(argv[3]);
if (!head) {
if (!(head = agfindnode(g, argv[3]))) {
- Tcl_AppendResult(interp, "Head node \"", argv[3], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "head node \"", argv[3], "\" not found.", NULL);
return TCL_ERROR;
}
}
if (agroot(g) != agroot(agraphof(head))) {
- Tcl_AppendResult(interp, "Head node ", argv[3], " is not in the graph.", NULL);
+ Tcl_AppendResult(interp, "head node ", argv[3], " is not in the graph.", NULL);
return TCL_ERROR;
}
e = agedge(g, tail, head, NULL, 1);
return TCL_ERROR;
}
if (!(tail = agfindnode(g, argv[2]))) {
- Tcl_AppendResult(interp, "Tail node \"", argv[2], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "tail node \"", argv[2], "\" not found.", NULL);
return TCL_ERROR;
}
if (!(head = agfindnode(g, argv[3]))) {
- Tcl_AppendResult(interp, "Head node \"", argv[3], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "head node \"", argv[3], "\" not found.", NULL);
return TCL_ERROR;
}
if (!(e = agfindedge(g, tail, head))) {
- Tcl_AppendResult(interp, "Edge \"", argv[2], " - ", argv[3], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "edge \"", argv[2], " - ", argv[3], "\" not found.", NULL);
return TCL_ERROR;
}
Tcl_AppendElement(interp, obj2cmd(e));
return TCL_ERROR;
}
if (!(n = agfindnode(g, argv[2]))) {
- Tcl_AppendResult(interp, "Node not found.", NULL);
+ Tcl_AppendResult(interp, "node not found.", NULL);
return TCL_ERROR;
}
Tcl_AppendResult(interp, obj2cmd(n), NULL);
}
if (i == NO_SUPPORT) {
const char *s = gvplugin_list(gvc, API_render, argv[3]);
- Tcl_AppendResult(interp, "Bad langname: \"", argv[3], "\". Use one of:", s, NULL);
+ Tcl_AppendResult(interp, "bad langname: \"", argv[3], "\". Use one of:", s, NULL);
return TCL_ERROR;
}
chan = Tcl_GetChannel(interp, argv[2], &mode);
if (!chan) {
- Tcl_AppendResult(interp, "Channel not open: \"", argv[2], NULL);
+ Tcl_AppendResult(interp, "channel not open: \"", argv[2], NULL);
return TCL_ERROR;
}
if (!(mode & TCL_WRITABLE)) {
- Tcl_AppendResult(interp, "Channel not writable: \"", argv[2], NULL);
+ Tcl_AppendResult(interp, "channel not writable: \"", argv[2], NULL);
return TCL_ERROR;
}
job->output_file = (FILE *)chan;
gctx_t *gctx = (gctx_t *)clientData;
if (argc < 2) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " option ?arg arg ...?\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " option ?arg arg ...?\"", NULL);
return TCL_ERROR;
}
n = cmd2n(argv[0]);
if (!n) {
- Tcl_AppendResult(interp, "Node \"", argv[0], "\" not found", NULL);
+ Tcl_AppendResult(interp, "node \"", argv[0], "\" not found", NULL);
return TCL_ERROR;
}
g = agraphof(n);
if (MATCHES_OPTION("addedge", argv[1], c, length)) {
if ((argc < 3) || (!(argc % 2))) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " addedge head ?attributename attributevalue? ?...?\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " addedge head ?attributename attributevalue? ?...?\"", NULL);
return TCL_ERROR;
}
head = cmd2n(argv[2]);
if (!head) {
if (!(head = agfindnode(g, argv[2]))) {
- Tcl_AppendResult(interp, "Head node \"", argv[2], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "head node \"", argv[2], "\" not found.", NULL);
return TCL_ERROR;
}
}
if (agroot(g) != agroot(agraphof(head))) {
- Tcl_AppendResult(interp, "Nodes ", argv[0], " and ", argv[2], " are not in the same graph.", NULL);
+ Tcl_AppendResult(interp, "nodes ", argv[0], " and ", argv[2], " are not in the same graph.", NULL);
return TCL_ERROR;
}
e = agedge(g, n, head, NULL, 1);
} else if (MATCHES_OPTION("findedge", argv[1], c, length)) {
if (argc < 3) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " findedge headnodename\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " findedge headnodename\"", NULL);
return TCL_ERROR;
}
if (!(head = agfindnode(g, argv[2]))) {
- Tcl_AppendResult(interp, "Head node \"", argv[2], "\" not found.", NULL);
+ Tcl_AppendResult(interp, "head node \"", argv[2], "\" not found.", NULL);
return TCL_ERROR;
}
if (!(e = agfindedge(g, n, head))) {
- Tcl_AppendResult(interp, "Edge \"", argv[0], " - ", obj2cmd(head), "\" not found.", NULL);
+ Tcl_AppendResult(interp, "edge \"", argv[0], " - ", obj2cmd(head), "\" not found.", NULL);
return TCL_ERROR;
}
Tcl_AppendElement(interp, obj2cmd(head));
if ((a = agfindnodeattr(g, argv2[j]))) {
Tcl_AppendElement(interp, agxget(n, a));
} else {
- Tcl_AppendResult(interp, "No attribute named \"", argv2[j], "\"", NULL);
+ Tcl_AppendResult(interp, "no attribute named \"", argv2[j], "\"", NULL);
return TCL_ERROR;
}
}
Tcl_AppendElement(interp, argv2[j]);
Tcl_AppendElement(interp, agxget(n, a));
} else {
- Tcl_AppendResult(interp, "No attribute named \"", argv2[j], "\"", NULL);
+ Tcl_AppendResult(interp, "no attribute named \"", argv2[j], "\"", NULL);
return TCL_ERROR;
}
}
(CONST84 char ***) &argv2) != TCL_OK)
return TCL_ERROR;
if ((argc2 == 0) || (argc2 % 2)) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0],
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
"\" setattributes attributename attributevalue ?attributename attributevalue? ?...?",
NULL);
Tcl_Free((char *) argv2);
Tcl_Free((char *) argv2);
} else {
if ((argc < 4) || (argc % 2)) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0],
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
"\" setattributes attributename attributevalue ?attributename attributevalue? ?...?",
NULL);
return TCL_ERROR;
return TCL_OK;
} else {
- Tcl_AppendResult(interp, "Bad option \"", argv[1],
+ Tcl_AppendResult(interp, "bad option \"", argv[1],
"\": must be one of:",
"\n\taddedge, listattributes, listedges, listinedges,",
"\n\tlistoutedges, queryattributes, queryattributevalues,",
ictx->myioDisc.afread = myiodisc_afread; /* replace afread to use Tcl Channels */
if (argc < 2) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " fileHandle\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " fileHandle\"", NULL);
return TCL_ERROR;
}
channel = Tcl_GetChannel(interp, argv[1], &mode);
rdr.cur = 0;
if (argc < 2) {
- Tcl_AppendResult(interp, "Wrong # args: should be \"", argv[0], " string\"", NULL);
+ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " string\"", NULL);
return TCL_ERROR;
}
/* agmemread() is broken for our use because it replaces the id disc */