Skip to content
Tcl Source Code Update of ”end-offset Object Type”
Login

Update of ”end-offset Object Type”

Overview

Artifact ID: e37cdedd8f2d2e1f31c27dfbe37ce1ac79e457f5
Page Name:end-offset Object Type
Date: 2014-09-10 23:39:58
Original User: dgp
Parent: cafb989055e9f88354c69c43adc51268272a445b (diff)
Next a1377ba230b54d9ee78163f0a439dcf81a025e45
Content

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

This is the parser for Tcl values that indicate a position in a Tcl list or string. Recognizes the format (end|integer)(-+integer)?

It operates on numbers in the int range. When Tcl lists and string are allowed to have length greater than INT_MAX, these routines will require an interface change.

The parser as written favors code re-use and clarity over absolute performance seeking.

It's difficult to imagine that the *M macro form is actually worth the trouble. As is, it only operates at all on 32-bit systems.