* Added an option to autosearch for your own installed MySQL as before. Note that default setting is to use the internal MySQL. * You can now build 32-bit even if your MySQL is x64 and vice versa. * Recommended MySQL server version for use with provided MySQL client sources is 5.1.x. * If your server version is different, let CMake autofind and use it instead (check EXTERNAL_MYSQL option) --HG-- branch : trunk
28 lines
453 B
C
28 lines
453 B
C
#ifdef DBUG_OFF /* We are testing dbug */
|
|
|
|
int factorial(register int value) {
|
|
if(value > 1) {
|
|
value *= factorial(value-1);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
#else
|
|
|
|
#include <my_global.h>
|
|
|
|
int factorial (
|
|
register int value)
|
|
{
|
|
DBUG_ENTER ("factorial");
|
|
DBUG_PRINT ("find", ("find %d factorial", value));
|
|
if (value > 1) {
|
|
value *= factorial (value - 1);
|
|
}
|
|
DBUG_PRINT ("result", ("result is %d", value));
|
|
DBUG_RETURN (value);
|
|
}
|
|
|
|
#endif
|
|
|