Below is the list of changes that have just been committed into a
4.0 repository of jcole. When jcole does a push, they will be propogated to
the main repository and within 24 hours after the push to the public repository.
For information on how to access the public repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
ChangeSet@stripped, 2002-03-27 05:37:55-06:00, jcole@stripped
mysys/testhash.c: Changed Swedish comments to English.
mysys/testhash.c
1.6 02/03/27 05:37:55 jcole@stripped +10 -8
Changed Swedish comments to English.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: jcole
# Host: mugatu.spaceapes.com
# Root: /home/jcole/bk/mysql-4.0
--- 1.5/mysys/testhash.c Thu Dec 6 06:10:43 2001
+++ 1.6/mysys/testhash.c Wed Mar 27 05:37:55 2002
@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
-/* Test av hash libarary: stor test */
+/* Test of hash library: big test */
#include <my_global.h>
#include <my_sys.h>
@@ -36,6 +36,7 @@
#else
my_bool hash_check(HASH *hash);
#endif
+
void free_record(void *record);
static byte *hash2_key(const byte *rec,uint *length,
@@ -45,7 +46,7 @@
return (byte*) rec;
}
- /* Huvudprogrammet */
+/* main program */
int main(int argc,char *argv[])
{
@@ -75,7 +76,7 @@
printf("- Creating hash\n");
if (hash_init(&hash,recant/2,0,6,0,free_record,0))
goto err;
- printf("- Writing records:s\n");
+ printf("- Writing records:\n");
for (i=0 ; i < recant ; i++)
{
@@ -242,8 +243,8 @@
} /* main */
- /* l{ser optioner */
- /* OBS! intierar endast DEBUG - ingen debuggning h{r ! */
+/* read options */
+/* NOTE! DBUG not initialised - no debugging here! */
static int get_options(int argc, char **argv)
{
@@ -264,7 +265,7 @@
case 'I':
case '?':
printf("%s Ver 1.0 for %s at %s\n",progname,SYSTEM_TYPE,MACHINE_TYPE);
- puts("TCX Datakonsult AB, by Monty, for your professional use\n");
+ printf("MySQL AB, by Monty\n\n");
printf("Usage: %s [-?ABIKLWv] [-m#] [-t#]\n",progname);
exit(0);
case '#':
@@ -274,9 +275,10 @@
}
}
return 0;
-} /* get options */
+} /* get_options */
+
- /* Ge ett randomv{rde inom ett intervall 0 <=x <= n */
+/* Get a random number in the interval 0 <= x <= n */
static int rnd(int max_value)
{
| Thread |
|---|
| • bk commit into 4.0 tree | jcole | 27 Mar |