Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f318f2a4
...
f318f2a44edb8c419c3596b9586b2a36430c11e1
authored
2002-08-06 01:32:11 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Changed HAVE_TM_.* to HAVE_STRUCT_TM_.*
1 parent
02bef600
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
mailbox/mutil.c
mailbox/parse822.c
mailbox2/mutil.c
mailbox2/parse822.c
mh/mh_format.c
mailbox/mutil.c
View file @
f318f2a
...
...
@@ -173,7 +173,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
tm
->
tm_year
=
(
year
>
1900
)
?
year
-
1900
:
year
;
tm
->
tm_yday
=
0
;
/* unknown. */
tm
->
tm_wday
=
0
;
/* unknown. */
#if HAVE_TM_ISDST
#if HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown. */
#endif
...
...
@@ -182,7 +182,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
sign
=
(
zone
[
0
]
==
'-'
)
?
-
1
:
+
1
;
tzoffset
=
sign
*
(
hh
*
60
*
60
+
mm
*
60
);
#if HAVE_TM_GMTOFFSET
#if HAVE_
STRUCT_TM_
TM_GMTOFFSET
tm
->
tm_gmtoffset
=
tzoffset
;
#endif
...
...
@@ -248,7 +248,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
tm
->
tm_wday
=
wday
;
tm
->
tm_mon
=
mon
;
tm
->
tm_year
=
(
year
>
1900
)
?
year
-
1900
:
year
;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown. */
#endif
}
...
...
mailbox/parse822.c
View file @
f318f2a
...
...
@@ -1710,13 +1710,13 @@ parse822_date_time (const char **p, const char *e, struct tm *tm,
tm
->
tm_min
=
min
;
tm
->
tm_sec
=
sec
;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown whether it's dst or not */
#endif
#ifdef HAVE_TM_GMTOFF
#ifdef HAVE_
STRUCT_TM_
TM_GMTOFF
tm
->
tm_gmtoff
=
tzoffset
;
#endif
#ifdef HAVE_TM_ZONE
#ifdef HAVE_
STRUCT_TM_
TM_ZONE
tm
->
tm_zone
=
tz_name
;
#endif
}
...
...
mailbox2/mutil.c
View file @
f318f2a
...
...
@@ -159,7 +159,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
tm
->
tm_year
=
(
year
>
1900
)
?
year
-
1900
:
year
;
tm
->
tm_yday
=
0
;
/* unknown. */
tm
->
tm_wday
=
0
;
/* unknown. */
#if HAVE_TM_ISDST
#if HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown. */
#endif
...
...
@@ -168,7 +168,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
sign
=
(
zone
[
0
]
==
'-'
)
?
-
1
:
+
1
;
tzoffset
=
sign
*
(
hh
*
60
*
60
+
mm
*
60
);
#if HAVE_TM_GMTOFFSET
#if HAVE_
STRUCT_TM_
TM_GMTOFFSET
tm
->
tm_gmtoffset
=
tzoffset
;
#endif
...
...
@@ -234,7 +234,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
tm
->
tm_wday
=
wday
;
tm
->
tm_mon
=
mon
;
tm
->
tm_year
=
(
year
>
1900
)
?
year
-
1900
:
year
;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown. */
#endif
}
...
...
mailbox2/parse822.c
View file @
f318f2a
...
...
@@ -1486,13 +1486,13 @@ int parse822_date_time(const char** p, const char* e, struct tm* tm, struct mu_t
tm
->
tm_min
=
min
;
tm
->
tm_sec
=
sec
;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_
STRUCT_TM_
TM_ISDST
tm
->
tm_isdst
=
-
1
;
/* unknown whether it's dst or not */
#endif
#ifdef HAVE_TM_GMTOFF
#ifdef HAVE_
STRUCT_TM_
TM_GMTOFF
tm
->
tm_gmtoff
=
tzoffset
;
#endif
#ifdef HAVE_TM_ZONE
#ifdef HAVE_
STRUCT_TM_
TM_ZONE
tm
->
tm_zone
=
tz_name
;
#endif
}
...
...
mh/mh_format.c
View file @
f318f2a
...
...
@@ -920,7 +920,7 @@ builtin_dst (struct mh_machine *mach)
if
(
_parse_date
(
mach
,
&
tm
,
&
tz
))
return
;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_
STRUCT_TM_
TM_ISDST
mach
->
arg_num
=
tm
.
tm_isdst
;
#else
mach
->
arg_num
=
0
;
...
...
Please
register
or
sign in
to post a comment