• R/O
  • SSH

cl-sack: Commit

CL-Sack is a Common Lisp library for making and manipulating Sack files.


Commit MetaInfo

Revision5add853fae5efaf66482ee0f82c72353dcdd68b1 (tree)
Time2018-10-20 10:42:30
AuthorAlexa Jones-Gonzales <alexa@part...>
CommiterAlexa Jones-Gonzales

Log Message

* Add note about +MAX-ENTRY-TYPES+

* Fix code wrapping

Change Summary

Incremental Difference

diff -r d791fb3be274 -r 5add853fae5e src/globals.lisp
--- a/src/globals.lisp Fri Oct 19 19:36:53 2018 -0600
+++ b/src/globals.lisp Fri Oct 19 19:42:30 2018 -0600
@@ -29,56 +29,65 @@
2929
3030 (alexandria:define-constant +entry-type-sack+ 65534
3131 :test 'equal
32- :documentation "The Entry Type Number for Entries of type SACK")
32+ :documentation "The Entry Type Number for Entries of type SACK.")
3333
3434 (alexandria:define-constant +entry-type-data+ 65535
3535 :test 'equal
36- :documentation "The Entry Type Number for Entries of type DATA")
36+ :documentation "The Entry Type Number for Entries of type DATA.")
3737
3838 (alexandria:define-constant +entry-type-name-sack+ "SACK"
3939 :test 'equal
40- :documentation "The Name of the Entry Type for Entries of type SACK")
40+ :documentation "The Name of the Entry Type for Entries of type
41+ SACK.")
4142
4243 (alexandria:define-constant +entry-type-name-data+ "DATA"
4344 :test 'equal
44- :documentation "The name of the Entry Type for Entries of type DATA")
45+ :documentation "The name of the Entry Type for Entries of type
46+ DATA.")
4547
4648 (alexandria:define-constant +max-entry-name-length+ 65536
4749 :test 'equal
48- :documentation "The maximum length of a Sack Entry's name")
50+ :documentation "The maximum length of a Sack Entry's name.")
4951
5052 (alexandria:define-constant +max-entry-types+ 65534
5153 :test 'equal
52- :documentation "The maximum number of user-definable Entry Types in a Sack file")
54+ :documentation "The maximum number of user-definable Entry Types in
55+ a Sack file. Note that this does not include the two built-in Entry
56+ Types.")
5357
5458 (alexandria:define-constant +max-metadata-pairs+ 65536
5559 :test 'equal
56- :documentation "The maximum number of metadata pairs a Sack File or Sack Entry can have")
60+ :documentation "The maximum number of metadata pairs a Sack File or
61+ Sack Entry can have.")
5762
5863 (alexandria:define-constant
5964 +where-to-store-entry-types-table-offset+
6065 (+ 6 2 4 8) ;; Magic + Version + Sack Type + Num Entries
6166 :test 'equal
6267 :documentation
63- "Where in the header the offset of the Entry Types Table should be written")
68+ "Where in the header the offset of the Entry Types Table should be
69+ written.")
6470
6571 (alexandria:define-constant
6672 +where-to-store-entries-table-offset+
6773 (+ +where-to-store-entry-types-table-offset+ 16)
6874 :test 'equal
6975 :documentation
70- "Where in the header the offset of the Entries Table should be written")
76+ "Where in the header the offset of the Entries Table should be
77+ written.")
7178
7279 (alexandria:define-constant
7380 +where-to-store-sack-metadata-table-offset+
7481 (+ +where-to-store-entries-table-offset+ 16)
7582 :test 'equal
7683 :documentation
77- "Where in the header the offset of the Sack Metadata Table should be written")
84+ "Where in the header the offset of the Sack Metadata Table should be
85+ written.")
7886
7987 (alexandria:define-constant
8088 +where-to-store-entries-metadata-table-offset+
8189 (+ +where-to-store-sack-metadata-table-offset+ 16)
8290 :test 'equal
8391 :documentation
84- "Where in the header the offset of the Entries Metadata Table should be written")
92+ "Where in the header the offset of the Entries Metadata Table should
93+ be written.")
Show on old repository browser