emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/systty.h,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/src/systty.h,v
Date: Fri, 01 Aug 2008 12:56:51 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   08/08/01 12:56:49

Index: systty.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/systty.h,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -b -r1.66 -r1.67
--- systty.h    31 Jul 2008 05:33:54 -0000      1.66
+++ systty.h    1 Aug 2008 12:56:49 -0000       1.67
@@ -151,12 +151,19 @@
 
 #ifdef EMACS_HAVE_TTY_PGRP
 
+#if defined (HAVE_TERMIOS)
+
+#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd)))
+#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid)))
+
+#else /* not HAVE_TERMIOS */
 #ifdef TIOCSPGRP
 
 #define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGRP, (pgid)))
 #define EMACS_SET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCSPGRP, (pgid)))
 
 #endif /* TIOCSPGRP */
+#endif /* HAVE_TERMIOS */
 
 #else /* not EMACS_SET_TTY_PGRP */
 
@@ -170,7 +177,7 @@
 
 #if defined (GETPGRP_VOID)
 #  define EMACS_GETPGRP(x) getpgrp()
-#else
+#else /* !GETPGRP_VOID */
 #  define EMACS_GETPGRP(x) getpgrp(x)
 #endif /* !GETPGRP_VOID */
 
@@ -209,30 +216,30 @@
    for dummy get and set definitions.  */
 #ifdef HAVE_TCATTR
   struct termios main;
-#else
+#else /* not HAVE_TCATTR */
 #ifdef HAVE_TERMIO
   struct termio main;
-#else
+#else /* not HAVE_TERMIO */
 #ifdef DOS_NT
   int main;
 #else  /* not DOS_NT */
   struct sgttyb main;
 #endif /* not DOS_NT */
-#endif
-#endif
+#endif /* not HAVE_TERMIO */
+#endif /* not HAVE_TCATTR */
 
 /* If we have TERMIOS, we don't need to do this - they're taken care of
    by the tc*attr calls.  */
 #ifndef HAVE_TERMIOS
 #ifdef HAVE_LTCHARS
   struct ltchars ltchars;
-#endif
+#endif /* HAVE_LTCHARS */
 
 #ifdef HAVE_TCHARS
   struct tchars tchars;
   int lmode;
-#endif
-#endif
+#endif /* HAVE_TCHARS */
+#endif /* not defined HAVE_TERMIOS */
 };
 
 /* Define EMACS_GET_TTY and EMACS_SET_TTY,
@@ -255,9 +262,9 @@
 
 #ifdef TABDLY
 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3)
-#else
+#else /* not TABDLY */
 #define EMACS_TTY_TABS_OK(p) 1
-#endif
+#endif /* not TABDLY */
 
 #else /* not def HAVE_TERMIOS */
 #ifdef HAVE_TERMIO




reply via email to

[Prev in Thread] Current Thread [Next in Thread]