aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert2011-01-22 18:56:06 -0800
committerPaul Eggert2011-01-22 18:56:06 -0800
commit51b59d794fe1d4a82fcd842b478657cc93f91595 (patch)
tree25e57573403a13f3fe70934b40bf38c0190fd5ed /src/editfns.c
parent9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff)
downloademacs-51b59d794fe1d4a82fcd842b478657cc93f91595.tar.gz
emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.zip
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 0c4bf4f0d7e..7d70c0fee70 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1397,7 +1397,7 @@ const char *
1397get_system_name (void) 1397get_system_name (void)
1398{ 1398{
1399 if (STRINGP (Vsystem_name)) 1399 if (STRINGP (Vsystem_name))
1400 return (const char *) SDATA (Vsystem_name); 1400 return SSDATA (Vsystem_name);
1401 else 1401 else
1402 return ""; 1402 return "";
1403} 1403}
@@ -1406,7 +1406,7 @@ const char *
1406get_operating_system_release (void) 1406get_operating_system_release (void)
1407{ 1407{
1408 if (STRINGP (Voperating_system_release)) 1408 if (STRINGP (Voperating_system_release))
1409 return (char *) SDATA (Voperating_system_release); 1409 return SSDATA (Voperating_system_release);
1410 else 1410 else
1411 return ""; 1411 return "";
1412} 1412}
@@ -1814,7 +1814,7 @@ usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */)
1814 if (EQ (zone, Qt)) 1814 if (EQ (zone, Qt))
1815 tzstring = "UTC0"; 1815 tzstring = "UTC0";
1816 else if (STRINGP (zone)) 1816 else if (STRINGP (zone))
1817 tzstring = (char *) SDATA (zone); 1817 tzstring = SSDATA (zone);
1818 else if (INTEGERP (zone)) 1818 else if (INTEGERP (zone))
1819 { 1819 {
1820 int abszone = eabs (XINT (zone)); 1820 int abszone = eabs (XINT (zone));
@@ -2003,7 +2003,7 @@ If TZ is t, use Universal Time. */)
2003 else 2003 else
2004 { 2004 {
2005 CHECK_STRING (tz); 2005 CHECK_STRING (tz);
2006 tzstring = (char *) SDATA (tz); 2006 tzstring = SSDATA (tz);
2007 } 2007 }
2008 2008
2009 set_time_zone_rule (tzstring); 2009 set_time_zone_rule (tzstring);
@@ -4677,4 +4677,3 @@ functions if all the text being accessed has this property. */);
4677 defsubr (&Ssave_restriction); 4677 defsubr (&Ssave_restriction);
4678 defsubr (&Stranspose_regions); 4678 defsubr (&Stranspose_regions);
4679} 4679}
4680