/[LeafOK_CVS]/lbbs/src/test_memory_pool.c
ViewVC logotype

Diff of /lbbs/src/test_memory_pool.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Sat Oct 18 12:06:10 2025 UTC Revision 1.6 by sysadm, Wed Nov 5 06:14:01 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                          test_memory_pool.c  -  description  /*
3                                                           -------------------   * test_memory_pool
4          copyright            : (C) 2004-2025 by Leaflet   *   - tester for memory pool
5          email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   This program is free software; you can redistribute it and/or modify  *  
  *   it under the terms of the GNU General Public License as published by  *  
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #include "log.h"  #include "log.h"
10  #include "memory_pool.h"  #include "memory_pool.h"
# Line 20  Line 12 
12  #include <string.h>  #include <string.h>
13  #include <unistd.h>  #include <unistd.h>
14    
15  #define NODE_SIZE 1023  enum _test_memory_pool_constant_t
16  #define NODE_PER_CHUNK 1000  {
17  #define CHUNK_COUNT_LIMIT 100          NODE_SIZE = 1023,
18            NODE_PER_CHUNK = 1000,
19            CHUNK_COUNT_LIMIT = 100,
20    };
21    
22  int main(int argc, char *argv[])  int main(int argc, char *argv[])
23  {  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1