Fossil SCM

Change an assert() to a fossil_fatal() to make the error message appear in the web UI.

florian 2024-08-25 17:48 diff-word-wrap
Commit 3aad57dd7c7d01dd16344a04a7f60f11fdc6720fa024f4a2fd96d851873b4705
1 file changed +2 -2
+2 -2
--- src/diff.c
+++ src/diff.c
@@ -1311,11 +1311,11 @@
13111311
htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n);
13121312
blob_append (p->pOut, "</del></td>", 11);
13131313
blob_append (p->pOut, "</tr>\n", 6);
13141314
}
13151315
static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1316
- assert( 0 && "The seemingly unused function dfunifiedReplace() was called!");
1316
+ fossil_fatal("The seemingly unused function dfunifiedReplace() was called!");
13171317
}
13181318
static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
13191319
int i;
13201320
int x;
13211321
LineChange chng;
@@ -1476,11 +1476,11 @@
14761476
blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29);
14771477
blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38);
14781478
blob_append (p->pOut, "</tr>\n", 6);
14791479
}
14801480
static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1481
- assert( 0 && "The seemingly unused function dfsplitReplace() was called!");
1481
+ fossil_fatal("The seemingly unused function dfsplitReplace() was called!");
14821482
}
14831483
static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
14841484
int i;
14851485
int x;
14861486
LineChange chng;
14871487
--- src/diff.c
+++ src/diff.c
@@ -1311,11 +1311,11 @@
1311 htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n);
1312 blob_append (p->pOut, "</del></td>", 11);
1313 blob_append (p->pOut, "</tr>\n", 6);
1314 }
1315 static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1316 assert( 0 && "The seemingly unused function dfunifiedReplace() was called!");
1317 }
1318 static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
1319 int i;
1320 int x;
1321 LineChange chng;
@@ -1476,11 +1476,11 @@
1476 blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29);
1477 blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38);
1478 blob_append (p->pOut, "</tr>\n", 6);
1479 }
1480 static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1481 assert( 0 && "The seemingly unused function dfsplitReplace() was called!");
1482 }
1483 static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
1484 int i;
1485 int x;
1486 LineChange chng;
1487
--- src/diff.c
+++ src/diff.c
@@ -1311,11 +1311,11 @@
1311 htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n);
1312 blob_append (p->pOut, "</del></td>", 11);
1313 blob_append (p->pOut, "</tr>\n", 6);
1314 }
1315 static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1316 fossil_fatal("The seemingly unused function dfunifiedReplace() was called!");
1317 }
1318 static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
1319 int i;
1320 int x;
1321 LineChange chng;
@@ -1476,11 +1476,11 @@
1476 blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29);
1477 blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38);
1478 blob_append (p->pOut, "</tr>\n", 6);
1479 }
1480 static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){
1481 fossil_fatal("The seemingly unused function dfsplitReplace() was called!");
1482 }
1483 static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){
1484 int i;
1485 int x;
1486 LineChange chng;
1487

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button