mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
511adaff84
A substantial number of algorithms have been added, much in the combinatorial section, but also quite a few others. Very many routines have been improved (optimizations and handling corner cases). Everything (well, all demos) pass valgrind, so a handful of bugs have been squished that are next to impossible to find otherwise. Apart from that, a real and ongoing effort has been made for readability.
19 lines
518 B
C
19 lines
518 B
C
--- src/fxtalloca.h.orig 2012-11-21 18:05:08 UTC
|
|
+++ src/fxtalloca.h
|
|
@@ -16,13 +16,13 @@
|
|
#if defined __GNUC__ // GNU compiler
|
|
#define ALLOCA(Type, v, n) Type v[n]
|
|
#else // __GNUC__
|
|
-#include <alloca.h>
|
|
+#include <stdlib.h>
|
|
#define ALLOCA(Type, v, n) Type *v = (Type *)alloca((n)*sizeof(Type))
|
|
#endif // __GNUC__
|
|
|
|
#ifdef FORCE_ALLOCA_H
|
|
#undef ALLOCA
|
|
-#include <alloca.h>
|
|
+#include <stdlib.h>
|
|
//#include <stdlib.h> // for BSD
|
|
#define ALLOCA(Type, v, n) Type *v = (Type *)alloca((n)*sizeof(Type))
|
|
#endif
|