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-184.mta0.migadu.com (out-184.mta0.migadu.com [IPv6:2001:41d0:1004:224b::b8]) by mail-a.sr.ht (Postfix) with ESMTPS id AF0DD201EC for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 21 Feb 2024 21:23:27 +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=1708550606; 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=MRvSIxST6UHSbJTTzZkX4kgC88XWPMRrqNEG6WIlL1E=; b=jFnaC2pJHsnMXyHtS3QkgGJAmnBuYH6oKgqOrRXF0TzJIlO4EO+DPXKB5c/vvmD9/RiSCM 4RG9YwvZ42TVYop/fw1Bh5zqFpHAnNWMzj/X1w+OGUH3wKNC9pORaMclnyKeOETsl3xDid qYuvvayuO++fejrUbeSFFgLNsPhyBd1/NliFVkjY4QzhKwARIUVPHVKm62zLwrG05dAbDM yULWeton5Bo+0E6wl3P1Dods0Ot9e3NQtwHAdsbgWV8yE7G5k5WQGWqBcNB2bgEzEupenZ 76f1b5RtnFgjoPV0+/3j1bRIEWKGNwqGtnyknvokgtVqvtydE6OQ3kTOiPxcEg== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang 0/2] introduce hash map data structure Date: Wed, 21 Feb 2024 23:20:10 +0100 Message-ID: <20240221222226.67254-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-TUID: San9sU1TOgSb 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 | 128 ++++++++++++++++++++++++++++++++++++++++++ src/map.h | 59 +++++++++++++++++++ tests/unit/map_test.c | 73 ++++++++++++++++++++++++ 4 files changed, 266 insertions(+) create mode 100644 src/map.c create mode 100644 src/map.h create mode 100644 tests/unit/map_test.c -- 2.43.2