[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-2052-gd24553c
[email protected] (Robin Watts) Tue, 7 Jan 2020 19:45:17 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via d24553cea74bda19ae7e3dd5a60302fdc49d1fb2 (commit)
from 147591b7a8390d0e98418851b60ac67e659cf2f1 (commit)
----------------------------------------------------------------------
commit d24553cea74bda19ae7e3dd5a60302fdc49d1fb2
Author: Robin Watts <[email protected]>
Date: Tue Jan 7 19:43:07 2020 +0000
Fix indentation problems in examples in API.htm
diff --git a/doc/API.htm b/doc/API.htm
index ca718fb..faee4d5 100644
--- a/doc/API.htm
+++ b/doc/API.htm
@@ -839,18 +839,18 @@ int main(int argc, char *argv[])
code = gsapi_new_instance(&minst, NULL);
if (code < 0)
- return 1;
+ return 1;
code = gsapi_set_arg_encoding(minst, GS_ARG_ENCODING_UTF8);
if (code == 0)
code = gsapi_init_with_args(minst, gsargc, gsargv);
code1 = gsapi_exit(minst);
if ((code == 0) || (code == gs_error_Quit))
- code = code1;
+ code = code1;
gsapi_delete_instance(minst);
if ((code == 0) || (code == gs_error_Quit))
- return 0;
+ return 0;
return 1;
}
</pre>
@@ -880,13 +880,13 @@ gsdll_stdin(void *instance, char *buf, int len)
int ch;
int count = 0;
while (count < len) {
- ch = fgetc(stdin);
- if (ch == EOF)
- return 0;
- *buf++ = ch;
- count++;
- if (ch == '\n')
- break;
+ ch = fgetc(stdin);
+ if (ch == EOF)
+ return 0;
+ *buf++ = ch;
+ count++;
+ if (ch == '\n')
+ break;
}
return count;
}
@@ -917,21 +917,21 @@ int main(int argc, char *argv[])
code = gsapi_new_instance(&minst, NULL);
if (code < 0)
- return 1;
+ return 1;
gsapi_set_stdio(minst, gsdll_stdin, gsdll_stdout, gsdll_stderr);
code = gsapi_set_arg_encoding(minst, GS_ARG_ENCODING_UTF8);
if (code == 0)
code = gsapi_init_with_args(minst, argc, argv);
if (code == 0)
- code = gsapi_run_string(minst, start_string, 0, &exit_code);
+ code = gsapi_run_string(minst, start_string, 0, &exit_code);
code1 = gsapi_exit(minst);
if ((code == 0) || (code == gs_error_Quit))
- code = code1;
+ code = code1;
gsapi_delete_instance(minst);
if ((code == 0) || (code == gs_error_Quit))
- return 0;
+ return 0;
return 1;
}
</pre>
@@ -950,27 +950,27 @@ int main(int argc, char *argv[])
code = gsapi_new_instance(&minst, NULL);
if (code < 0)
- return 1;
+ return 1;
code = gsapi_set_arg_encoding(minst, GS_ARG_ENCODING_UTF8);
if (code == 0)
code = gsapi_init_with_args(minst, argc, argv);
if (code == 0) {
- gsapi_run_string_begin(minst, 0, &exit_code);
- gsapi_run_string_continue(minst, command, strlen(command), 0, &exit_code);
- gsapi_run_string_continue(minst, "qu", 2, 0, &exit_code);
- gsapi_run_string_continue(minst, "it", 2, 0, &exit_code);
- gsapi_run_string_end(minst, 0, &exit_code);
+ gsapi_run_string_begin(minst, 0, &exit_code);
+ gsapi_run_string_continue(minst, command, strlen(command), 0, &exit_code);
+ gsapi_run_string_continue(minst, "qu", 2, 0, &exit_code);
+ gsapi_run_string_continue(minst, "it", 2, 0, &exit_code);
+ gsapi_run_string_end(minst, 0, &exit_code);
}
code1 = gsapi_exit(minst);
if ((code == 0) || (code == gs_error_Quit))
- code = code1;
+ code = code1;
gsapi_delete_instance(minst);
if ((code == 0) || (code == gs_error_Quit))
- return 0;
+ return 0;
return 1;
}
</pre>
Summary of changes:
doc/API.htm | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)