[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch]
From: |
Andy Wingo |
Subject: |
[Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch] |
Date: |
Mon, 25 Jul 2016 09:53:45 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit b2d77c38c45794541e46c235517369a4c8b75d3b
Author: Andy Wingo <address@hidden>
Date: Mon Jul 11 23:15:03 2016 +0200
Rename win32-uname.[ch] to posix-w32.[ch]
* libguile/posix-w32.c:
* libguile/posix-w32.h: Rename from win32-uname.c and win32-uname.h.
* libguile/posix.c:
* libguile/Makefile.am
(address@hidden@_la_SOURCES)
(noinst_HEADERS): Adapt.
---
libguile/Makefile.am | 6 +++---
libguile/{win32-uname.c => posix-w32.c} | 2 +-
libguile/{win32-uname.h => posix-w32.h} | 6 +++---
libguile/posix.c | 8 ++++----
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 855a57f..dab09e1 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with Automake to create Makefile.in
##
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007,
-## 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+## 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Free Software
Foundation, Inc.
##
## This file is part of GUILE.
##
@@ -456,7 +456,7 @@ address@hidden@_la_SOURCES = _scm.h \
dynl.c regex-posix.c \
posix.c net_db.c socket.c \
debug-malloc.c \
- win32-uname.c \
+ posix-w32.c \
locale-categories.h
## delete guile-snarf.awk from the installation bindir, in case it's
@@ -504,7 +504,7 @@ noinst_HEADERS = conv-integer.i.c conv-uinteger.i.c
\
elf.h \
srfi-14.i.c \
quicksort.i.c \
- win32-uname.h \
+ posix-w32.h \
private-options.h ports-internal.h
# vm instructions
diff --git a/libguile/win32-uname.c b/libguile/posix-w32.c
similarity index 99%
rename from libguile/win32-uname.c
rename to libguile/posix-w32.c
index 5349f14..f1251b2 100644
--- a/libguile/win32-uname.c
+++ b/libguile/posix-w32.c
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <string.h>
-#include "win32-uname.h"
+#include "posix-w32.h"
/*
* Get name and information about current kernel.
diff --git a/libguile/win32-uname.h b/libguile/posix-w32.h
similarity index 95%
rename from libguile/win32-uname.h
rename to libguile/posix-w32.h
index 4b74981..b4c6510 100644
--- a/libguile/win32-uname.h
+++ b/libguile/posix-w32.h
@@ -1,7 +1,7 @@
/* classes: h_files */
-#ifndef SCM_WIN32_UNAME_H
-#define SCM_WIN32_UNAME_H
+#ifndef SCM_POSIX_W32_H
+#define SCM_POSIX_W32_H
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
*
@@ -49,4 +49,4 @@ struct utsname
int uname (struct utsname * uts);
-#endif /* SCM_WIN32_UNAME_H */
+#endif /* SCM_POSIX_W32_H */
diff --git a/libguile/posix.c b/libguile/posix.c
index 8b3fabc..72f105f 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -81,6 +81,10 @@
#include "libguile/threads.h"
+#ifdef __MINGW32__
+# include "posix-w32.h"
+#endif
+
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
@@ -1427,10 +1431,6 @@ scm_open_process (SCM mode, SCM prog, SCM args)
#undef FUNC_NAME
#endif /* HAVE_START_CHILD */
-#ifdef __MINGW32__
-# include "win32-uname.h"
-#endif
-
#if defined (HAVE_UNAME) || defined (__MINGW32__)
SCM_DEFINE (scm_uname, "uname", 0, 0, 0,
(),
- [Guile-commits] 02/27: Unconditionally include <time.h> from Gnulib., (continued)
- [Guile-commits] 02/27: Unconditionally include <time.h> from Gnulib., Andy Wingo, 2016/07/25
- [Guile-commits] 09/27: Ignore meta/build-env, Andy Wingo, 2016/07/25
- [Guile-commits] 03/27: Add missing 'const' qualifier., Andy Wingo, 2016/07/25
- [Guile-commits] 05/27: Provide `kill' only if supported by the host, Andy Wingo, 2016/07/25
- [Guile-commits] 27/27: Avoid compilation warnings about alloca in read.c, Andy Wingo, 2016/07/25
- [Guile-commits] 04/27: More robust setuid, setgid, etc detection, Andy Wingo, 2016/07/25
- [Guile-commits] 17/27: doc: Do not gender the programmer., Andy Wingo, 2016/07/25
- [Guile-commits] 24/27: Use non-deprecated HAVE_STRUCT_TM_TM_ZONE, Andy Wingo, 2016/07/25
- [Guile-commits] 07/27: More specific status:exit-val et al compilation guards, Andy Wingo, 2016/07/25
- [Guile-commits] 12/27: Add popen feature, Andy Wingo, 2016/07/25
- [Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch],
Andy Wingo <=
- [Guile-commits] 16/27: Update uname implementation in posix-w32, Andy Wingo, 2016/07/25
- [Guile-commits] 22/27: Gnulib: Add dirname-lgpl., Andy Wingo, 2016/07/25
- [Guile-commits] 14/27: Fix MinGW build error, Andy Wingo, 2016/07/25
- [Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup, Andy Wingo, 2016/07/25
- [Guile-commits] 13/27: Update NEWS, Andy Wingo, 2016/07/25
- [Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC, Andy Wingo, 2016/07/25
- [Guile-commits] 08/27: Factor start_child out of open_process, Andy Wingo, 2016/07/25
- [Guile-commits] 21/27: doc: Add unquote and unquote-splicing examples., Andy Wingo, 2016/07/25
- [Guile-commits] 23/27: Use gnulib for basename / dirname, Andy Wingo, 2016/07/25
- [Guile-commits] 15/27: Fix unused static variables in net_db.c, Andy Wingo, 2016/07/25