[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pam c254ec9f64 09/16: Renamed library and updated heade
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pam c254ec9f64 09/16: Renamed library and updated headers |
Date: |
Wed, 20 Sep 2023 12:59:10 -0400 (EDT) |
branch: externals/pam
commit c254ec9f646ef5527eb1f834a90e5897caa977cf
Author: Onnie Lynn Winebarger <owinebar@gmail.com>
Commit: Onnie Lynn Winebarger <owinebar@gmail.com>
Renamed library and updated headers
---
table-allocation-manager.el => tam.el | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/table-allocation-manager.el b/tam.el
similarity index 87%
rename from table-allocation-manager.el
rename to tam.el
index 59a5718756..d7bdb4ef87 100644
--- a/table-allocation-manager.el
+++ b/tam.el
@@ -1,25 +1,33 @@
-;;; table-allocation-manager.el --- Manage use of slots in a fixed size table
-*- lexical-binding: t; -*-
+;;; tam.el --- Manage use of slots in a fixed size table -*- lexical-binding:
t; -*-
-;; Copyright (C) 2023 Onnie Lynn Winebarger
+;; Copyright (C) 2023 Free Software Foundation, Inc.
;; Author: Onnie Lynn Winebarger <owinebar@gmail.com>
;; Keywords: lisp, tools
+;; Maintainer: Onnie Lynn Winebarger <owinebar@gmail.com>
+;; Version: 0.1
+;; URL: https://github.com/owinebar/emacs-table-allocation-manager
+;; Package-Requires: ((queue "0.2") (emacs "24.3"))
+;; Readme: Readme.md
-;; This program is free software; you can redistribute it and/or modify
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs 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.
-;; This program is distributed in the hope that it will be useful,
+;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
+;; Table Allocation Manager
;; Provides an interface to managing the usage of the slots in a fixed size
;; table. All allocation is done during initialization to avoid triggering
;; garbage collection during allocation/free operations.
@@ -118,12 +126,12 @@
(tam--table-used tbl))
(defun tam--table-get-slot (tbl idx)
- "Get slot IDX of TBL"
+ "Get slot IDX of TBL."
(aref (tam--table-slots tbl) idx))
(defun tam-table-get (tbl idx)
- "Get contents of slot IDX of TBL"
+ "Get contents of slot IDX of TBL."
(tam--slot-contents (aref (tam--table-slots tbl) idx)))
(defun tam-allocate (tbl obj)
@@ -151,7 +159,7 @@ Returns index or nil if table is full."
idx))
(defun tam-free (tbl idx)
- "Free slot at IDX in TBL. Returns contents of slot IDX.
+ "Free slot at IDX in TBL. Return contents of slot IDX.
Signals an error if IDX is not in use."
(let ((s (tam--table-get-slot tbl idx))
(last-free (tam--table-last-free tbl))
@@ -186,7 +194,7 @@ Signals an error if IDX is not in use."
obj))
(defun tam-table-free-list (tbl)
- "Return list of free indices in TBL"
+ "Return list of free indices in TBL."
(let ((s (tam--table-first-free tbl))
(q (queue-create)))
(while s
@@ -195,7 +203,7 @@ Signals an error if IDX is not in use."
(queue-all q)))
(defun tam-table-live-list (tbl)
- "Return list of live indices in TBL"
+ "Return list of live indices in TBL."
(let ((s (tam--table-first-used tbl))
(q (queue-create)))
(while s
@@ -204,5 +212,5 @@ Signals an error if IDX is not in use."
(queue-all q)))
-(provide 'table-allocation-manager)
-;;; table-allocation-manager.el ends here
+(provide 'tam)
+;;; tam.el ends here
- [elpa] externals/pam 7b072b5457 07/16: Added API documentation to header., (continued)
- [elpa] externals/pam 7b072b5457 07/16: Added API documentation to header., ELPA Syncer, 2023/09/20
- [elpa] externals/pam 21cf632947 13/16: Added documentation strings to struct fields, ELPA Syncer, 2023/09/20
- [elpa] externals/pam bc654b6d68 14/16: Change data structures to primitive representation., ELPA Syncer, 2023/09/20
- [elpa] externals/pam 0dcaa2cc9c 16/16: Provide two versions for tam-release, one with and one without finalization., ELPA Syncer, 2023/09/20
- [elpa] externals/pam fe28ad02db 06/16: Fixed tam-allocate and tam-free functions., ELPA Syncer, 2023/09/20
- [elpa] externals/pam c74c0e06b5 12/16: Improve tam-create-pool docstring, ELPA Syncer, 2023/09/20
- [elpa] externals/pam acb2a6cbbb 11/16: Add object pool management, ELPA Syncer, 2023/09/20
- [elpa] externals/pam cbc1727fea 08/16: Fixed some issues with tam-table-used and tam-table-size., ELPA Syncer, 2023/09/20
- [elpa] externals/pam 15106c6acd 15/16: Define tam-already-free error symbol, ELPA Syncer, 2023/09/20
- [elpa] externals/pam 0f1f5cf265 10/16: Use cl-loop instead of queue package, ELPA Syncer, 2023/09/20
- [elpa] externals/pam c254ec9f64 09/16: Renamed library and updated headers,
ELPA Syncer <=