[PD-cvs] externals/iem/comport/comport comport.c,1.2,1.3
Winfried Ritsch
ritsch at users.sourceforge.net
Thu Oct 27 13:17:06 CEST 2005
Update of /cvsroot/pure-data/externals/iem/comport/comport
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28753
Modified Files:
comport.c
Log Message:
optional WINDOWS2000 Patch und comments
Index: comport.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/comport/comport/comport.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** comport.c 13 Apr 2005 15:52:43 -0000 1.2
--- comport.c 27 Oct 2005 11:17:04 -0000 1.3
***************
*** 326,330 ****
--- 326,334 ----
0,
OPEN_EXISTING,
+ #ifdef WIN2000
+ 0,
+ #elif
FILE_FLAG_OVERLAPPED,
+ #endif
0);
***************
*** 683,691 ****
err = 0;
! // if (!SetCommMask(x->comhandle, EV_RXCHAR))
! // post(" Error setting communications event mask for serial device");
! // for ( ; ; ) {
! // if (WaitCommEvent(x->comhandle, &dwCommEvent,NULL)) {
do {
--- 687,697 ----
err = 0;
! /*
! if (!SetCommMask(x->comhandle, EV_RXCHAR))
! post(" Error setting communications event mask for serial device");
! for ( ; ; ) {
! if (WaitCommEvent(x->comhandle, &dwCommEvent,NULL)) {
! */
do {
***************
*** 698,708 ****
}
} while (dwRead);
! // }
! // else{
! // post("serial dev: Error in WaitCommEvent");
! // break;
! // }
! //}
}
#else
{
--- 704,716 ----
}
} while (dwRead);
! /*
! }
! else{
! post("serial dev: Error in WaitCommEvent");
! break;
! }
! }
}
+ */
#else
{
***************
*** 788,792 ****
clock_delay(x->x_clock, x->x_deltime);
!
return x;
}
--- 796,800 ----
clock_delay(x->x_clock, x->x_deltime);
!
return x;
}
More information about the Pd-cvs
mailing list