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
|
--- PTcommon.c 2006/06/04 21:43:30 1.17
+++ PTcommon.c 2006/06/06 19:55:49 1.18
@@ -52,6 +52,18 @@
int ptQuietFlag = 0;
+void InsertFileName( fullPath *fp, char *fname ){
+#ifdef __Mac__
+ strcpy( (char*)(fp->name), fname );
+ c2pstr( (char*)(fp->name));
+#else
+ char *c = strrchr((char*)(fp->name), PATH_SEP);
+ if(c != NULL) c++;
+ else c = fp->name;
+ strcpy( c, fname );
+#endif
+}
+
void tiffErrorHandler(const char* module, const char* fmt, va_list ap)
{
PrintError("Error in TIFF file (%s) ", module);
--- ptpicker.c 2005/05/07 15:17:07 1.9
+++ ptpicker.c 2006/06/06 19:55:49 1.10
@@ -11,7 +11,6 @@
int loadProject( fullPath *fspec );
int writeProject( AlignInfo *g, fullPath *pFile);
int jpathTofullPath( const char* jpath, fullPath *fp );
-void InsertFileName( fullPath *fp, char *fname );
void BackUp();
void Restore();
void SetAlignInfoDefaults( AlignInfo *a);
@@ -975,18 +974,6 @@
return result;
}
-void InsertFileName( fullPath *fp, char *fname ){
-#ifdef __Mac__
- strcpy( (char*)(fp->name), fname );
- c2pstr( (char*)(fp->name));
-#else
- char *c = strrchr((char*)(fp->name), PATH_SEP);
- if(c != NULL) c++;
- else c = fp->name;
- strcpy( c, fname );
-#endif
-}
-
void BackUp()
{
int i;
|