Update of /cvsroot/pure-data/externals/iem/comport/comport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15639/iem/comport/comport
Modified Files: comport.c Log Message: made devicename kludge more readable
Index: comport.c =================================================================== RCS file: /cvsroot/pure-data/externals/iem/comport/comport/comport.c,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** comport.c 2 Nov 2006 04:25:54 -0000 1.26 --- comport.c 29 Dec 2006 05:41:10 -0000 1.27 *************** *** 93,96 **** --- 93,97 ----
#define COMPORT_MAX 99 + #define USE_DEVICENAME 9999 /* use the device name instead of the number */
#ifdef _WIN32 *************** *** 763,768 **** glob_t glob_buffer;
! /* if com_num == 9999, use device name directly, else try port # */ ! if(com_num != 9999) { if(com_num >= COMPORT_MAX) --- 764,769 ---- glob_t glob_buffer;
! /* if com_num == USE_DEVICENAME, use device name directly, else try port # */ ! if(com_num != USE_DEVICENAME) { if(com_num >= COMPORT_MAX) *************** *** 1270,1274 **** { x->serial_device = s; ! x->comhandle = open_serial(9999,x); clock_delay(x->x_clock, x->x_deltime); } --- 1271,1275 ---- { x->serial_device = s; ! x->comhandle = open_serial(USE_DEVICENAME,x); clock_delay(x->x_clock, x->x_deltime); }