• R/O
  • SSH
  • HTTPS

sagcad: Commit


Commit MetaInfo

Revision56 (tree)
Zeit2009-05-01 18:41:45
Autorkappa

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- sagcad/trunk/src/MemoryLeak.c (revision 55)
+++ sagcad/trunk/src/MemoryLeak.c (revision 56)
@@ -109,7 +109,7 @@
109109 sprintf(str, "%s(%d) : XFREE : illegal pointer(0x%x)\n", GetFileName(file), line, (int)p);
110110 // sprintf(str, "XFREE: %s(%d) : illegal pointer(0x%x)\n", file, line, p);
111111 fputs(str, stream);
112- g_print(str);
112+ g_print("%s",str);
113113 /* ファイルをクローズ */
114114 fclose(stream);
115115 }
@@ -142,12 +142,12 @@
142142 if (p == NULL) {
143143 sprintf(str, "XDUMP : all memory blocks deallcated\n");
144144 fputs(str, stream);
145- g_print(str);
145+ g_print("%s",str);
146146 }
147147 else {
148148 sprintf(str, "XDUMP : memory leaks detected [start]\n");
149149 fputs(str, stream);
150- g_print(str);
150+ g_print("%s",str);
151151 while (p != NULL) {
152152 sprintf(str, "%s(%d) : memory leak(0x%x) : memory leaks [%d]\n",
153153 p->alloc_file,
@@ -155,7 +155,7 @@
155155 (int)p->alloc_ptr,
156156 count++);
157157 fputs(str, stream);
158- g_print(str);
158+ g_print("%s", str);
159159 q = p->next;
160160 free(p);
161161 p = q;
@@ -162,7 +162,7 @@
162162 }
163163 sprintf(str, "XDUMP : memory leaks detected [end]\n");
164164 fputs(str, stream);
165- g_print(str);
165+ g_print("%s",str);
166166 }
167167
168168 /* ファイルをクローズ */
--- sagcad/trunk/src/OutsideProcess.c (revision 55)
+++ sagcad/trunk/src/OutsideProcess.c (revision 56)
@@ -84,7 +84,7 @@
8484 strcpy(path, str);
8585 cutFileName(path);
8686 strcpy(outside_process.opsDir, path);
87- chdir(path);
87+ Ret = chdir(path);
8888
8989 strcpy(outside_process.opsFile, str);
9090 outside_process.now = 0;
@@ -106,7 +106,7 @@
106106 fclose(stream);
107107 //g_print("osp_temp.txt があったから削除\n");
108108 sprintf(str, "rm %s", tempfile);
109- system(str);
109+ Ret = system(str);
110110 }
111111
112112 outside_process_on = 1;
@@ -645,7 +645,7 @@
645645 strcat(tempfile, "osp_temp.txt");
646646
647647 sprintf(str, "mv %s %s", tempfile, op->Work[op->now].keyword);
648- system(str);
648+ Ret = system(str);
649649 ops_next_go(op);
650650 return 1;
651651 break;
--- sagcad/trunk/src/CamProfile.c (revision 55)
+++ sagcad/trunk/src/CamProfile.c (revision 56)
@@ -433,6 +433,7 @@
433433 char XCode[256], YCode[256], NcCode[256], NcMode[256];
434434 char CCode[256], DCode[256], ECode[256], GK[256];
435435 FILE *stream;
436+ int result;
436437
437438
438439 if ( strstr(sagcad_user.NcPath, "CADPATH") != NULL )
@@ -724,7 +725,7 @@
724725 replace(path, "%s", FileName);
725726
726727 command = g_locale_from_utf8(path, -1, NULL, NULL, NULL);
727- system(command);
728+ result = system(command);
728729 g_free(command);
729730 #endif
730731 return 1;
--- sagcad/trunk/src/Command.c (revision 55)
+++ sagcad/trunk/src/Command.c (revision 56)
@@ -265,7 +265,7 @@
265265 {
266266 char str[256], command[256], path[256];
267267 // int ps = 1,
268- int Ret;
268+ int Ret, result;
269269
270270 #ifdef TEST
271271 Ret = MsgBox("ps or eps", "ps File ですか", "それとも eps Fileですか", "ps", "eps", "CANCEL");
@@ -321,7 +321,7 @@
321321
322322 sprintf(command, "%s &", path);
323323 g_print("%s\n", command);
324- system(command);
324+ result = system(command);
325325 #endif
326326
327327
@@ -333,12 +333,12 @@
333333 /* GhostView */
334334 if (Ret == 1) {
335335 sprintf(command, "ghostview %s &", str);
336- system(command);
336+ result = system(command);
337337 }
338338 /* 印刷 */
339339 else if (Ret == 0) {
340340 sprintf(command, "lpr %s &", str);
341- system(command);
341+ result = system(command);
342342 }
343343 #endif
344344
@@ -1281,7 +1281,8 @@
12811281 /* New */
12821282 void cmd_New(void)
12831283 {
1284- system("sagcad &");
1284+ int result;
1285+ result = system("sagcad &");
12851286 }
12861287
12871288
Show on old repository browser