Fossil SCM

Latest upstream pikchr.c and pikchr.wasm.

stephan 2022-07-28 15:23 trunk
Commit d5ec3629bb24d1fd819e9f930a9f4f6a473dc9d30cc6dfe7fd842dd9e514cd61
+4 -6
--- extsrc/pikchr.c
+++ extsrc/pikchr.c
@@ -5836,14 +5836,11 @@
58365836
pik_reset_samepath(p);
58375837
do{
58385838
n = pik_next_rpath(p, pErr);
58395839
}while( n<1 );
58405840
if( pHeading ){
5841
- if( rHdg<0.0 || rHdg>360.0 ){
5842
- pik_error(p, pHeading, "headings should be between 0 and 360");
5843
- return;
5844
- }
5841
+ rHdg = fmod(rHdg,360.0);
58455842
}else if( pEdgept->eEdge==CP_C ){
58465843
pik_error(p, pEdgept, "syntax error");
58475844
return;
58485845
}else{
58495846
rHdg = pik_hdg_angle[pEdgept->eEdge];
@@ -7889,13 +7886,14 @@
78897886
/* Print a usage comment for the shell and exit. */
78907887
static void usage(const char *argv0){
78917888
fprintf(stderr, "usage: %s [OPTIONS] FILE ...\n", argv0);
78927889
fprintf(stderr,
78937890
"Convert Pikchr input files into SVG. Filename \"-\" means stdin.\n"
7891
+ "All output goes to stdout.\n"
78947892
"Options:\n"
78957893
" --dont-stop Process all files even if earlier files have errors\n"
7896
- " --svg-only Omit raw SVG without the HTML wrapper\n"
7894
+ " --svg-only Emit raw SVG without the HTML wrapper\n"
78977895
);
78987896
exit(1);
78997897
}
79007898
79017899
/* Send text to standard output, but escape HTML markup */
@@ -8131,6 +8129,6 @@
81318129
81328130
81338131
#endif /* PIKCHR_TCL */
81348132
81358133
8136
-#line 8161 "pikchr.c"
8134
+#line 8159 "pikchr.c"
81378135
--- extsrc/pikchr.c
+++ extsrc/pikchr.c
@@ -5836,14 +5836,11 @@
5836 pik_reset_samepath(p);
5837 do{
5838 n = pik_next_rpath(p, pErr);
5839 }while( n<1 );
5840 if( pHeading ){
5841 if( rHdg<0.0 || rHdg>360.0 ){
5842 pik_error(p, pHeading, "headings should be between 0 and 360");
5843 return;
5844 }
5845 }else if( pEdgept->eEdge==CP_C ){
5846 pik_error(p, pEdgept, "syntax error");
5847 return;
5848 }else{
5849 rHdg = pik_hdg_angle[pEdgept->eEdge];
@@ -7889,13 +7886,14 @@
7889 /* Print a usage comment for the shell and exit. */
7890 static void usage(const char *argv0){
7891 fprintf(stderr, "usage: %s [OPTIONS] FILE ...\n", argv0);
7892 fprintf(stderr,
7893 "Convert Pikchr input files into SVG. Filename \"-\" means stdin.\n"
 
7894 "Options:\n"
7895 " --dont-stop Process all files even if earlier files have errors\n"
7896 " --svg-only Omit raw SVG without the HTML wrapper\n"
7897 );
7898 exit(1);
7899 }
7900
7901 /* Send text to standard output, but escape HTML markup */
@@ -8131,6 +8129,6 @@
8131
8132
8133 #endif /* PIKCHR_TCL */
8134
8135
8136 #line 8161 "pikchr.c"
8137
--- extsrc/pikchr.c
+++ extsrc/pikchr.c
@@ -5836,14 +5836,11 @@
5836 pik_reset_samepath(p);
5837 do{
5838 n = pik_next_rpath(p, pErr);
5839 }while( n<1 );
5840 if( pHeading ){
5841 rHdg = fmod(rHdg,360.0);
 
 
 
5842 }else if( pEdgept->eEdge==CP_C ){
5843 pik_error(p, pEdgept, "syntax error");
5844 return;
5845 }else{
5846 rHdg = pik_hdg_angle[pEdgept->eEdge];
@@ -7889,13 +7886,14 @@
7886 /* Print a usage comment for the shell and exit. */
7887 static void usage(const char *argv0){
7888 fprintf(stderr, "usage: %s [OPTIONS] FILE ...\n", argv0);
7889 fprintf(stderr,
7890 "Convert Pikchr input files into SVG. Filename \"-\" means stdin.\n"
7891 "All output goes to stdout.\n"
7892 "Options:\n"
7893 " --dont-stop Process all files even if earlier files have errors\n"
7894 " --svg-only Emit raw SVG without the HTML wrapper\n"
7895 );
7896 exit(1);
7897 }
7898
7899 /* Send text to standard output, but escape HTML markup */
@@ -8131,6 +8129,6 @@
8129
8130
8131 #endif /* PIKCHR_TCL */
8132
8133
8134 #line 8159 "pikchr.c"
8135
--- extsrc/pikchr.wasm
+++ extsrc/pikchr.wasm
cannot compute difference between binary files
11
--- extsrc/pikchr.wasm
+++ extsrc/pikchr.wasm
0 annot compute difference between binary files
1
--- extsrc/pikchr.wasm
+++ extsrc/pikchr.wasm
0 annot compute difference between binary files
1

Keyboard Shortcuts

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