lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/6] git commit: Add accessor for static library file extension.
Date Tue, 07 Oct 2014 22:52:44 GMT
Repository: lucy-charmonizer
Updated Branches:
  refs/heads/master e1cc19923 -> 98f53fb09


Add accessor for static library file extension.


Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/0fc3d046
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/0fc3d046
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/0fc3d046

Branch: refs/heads/master
Commit: 0fc3d046958ccd64eee7f678ba79eff504fe29f2
Parents: e1cc199
Author: Marvin Humphrey <marvin@rectangular.com>
Authored: Thu Sep 18 16:44:26 2014 -0700
Committer: Marvin Humphrey <marvin@rectangular.com>
Committed: Thu Sep 18 16:51:08 2014 -0700

----------------------------------------------------------------------
 src/Charmonizer/Core/OperatingSystem.c | 8 ++++++++
 src/Charmonizer/Core/OperatingSystem.h | 5 +++++
 2 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/0fc3d046/src/Charmonizer/Core/OperatingSystem.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/OperatingSystem.c b/src/Charmonizer/Core/OperatingSystem.c
index 72d0b16..0e1abf6 100644
--- a/src/Charmonizer/Core/OperatingSystem.c
+++ b/src/Charmonizer/Core/OperatingSystem.c
@@ -34,6 +34,7 @@ static struct {
     char dev_null[20];
     char dir_sep[2];
     char exe_ext[5];
+    char static_lib_ext[5];
     char shared_lib_ext[7];
     char local_command_start[3];
     int  shell_type;
@@ -71,6 +72,7 @@ chaz_OS_init(void) {
         strcpy(chaz_OS.dev_null, "/dev/null");
         strcpy(chaz_OS.dir_sep, "/");
         strcpy(chaz_OS.exe_ext, "");
+        strcpy(chaz_OS.static_lib_ext, ".a");
         if (memcmp(chaz_OS.name, "darwin", 6) == 0) {
             strcpy(chaz_OS.shared_lib_ext, ".dylib");
         }
@@ -88,6 +90,7 @@ chaz_OS_init(void) {
         strcpy(chaz_OS.dir_sep, "\\");
         strcpy(chaz_OS.exe_ext, ".exe");
         strcpy(chaz_OS.shared_lib_ext, ".dll");
+        strcpy(chaz_OS.static_lib_ext, ".lib");
         strcpy(chaz_OS.local_command_start, ".\\");
         chaz_OS.shell_type = CHAZ_OS_CMD_EXE;
     }
@@ -123,6 +126,11 @@ chaz_OS_shared_lib_ext(void) {
 }
 
 const char*
+chaz_OS_static_lib_ext(void) {
+    return chaz_OS.static_lib_ext;
+}
+
+const char*
 chaz_OS_dev_null(void) {
     return chaz_OS.dev_null;
 }

http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/0fc3d046/src/Charmonizer/Core/OperatingSystem.h
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/OperatingSystem.h b/src/Charmonizer/Core/OperatingSystem.h
index 84a7ac0..7c01db8 100644
--- a/src/Charmonizer/Core/OperatingSystem.h
+++ b/src/Charmonizer/Core/OperatingSystem.h
@@ -89,6 +89,11 @@ chaz_OS_exe_ext(void);
 const char*
 chaz_OS_shared_lib_ext(void);
 
+/* Return the extension for a static library on this system.
+ */
+const char*
+chaz_OS_static_lib_ext(void);
+
 /* Return the equivalent of /dev/null on this system.
  */
 const char*


Mime
View raw message