Browse files

Dropping the "porting library" for OpenVMS, since it is "old" and gives

problems with the latest versions of the CRTL. For the moment only
"unix-style" file names are allowed and one has to define the logical
DECC$FILENAME_UNIX_REPORT to get the correct behaviour of the CRTL in
respect to file-names.
To get support for VMS-style" filenames I will have to change some source
code in future.

            Jouk

 Modified Files:
 	fontforge/Readme.VMS fontforge/Unicode/ucharmap.c
 	fontforge/fontforge/autosave.c fontforge/fontforge/diffstubs.c
 	fontforge/fontforge/startui.c fontforge/fontforge/xlib.opt
 	fontforge/inc/basics.h
  • Loading branch information...
1 parent c5c713b commit 790e003c5d68cef11e709cc3635b0ed49d1589df joukj committed Dec 22, 2008
Showing with 38 additions and 15 deletions.
  1. +14 −0 Readme.VMS
  2. +0 −3 Unicode/ucharmap.c
  3. +12 −4 fontforge/autosave.c
  4. +6 −2 fontforge/diffstubs.c
  5. +6 −2 fontforge/startui.c
  6. +0 −1 fontforge/xlib.opt
  7. +0 −3 inc/basics.h
View
14 Readme.VMS
@@ -1,3 +1,17 @@
+Notes for VMS created on 22 December 2008
+ -removed the "porting library", since it seems to be corrupt for new
+ versions of the CRTL. Now VMS-file names are not translated to
+ "unix-style" and vice versa. Only "unix-style is alolowed for the
+ moment. To force CRTL routines to return "unix-style" filenames one
+ has to define DECC$FILENAME_UNIX_REPORT to ENABLE, before running
+ fontforge.
+ i.e.
+ $ define DECC$FILENAME_UNIX_REPORT ENABLE
+ $ fontforge
+ $ deass DECC$FILENAME_UNIX_REPORT
+
+
+
Notes for VMS created on 17 November 2005
Compilation :
View
3 Unicode/ucharmap.c
@@ -24,9 +24,6 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef VMS /* these three lines from Jacob Jansen, Open VMS port */
-# include <vms_jackets.h>
-#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
View
16 fontforge/autosave.c
@@ -70,12 +70,20 @@ return( editdir );
dir=gethomedir();
if ( dir==NULL )
return( NULL );
- sprintf(buffer,"%s/.FontForge", dir);
- /* We used to use .PfaEdit. So if we don't find a .FontForge look for that*/
+#ifdef __VMS
+ sprintf(buffer,"%s/_FontForge", dir);
+#else
+ sprintf(buffer,"%s/.FontForge", dir);
+#endif
+ /* We used to use .PfaEdit. So if we don't find a .FontForge look for that*/
/* if there is a .PfaEdit, then rename it to .FontForge */
if ( access(buffer,F_OK)==-1 ) {
- snprintf(olddir,sizeof(olddir),"%s/.PfaEdit", dir);
- if ( access(olddir,F_OK)==0 )
+#ifdef __VMS
+ snprintf(olddir,sizeof(olddir),"%s/_PfaEdit", dir);
+#else
+ snprintf(olddir,sizeof(olddir),"%s/.PfaEdit", dir);
+#endif
+ if ( access(olddir,F_OK)==0 )
rename(olddir,buffer);
}
free(dir);
View
8 fontforge/diffstubs.c
@@ -1098,8 +1098,12 @@ char *getPfaEditDir(char *buffer) {
if ( dir==NULL )
return( NULL );
- sprintf(buffer,"%s/.FontForge", dir);
- free(dir);
+#ifdef __VMS
+ sprintf(buffer,"%s/_FontForge", dir);
+#else
+ sprintf(buffer,"%s/.FontForge", dir);
+#endif
+ free(dir);
if ( access(buffer,F_OK)==-1 )
if ( mkdir(buffer,0700)==-1 )
return( NULL );
View
8 fontforge/startui.c
@@ -755,8 +755,12 @@ static OSErr install_apple_event_handlers(void) {
/* some debugging code, for now */
if ( getenv("HOME")!=NULL ) {
char buffer[1024];
- sprintf( buffer, "%s/.FontForge-LogFile.txt", getenv("HOME"));
- logfile = fopen("/Users/gww/LogFile.txt","w");
+#ifdef __VMS
+ sprintf( buffer, "%s/_FontForge-LogFile.txt", getenv("HOME"));
+#else
+ sprintf( buffer, "%s/.FontForge-LogFile.txt", getenv("HOME"));
+#endif
+ logfile = fopen("/Users/gww/LogFile.txt","w");
}
if ( logfile==NULL )
logfile = stderr;
View
1 fontforge/xlib.opt
@@ -10,4 +10,3 @@ sys$library:intl/lib
sys$library:iconv/lib
sys$library:decw$xlibshr.exe/share
sys$library:decw$xextlibshr.exe/share
-sys$share:vms_jackets.exe/share
View
3 inc/basics.h
@@ -27,9 +27,6 @@
#ifndef _BASICS_H
#define _BASICS_H
-#ifdef VMS /* these three lines from Jacob Jansen, Open VMS port */
-# include <vms_jackets.h>
-#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

0 comments on commit 790e003

Please sign in to comment.