Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add an default case to the event type switch in the whatis command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4d36938359f42a82bc50d555747bc6ee |
| User & Date: | drh 2011-11-05 00:30:53.151 |
Context
|
2011-11-05
| ||
| 01:28 | json doc updates and removal of some dead code. check-in: 0c234bdd0a user: stephan tags: trunk | |
| 00:30 | Add an default case to the event type switch in the whatis command. check-in: 4d36938359 user: drh tags: trunk | |
| 00:13 | s/json_tags_for_rid()/json_tags_for_checkin_rid()/g, since that's really what it does. check-in: 4ff2e31cef user: stephan tags: trunk | |
Changes
Changes to src/name.c.
| ︙ | ︙ | |||
431 432 433 434 435 436 437 438 439 440 441 442 443 444 |
const char *zType;
switch( db_column_text(&q,0)[0] ){
case 'c': zType = "Check-in"; break;
case 'w': zType = "Wiki-edit"; break;
case 'e': zType = "Event"; break;
case 't': zType = "Ticket-change"; break;
case 'g': zType = "Tag-change"; break;
}
fossil_print("type: %s by %s on %s\n", zType, db_column_text(&q,2),
db_column_text(&q, 1));
fossil_print("comment: ");
comment_print(db_column_text(&q,3), 10, 78);
}
db_finalize(&q);
| > | 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
const char *zType;
switch( db_column_text(&q,0)[0] ){
case 'c': zType = "Check-in"; break;
case 'w': zType = "Wiki-edit"; break;
case 'e': zType = "Event"; break;
case 't': zType = "Ticket-change"; break;
case 'g': zType = "Tag-change"; break;
default: zType = "Unknown"; break;
}
fossil_print("type: %s by %s on %s\n", zType, db_column_text(&q,2),
db_column_text(&q, 1));
fossil_print("comment: ");
comment_print(db_column_text(&q,3), 10, 78);
}
db_finalize(&q);
|
| ︙ | ︙ |