Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
f3d67eff
Commit
f3d67eff
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-03-02 20:14:00 by sof]
mingw32 tweaks
parent
3a0af2b8
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ghc/lib/std/cbits/Makefile
+2
-1
2 additions, 1 deletion
ghc/lib/std/cbits/Makefile
ghc/lib/std/cbits/progargs.c
+3
-3
3 additions, 3 deletions
ghc/lib/std/cbits/progargs.c
ghc/lib/std/cbits/timezone.h
+17
-6
17 additions, 6 deletions
ghc/lib/std/cbits/timezone.h
with
22 additions
and
10 deletions
ghc/lib/std/cbits/Makefile
+
2
−
1
View file @
f3d67eff
# $Id: Makefile,v 1.
2
199
8/12/02 13:27:12 simonm
Exp $
# $Id: Makefile,v 1.
3
199
9/03/02 20:14:00 sof
Exp $
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
...
...
@@ -13,6 +13,7 @@ C_OBJS = $(C_SRCS:.c=.o)
LIBOBJS
=
$(
C_OBJS
)
SRC_CC_OPTS
+=
-O
-I
$(
GHC_INCLUDE_DIR
)
$(
GhcLibCcOpts
)
#
# Compile the files using the Haskell compiler (ghc really).
#
...
...
This diff is collapsed.
Click to expand it.
ghc/lib/std/cbits/progargs.c
+
3
−
3
View file @
f3d67eff
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: progargs.c,v 1.
1
199
8/12/09 17:09:50
sof Exp $
* $Id: progargs.c,v 1.
2
199
9/03/02 20:14:01
sof Exp $
*
* System.getArgs Runtime Support
*/
...
...
@@ -9,8 +9,8 @@
#include
"Rts.h"
#include
"stgio.h"
extern
char
**
prog_argv
;
extern
int
prog_argc
;
DLLIMPORT
extern
char
**
prog_argv
;
DLLIMPORT
extern
int
prog_argc
;
StgAddr
get_prog_argv
(
void
)
...
...
This diff is collapsed.
Click to expand it.
ghc/lib/std/cbits/timezone.h
+
17
−
6
View file @
f3d67eff
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: timezone.h,v 1.
6
1999/0
2
/0
9 09:43
:0
8
s
imonm
Exp $
* $Id: timezone.h,v 1.
7
1999/0
3
/0
2 20:14
:0
2
s
of
Exp $
*
* Time-zone support header
*/
...
...
@@ -60,10 +60,13 @@
#define GMTOFF(x) (((struct tm *)x)->tm_gmtoff)
#else
/* ! HAVE_TM_ZONE */
# if HAVE_TZNAME || cygwin32_TARGET_OS
#if cygwin32_TARGET_OS
#define tzname _tzname
#endif
# if cygwin32_TARGET_OS
# define tzname _tzname
# endif
# ifndef mingw32_TARGET_OS
extern
char
*
tzname
[
2
];
# endif
# define ZONE(x) (((struct tm *)x)->tm_isdst ? tzname[1] : tzname[0])
# define SETZONE(x,z)
# else
/* ! HAVE_TZNAME */
...
...
@@ -72,16 +75,24 @@ extern char *tzname[2];
# endif
/* ! HAVE_TZNAME */
/* Get the offset in secs from UTC, if (struct tm) doesn't supply it. */
#ifdef mingw32_TARGET_OS
#define timezone _timezone
#else
# ifdef cygwin32_TARGET_OS
# define timezone _timezone
# endif
#endif
#ifndef HAVE_TIMEZONE
extern
TYPE_TIMEZONE
timezone
;
#endif
# if HAVE_ALTZONE
extern
time_t
altzone
;
# define GMTOFF(x) (((struct tm *)x)->tm_isdst ? altzone : timezone)
# define GMTOFF(x) (((struct tm *)x)->tm_isdst ? altzone : timezone
)
# else
/* ! HAVE_ALTZONE */
/* Assume that DST offset is 1 hour ... */
# define GMTOFF(x) (((struct tm *)x)->tm_isdst ? (timezone - 3600) : timezone)
# define GMTOFF(x) (((struct tm *)x)->tm_isdst ? (timezone - 3600) : timezone
)
# endif
/* ! HAVE_ALTZONE */
#endif
/* ! HAVE_TM_ZONE */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment