diff options
author | Tianqian Zhu <zhutianqian@gmail.com> | 2020-07-18 20:09:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 08:09:29 -0400 |
commit | cb5fc1bd5989d705d974296cf60d5a3642958be4 (patch) | |
tree | 22c6689b2487de20f2330e3cef89d1db51693434 /api_examples | |
parent | 5ac2a6c90d7d133c0b8c767f01384329fd748971 (diff) | |
download | ImageMagick-cb5fc1bd5989d705d974296cf60d5a3642958be4.tar.gz |
Fix compiler errors for the api examples (#2289)
Diffstat (limited to 'api_examples')
-rw-r--r-- | api_examples/cli_operators.c | 16 | ||||
-rw-r--r-- | api_examples/cli_process.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/api_examples/cli_operators.c b/api_examples/cli_operators.c index d39a43fcd..22be78e7e 100644 --- a/api_examples/cli_operators.c +++ b/api_examples/cli_operators.c @@ -34,14 +34,14 @@ int main(int argc, char **argv) cli_wand = AcquireMagickCLI((ImageInfo *) NULL,(ExceptionInfo *) NULL); - CLISettingOptionInfo (cli_wand, "-size", "100x100"); - CLISpecialOperator (cli_wand, "-read", "xc:red"); - CLISpecialOperator (cli_wand, "(", NULL); - CLISpecialOperator (cli_wand, "-read", "rose:"); - CLISimpleOperatorImages (cli_wand, "-rotate", "-90", NULL); - CLISpecialOperator (cli_wand, ")", NULL); - CLIListOperatorImages (cli_wand, "+append", NULL, NULL); - CLIListOperatorImages (cli_wand, "-write", "show:", NULL); + CLIOption (cli_wand, "-size", "100x100"); + CLIOption (cli_wand, "-read", "xc:red"); + CLIOption (cli_wand, "(", NULL); + CLIOption (cli_wand, "-read", "rose:"); + CLIOption (cli_wand, "-rotate", "-90", NULL); + CLIOption (cli_wand, ")", NULL); + CLIOption (cli_wand, "+append", NULL, NULL); + CLIOption (cli_wand, "-write", "show:", NULL); /* Note use of 'True' to report all exceptions - including fatals */ if ( CLICatchException(cli_wand,MagickTrue) != MagickFalse ) diff --git a/api_examples/cli_process.c b/api_examples/cli_process.c index 1f18c413c..13cbc8367 100644 --- a/api_examples/cli_process.c +++ b/api_examples/cli_process.c @@ -38,7 +38,7 @@ int main(int argc, char **argv) MagickCoreGenesis(argv[0],MagickFalse); cli_wand = AcquireMagickCLI((ImageInfo *) NULL,(ExceptionInfo *) NULL); - ProcessCommandOptions(cli_wand, arg_count, args, 0, MagickCommandOptionFlags); + ProcessCommandOptions(cli_wand, arg_count, args, 0); /* Note use of 'True' to report all exceptions - including non-fatals */ if ( CLICatchException(cli_wand,MagickTrue) != MagickFalse ) |