From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail-a.sr.ht; dkim=pass header.d=johnnyrichard.com header.i=@johnnyrichard.com Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) by mail-a.sr.ht (Postfix) with ESMTPS id F370D20203 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 27 Feb 2024 19:00:16 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1709060413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mz2qtf+EEhBWz8xubwEIzuterjmVojnuiu6LzAW2cPI=; b=EZ0w1v1iK9doGwiI2QiutaezaL81BO4K6L1Rjo76nSqpGbNNuZ66pGT9u83r2nUxr9MFWG XzGTSGl41R48wGs3tJ9i5eMFjfvD5oNgEW7g64bQYkUEhCbjsGAwJFxMbcO9POB0whsZjJ m8wKF+1opMcSzqQiVmvpDApuUxbgalR4wRAbAnF4w0ykz9OWYgen3Af0Ee+oSVDWN9Hpsv 2cqzI/Zqkn6JsuuWMKWJzresb6UIQyakTCRtmUcKJ5XNHc3bi8rqNnQDz0cPSfj5/exOc6 Ct7qXD0s2lz5X76l6DvpJa6pugT1LoDFgnSLNq7J3FYwN0gQRbiG5vQ752Mksg== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v2 0/2] introduce hash map data structure Date: Tue, 27 Feb 2024 20:59:06 +0100 Message-ID: <20240227195958.12551-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-TUID: 0Isg9i2B4lXT This patchset creates a simple hash map implementation. We need this data structure before start implementing the parser. After this patchset I believe we should be able to start the parser. Johnny Richard (2): build: add clean target on root Makefile utils: create hash map data structure Makefile | 6 ++ src/map.c | 140 ++++++++++++++++++++++++++++++++++++++++++ src/map.h | 59 ++++++++++++++++++ tests/unit/map_test.c | 77 +++++++++++++++++++++++ 4 files changed, 282 insertions(+) create mode 100644 src/map.c create mode 100644 src/map.h create mode 100644 tests/unit/map_test.c -- 2.43.2