ex_tpcb.h
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /*-
  2.  * See the file LICENSE for redistribution information.
  3.  *
  4.  * Copyright (c) 1996, 1997, 1998, 1999, 2000
  5.  * Sleepycat Software.  All rights reserved.
  6.  *
  7.  * $Id: ex_tpcb.h,v 11.4 2000/05/17 19:21:02 bostic Exp $
  8.  */
  9. #ifndef _TPCB_H_
  10. #define _TPCB_H_
  11. typedef enum { ACCOUNT, BRANCH, TELLER } FTYPE;
  12. #define TELLERS_PER_BRANCH 100
  13. #define ACCOUNTS_PER_TELLER 1000
  14. #define ACCOUNTS 1000000
  15. #define BRANCHES 10
  16. #define TELLERS 1000
  17. #define HISTORY 1000000
  18. #define HISTORY_LEN 100
  19. #define RECLEN 100
  20. #define BEGID 1000000
  21. typedef struct _defrec {
  22. u_int32_t id;
  23. u_int32_t balance;
  24. u_int8_t pad[RECLEN - sizeof(u_int32_t) - sizeof(u_int32_t)];
  25. } defrec;
  26. typedef struct _histrec {
  27. u_int32_t aid;
  28. u_int32_t bid;
  29. u_int32_t tid;
  30. u_int32_t amount;
  31. u_int8_t pad[RECLEN - 4 * sizeof(u_int32_t)];
  32. } histrec;
  33. #endif /* _TPCB_H_ */