Bug #486

Converters for Fundamental Types are not Implemented [Common Lisp]

Added by J. Moringen over 12 years ago. Updated almost 8 years ago.

Status:ResolvedStart date:08/08/2011
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Common Lisp
Target version:rsb-0.10

Description

Despite what this description suggests.

Associated revisions

Revision 23119c1c
Added by J. Moringen over 12 years ago

Use macro to generate converters in src/converter/fundamental.lisp
fixes #486
  • src/converter/fundamental.lisp
    (wire->domain? eql :fundamental-null t t): removed; replaced by use
    of `define-fundamental-converter'
    (domain->wire? eql :fundamental-null t): likewise
    (wire->domain eql :fundamental-null t t): likewise
    (domain->wire eql :fundamental-null t): likewise
    (wire->domain? eql :fundamental-ascii-string simple-array eql
    :ascii-string): likewise
    (domain->wire? eql :fundamental-ascii-string string): likewise
    (wire->domain eql :fundamental-ascii-string simple-array eql
    :ascii-string): likewise
    (domain->wire eql :fundamental-ascii-string string): likewise
    (wire->domain? eql :fundamental-utf-8-string simple-array eql
    :utf-8-string): likewise
    (domain->wire? eql :fundamental-utf-8-string string): likewise
    (wire->domain eql :fundamental-utf-8-string simple-array eql
    :utf-8-string): likewise
    (domain->wire eql :fundamental-utf-8-string string): likewise
    (wire->domain? eql :fundamental-bytes simple-array eql :bytes):
    likewise
    (domain->wire? eql :fundamental-bytes simple-array): likewise
    (wire->domain eql :fundamental-bytes simple-array eql :bytes):
    likewise
    (domain->wire eql :fundamental-bytes simple-array): likewise
    (define-fundamental-converter): new local macro; used for defining
    simple converters fundamental-void, fundamental-null,
    fundamental-ascii-string, fundamental-utf-8-string,
    fundamental-bytes, fundamental-double, fundamental-float,
    fundamental-int32, fundamental-int64, fundamental-uint32,
    fundamental-uint64

Revision 8b1148e3
Added by J. Moringen about 11 years ago

Implemented number converters with nibbles in src/converter/fundamental.lisp

refs #486

  • src/configuration.lisp (header): updated copyright
    (default-converters): removed conditionalization for fundamental
    number converters; added fundamental-bool converter
  • src/converter/fundamental.lisp (header): updated copyright
    (define-simple-converter :fundamental-bool): new fundamental
    converter
    (define-number-converter :uint32): moved here from
    src/converter/fundamental-numbers.lisp; changed to use nibbles
    instead of binio
    (define-number-converter :int32): likewise
    (define-number-converter :uint64): likewise
    (define-number-converter :int64): likewise
    (define-number-converter :float): likewise
    (define-number-converter :double): likewise
  • src/converter/fundamental-numbers.lisp: removed; contents is now in
    src/converter/fundamental.lisp
  • test/converter/fundamental.lisp (header): updated copyright
    (suite fundamental-bool-root): new test suite; unit tests for
    fundamental-bool converter
    (define-basic-converter-test-cases :fundamental-bool): new tests;
    basic test cases for fundamental-bool converter
    (suite fundamental-int32-root): new test suite; unit tests for
    fundamental-int32 converter
    (define-basic-converter-test-cases :fundamental-int32): new tests;
    basic test cases for fundamental-int32 converter
  • cl-rsb.asd (header): updated copyright
    (system cl-rsb-and-cl-protobuf): removed file
    src/converter/fundamental-numbers.lisp since cl-protobuf is no
    longer required for fundamental converters

History

#1 Updated by J. Moringen over 12 years ago

  • Status changed from New to In Progress

#2 Updated by J. Moringen over 12 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2468.

#3 Updated by J. Moringen almost 8 years ago

  • Subject changed from Converters for Fundamental Types are not Implemented to Converters for Fundamental Types are not Implemented [Common Lisp]

Also available in: Atom PDF