[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Oops; make sure that break; and continue; work within SMART...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Oops; make sure that break; and continue; work within SMART...
- From: nickm@seul.org (Nick Mathewson)
- Date: Fri, 15 Oct 2004 16:49:34 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 15 Oct 2004 16:49:51 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv11536/src/common
Modified Files:
util.h
Log Message:
Oops; make sure that break; and continue; work within SMARTLIST_FOREACH
Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- util.h 15 Oct 2004 04:45:47 -0000 1.99
+++ util.h 15 Oct 2004 20:49:31 -0000 1.100
@@ -154,7 +154,7 @@
for(var ## _sl_idx = 0; var ## _sl_idx < var ## _sl_len; \
++var ## _sl_idx) { \
var = smartlist_get((sl),var ## _sl_idx); \
- do {cmd;} while(0); \
+ cmd; \
} } while (0)
/* Map from const char * to void*. Implemented with a splay tree. */