1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
--- Robot/main.c.orig 2005-05-03 17:14:51.000000000 +0200
+++ Robot/main.c 2009-04-11 21:57:57.000000000 +0200
@@ -561,19 +561,19 @@
|| streq(argv[i], "--help") ){
printf("Robot version %-1.2f patch %d\n\n",
VERSION, PATCHLEVEL);
- printf("robot (generic-tool-options)\n\
--arraysize [size of arrays, default is %d]\n\
--plotscale [scale factor]\n\
--portrait\n\
--landscape (default)\n\
--notol (not Open-look - adds some extra quit buttons)\n\
--stdin (reads commands from standard input instead of GUI)\n\
--v (print version number and quit)\n\
--help/-h (prints this information and quits)\n\
-(optional command file name)\n\n\
-For more information see help available in the program under\n\
-the \"About\" option or visit:\n\
-%s\n", msize, WEB_HELP);
+ printf("robot (generic-tool-options)\n");
+ printf("-arraysize [size of arrays, default is %d]\n");
+ printf("-plotscale [scale factor]\n");
+ printf("-portrait\n");
+ printf("-landscape (default)\n");
+ printf("-notol (not Open-look - adds some extra quit buttons)\n");
+ printf("-stdin (reads commands from standard input instead of GUI)\n");
+ printf("-v (print version number and quit)\n");
+ printf("-help/-h (prints this information and quits)\n");
+ printf("(optional command file name)\n\n");
+ printf("For more information see help available in the program under\n");
+ printf("the \"About\" option or visit:\n");
+ printf("%s\n", msize, WEB_HELP);
fstop_();
}
@@ -2130,7 +2130,7 @@
/* remove trailing blanks */
for (i = 0; i < strlen(instruction); i++){
if(instruction[i] == ' ')
- instruction[i] = (char) NULL;}
+ instruction[i] = 0;}
activate(instruction);
}
@@ -3063,7 +3063,7 @@
strncpy(direc, dir, *n);
- direc[*n] = (char) NULL;
+ direc[*n] = 0;
/* null directory path is assumed to be cd to home */
@@ -3915,7 +3915,7 @@
&& strlen(sys_buffer) > 4)
sys_buffer[strlen(sys_buffer) - strlen(".rob")]
- = (char) NULL;
+ = 0;
/* Only add a .ps if there isn't one there to start with */
if(!taileq(sys_buffer, ".ps")) strcat(sys_buffer, ".ps");
|