ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.224 by root, Wed Apr 9 22:07:50 2008 UTC vs.
Revision 1.227 by root, Fri May 2 07:20:01 2008 UTC

754 } 754 }
755} 755}
756 756
757/*****************************************************************************/ 757/*****************************************************************************/
758 758
759/* towards the root */
759void inline_speed 760void inline_speed
760upheap (WT *heap, int k) 761upheap (WT *heap, int k)
761{ 762{
762 WT w = heap [k]; 763 WT w = heap [k];
763 764
775 776
776 heap [k] = w; 777 heap [k] = w;
777 ((W)heap [k])->active = k + 1; 778 ((W)heap [k])->active = k + 1;
778} 779}
779 780
781/* away from the root */
780void inline_speed 782void inline_speed
781downheap (WT *heap, int N, int k) 783downheap (WT *heap, int N, int k)
782{ 784{
783 WT w = heap [k]; 785 WT w = heap [k];
784 786
1185 if (!(flags & EVFLAG_NOENV) 1187 if (!(flags & EVFLAG_NOENV)
1186 && !enable_secure () 1188 && !enable_secure ()
1187 && getenv ("LIBEV_FLAGS")) 1189 && getenv ("LIBEV_FLAGS"))
1188 flags = atoi (getenv ("LIBEV_FLAGS")); 1190 flags = atoi (getenv ("LIBEV_FLAGS"));
1189 1191
1190 if (!(flags & 0x0000ffffUL)) 1192 if (!(flags & 0x0000ffffU))
1191 flags |= ev_recommended_backends (); 1193 flags |= ev_recommended_backends ();
1192 1194
1193#if EV_USE_PORT 1195#if EV_USE_PORT
1194 if (!backend && (flags & EVBACKEND_PORT )) backend = port_init (EV_A_ flags); 1196 if (!backend && (flags & EVBACKEND_PORT )) backend = port_init (EV_A_ flags);
1195#endif 1197#endif
1283#endif 1285#endif
1284 1286
1285 backend = 0; 1287 backend = 0;
1286} 1288}
1287 1289
1290#if EV_USE_INOTIFY
1288void inline_size infy_fork (EV_P); 1291void inline_size infy_fork (EV_P);
1292#endif
1289 1293
1290void inline_size 1294void inline_size
1291loop_fork (EV_P) 1295loop_fork (EV_P)
1292{ 1296{
1293#if EV_USE_PORT 1297#if EV_USE_PORT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines