Fossil

Check-in [9e2f940e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a C99-style comment.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9e2f940ec588a89d004cefd4617c337481c2a49a
User & Date: drh 2016-08-01 12:45:47
Context
2016-08-01
13:50
Disable navigation key binds in the --tk diff screen. Otherwise, pressing "q" in the Search entry box causes the whole diff window to die. check-in: f6d95831 user: drh tags: trunk
12:45
Fix a C99-style comment. check-in: 9e2f940e user: drh tags: trunk
12:40
Use C89 comments (not C99 style). Only the comment delimiters have been changed. Closed-Leaf check-in: c665a2f2 user: dave.vines tags: djvfixcommentstyle
11:01
Minor UI enhancements in the --tk diff display. check-in: 3d746845 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/attach.c.

84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
    const char *zSrc = db_column_text(&q, 1);
    const char *zTarget = db_column_text(&q, 2);
    const char *zFilename = db_column_text(&q, 3);
    const char *zComment = db_column_text(&q, 4);
    const char *zUser = db_column_text(&q, 5);
    const char *zUuid = db_column_text(&q, 6);
    int attachid = db_column_int(&q, 7);
    // type 0 is a wiki page, 1 is a ticket, 2 is a tech note
    int type = db_column_int(&q, 8);
    const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
    int i;
    char *zUrlTail;
    for(i=0; zFilename[i]; i++){
      if( zFilename[i]=='/' && zFilename[i+1]!=0 ){
        zFilename = &zFilename[i+1];







|







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
    const char *zSrc = db_column_text(&q, 1);
    const char *zTarget = db_column_text(&q, 2);
    const char *zFilename = db_column_text(&q, 3);
    const char *zComment = db_column_text(&q, 4);
    const char *zUser = db_column_text(&q, 5);
    const char *zUuid = db_column_text(&q, 6);
    int attachid = db_column_int(&q, 7);
    /* type 0 is a wiki page, 1 is a ticket, 2 is a tech note */
    int type = db_column_int(&q, 8);
    const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
    int i;
    char *zUrlTail;
    for(i=0; zFilename[i]; i++){
      if( zFilename[i]=='/' && zFilename[i+1]!=0 ){
        zFilename = &zFilename[i+1];