"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/classes/misc/lowtab.c" between
Firebird-3.0.2.32703-0.tar.bz2 and Firebird-3.0.4.33054-0.tar.bz2

About: Firebird is a relational database offering many ANSI SQL standard features.

lowtab.c  (Firebird-3.0.2.32703-0.tar.bz2):lowtab.c  (Firebird-3.0.4.33054-0.tar.bz2)
skipping to change at line 29 skipping to change at line 29
* *
* Copyright (c) 2015 Alexander Peshkoff <peshkoff@mail.ru> * Copyright (c) 2015 Alexander Peshkoff <peshkoff@mail.ru>
* and all contributors signed below. * and all contributors signed below.
* *
* All Rights Reserved. * All Rights Reserved.
* Contributor(s): ______________________________________. * Contributor(s): ______________________________________.
*/ */
#include <stdio.h> #include <stdio.h>
main(int ac, char** av) int main(int ac, char** av)
{ {
int mode = ac < 2 ? 0 : ((*av[1]) - '0'); int mode = ac < 2 ? 0 : ((*av[1]) - '0');
int cur = 24; int cur = 32;
int prev = 0; int prev = 0;
const int dstep = 8; const int dstep = 16;
int limit = 1024; int limit = 1024;
int slot = 0; int slot = 0;
while (cur <= limit) while (cur <= limit)
{ {
if (mode == 0) if (mode == 0)
printf ("\t%d, // %d\n", slot, cur); printf ("\t%d, // %d\n", slot, cur);
if (((cur - prev) * 10) / cur > 0) if (((cur - prev) * 10) / cur > 0)
{ {
skipping to change at line 57 skipping to change at line 57
printf ("\t%d, // %d\n", cur, slot); printf ("\t%d, // %d\n", cur, slot);
prev = cur; prev = cur;
++slot; ++slot;
} }
cur += dstep; cur += dstep;
} }
if (mode == 1) if (mode == 1)
printf ("\t%d, // %d\n", cur, slot); printf ("\t%d, // %d\n", cur, slot);
return 0;
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)