freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 1d79c89: * src/tools/apinames.c: Facilitate OpenVMS l


From: Werner Lemberg
Subject: [freetype2] master 1d79c89: * src/tools/apinames.c: Facilitate OpenVMS linker options.
Date: Wed, 29 Sep 2021 22:22:45 -0400 (EDT)

branch: master
commit 1d79c892cf259577d3e68e2cb2c7bef819e4425d
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/tools/apinames.c: Facilitate OpenVMS linker options.
---
 src/tools/apinames.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/tools/apinames.c b/src/tools/apinames.c
index ff53807..8a8b082 100644
--- a/src/tools/apinames.c
+++ b/src/tools/apinames.c
@@ -22,7 +22,7 @@
 #include <ctype.h>
 
 #define  PROGRAM_NAME     "apinames"
-#define  PROGRAM_VERSION  "0.3"
+#define  PROGRAM_VERSION  "0.4"
 
 #define  LINEBUFF_SIZE  1024
 
@@ -33,6 +33,7 @@ typedef enum  OutputFormat_
   OUTPUT_WINDOWS_DEF,   /* output a Windows .DEF file for Visual C++ or Mingw 
*/
   OUTPUT_BORLAND_DEF,   /* output a Windows .DEF file for Borland C++         
*/
   OUTPUT_WATCOM_LBC,    /* output a Watcom Linker Command File                
*/
+  OUTPUT_VMS_OPT,       /* output an OpenVMS Linker Option File               
*/
   OUTPUT_NETWARE_IMP,   /* output a NetWare ImportFile                        
*/
   OUTPUT_GNU_VERMAP     /* output a version map for GNU or Solaris linker     
*/
 
@@ -200,6 +201,16 @@ names_dump( FILE*         out,
 
     break;
 
+  case OUTPUT_VMS_OPT:
+    fprintf( out, "GSMATCH=LEQUAL,2,0\n"
+                  "CASE_SENSITIVE=YES\n"
+                  "SYMBOL_VECTOR=(-\n" );
+    for ( nn = 0; nn < num_names - 1; nn++ )
+      fprintf( out, "    %s=PROCEDURE,-\n", the_names[nn].name );
+    fprintf( out, "    %s=PROCEDURE)\n", the_names[num_names - 1].name );
+
+    break;
+
   case OUTPUT_NETWARE_IMP:
     if ( dll_name )
       fprintf( out, "  (%s)\n", dll_name );
@@ -352,6 +363,7 @@ usage( void )
     "           -w      output .DEF file for Visual C++ and Mingw\n"
     "           -wB     output .DEF file for Borland C++\n"
     "           -wW     output Watcom Linker Response File\n"
+    "           -wV     output OpenVMS Linker Options File\n"
     "           -wN     output NetWare Import File\n"
     "           -wL     output version map for GNU or Solaris linker\n"
     "\n";
@@ -445,6 +457,10 @@ main( int                 argc,
         format = OUTPUT_WATCOM_LBC;
         break;
 
+      case 'V':
+        format = OUTPUT_VMS_OPT;
+        break;
+
       case 'N':
         format = OUTPUT_NETWARE_IMP;
         break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]