Fossil

Check-in [5c301089]
Login

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

Overview
Comment:Fix an issue with mkcss.c that gcc was ok with but failed on msvc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5c30108909326a4f01f1aafc9cc175fc0876c4acadf2c8c7e9fbf6c4a38c13d8
User & Date: drh 2017-11-30 00:22:35
Context
2017-11-30
00:27
Fix an problem with the MSC makefile. check-in: 75fd7afc user: drh tags: trunk
00:22
Fix an issue with mkcss.c that gcc was ok with but failed on msvc. check-in: 5c301089 user: drh tags: trunk
2017-11-29
19:18
Generate the big cssDefaultList table in the middle of style.c using default_css.txt as the source. The default_css.txt file will be easier to understand, edit, and comment. check-in: 5c9c51be user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/mkcss.c.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*/
static void clang_puts(FILE *out, const char *z){
  int i;
  while( z[0] ){
    for(i=0; z[i] && z[i]!='"' && z[i]!='\\'; i++){}
    fprintf(out, "%.*s", i, z);
    if( z[i] ){
      fprintf(out, "\\\%c", z[i]);
      z += i+1;
    }else{
      z += i;
    }
  }
}








|







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*/
static void clang_puts(FILE *out, const char *z){
  int i;
  while( z[0] ){
    for(i=0; z[i] && z[i]!='"' && z[i]!='\\'; i++){}
    fprintf(out, "%.*s", i, z);
    if( z[i] ){
      fprintf(out, "\\%c", z[i]);
      z += i+1;
    }else{
      z += i;
    }
  }
}