File: hmorph.hc

package info (click to toggle)
craft 3.5-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 18,000 kB
  • ctags: 1,602
  • sloc: cpp: 3,794; makefile: 2,319; ansic: 857; sh: 385
file content (24 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "morph.h"

main (int num_params, char *shell_params [])
  {if   (is_usage)
        usage
   else perform_morph;

.  usage
     {printf ("morph <orig> <dest> <background><regions><num_steps>\n");
      exit   (0);
     }.

.  is_usage
     (num_params < 5).

.  perform_morph
     {morph (shell_params [1],
             shell_params [2],
             shell_params [3],
             shell_params [4],
       atoi  (shell_params [5]));
     }.

  }