mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
[script] Replay multiple files.
Iterate over the argument vector and replay each file on the command line.
This commit is contained in:
parent
c5c04528b5
commit
1042909796
1 changed files with 3 additions and 1 deletions
|
|
@ -85,9 +85,11 @@ main (int argc, char **argv)
|
|||
const cairo_script_interpreter_hooks_t hooks = {
|
||||
.surface_create = _surface_create
|
||||
};
|
||||
int i;
|
||||
|
||||
csi = cairo_script_interpreter_create ();
|
||||
cairo_script_interpreter_install_hooks (csi, &hooks);
|
||||
cairo_script_interpreter_run (csi, argv[1]);
|
||||
for (i = 1; i < argc; i++)
|
||||
cairo_script_interpreter_run (csi, argv[i]);
|
||||
return cairo_script_interpreter_destroy (csi);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue