- Timestamp:
- May 15, 2007, 3:25:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/opihi/cmd.data/section.c
r7917 r13391 4 4 5 5 int N, List; 6 int Ngraph, Xgraph; 6 int kapa; 7 char *name; 7 8 Graphdata graphmode; 8 9 KapaSection section; … … 14 15 } 15 16 16 Ngraph = -1;17 name = NULL; 17 18 if ((N = get_argument (argc, argv, "-n"))) { 18 19 remove_argument (N, &argc, argv); 19 Ngraph = atof(argv[N]);20 name = strcreate (argv[N]); 20 21 remove_argument (N, &argc, argv); 21 22 } 22 if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE); 23 if (!GetGraph (&graphmode, &kapa, name)) return (FALSE); 24 FREE (name); 23 25 24 26 /* list sections */ 25 27 if (argc == 1) { 26 KapaGetSection ( Xgraph, "*");28 KapaGetSection (kapa, "*"); 27 29 gprint (GP_ERR, "USAGE: section name [x y dx dy]\n"); 28 30 return (TRUE); … … 32 34 /* select / show section */ 33 35 if (List) { 34 KapaGetSection ( Xgraph, argv[1]);36 KapaGetSection (kapa, argv[1]); 35 37 } else { 36 KapaSelectSection ( Xgraph, argv[1]);38 KapaSelectSection (kapa, argv[1]); 37 39 } 38 40 return (TRUE); … … 46 48 section.dx = atof (argv[4]); 47 49 section.dy = atof (argv[5]); 48 KapaSetSection ( Xgraph, §ion);50 KapaSetSection (kapa, §ion); 49 51 return (TRUE); 50 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
