summaryrefslogtreecommitdiffstats
path: root/generic/tclArithSeries.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclArithSeries.c')
-rwxr-xr-xgeneric/tclArithSeries.c102
1 files changed, 41 insertions, 61 deletions
diff --git a/generic/tclArithSeries.c b/generic/tclArithSeries.c
index fd1014c..4b4b892 100755
--- a/generic/tclArithSeries.c
+++ b/generic/tclArithSeries.c
@@ -231,21 +231,19 @@ maxPrecision(
*
* ArithSeriesLen --
*
- * Compute the length of the equivalent list where
- * every element is generated starting from *start*,
- * and adding *step* to generate every successive element
- * that's < *end* for positive steps, or > *end* for negative
- * steps.
+ * Compute the length of the equivalent list where
+ * every element is generated starting from *start*,
+ * and adding *step* to generate every successive element
+ * that's < *end* for positive steps, or > *end* for negative
+ * steps.
*
* Results:
- *
- * The length of the list generated by the given range,
- * that may be zero.
- * The function returns -1 if the list is of length infinite.
+ * The length of the list generated by the given range,
+ * that may be zero.
+ * The function returns -1 if the list is of length infinite.
*
* Side effects:
- *
- * None.
+ * None.
*
*----------------------------------------------------------------------
*/
@@ -383,12 +381,11 @@ FreeArithSeriesInternalRep(
* refcount = 0.
*
* Results:
- *
- * A Tcl_Obj pointer to the created ArithSeries object.
- * A NULL pointer of the range is invalid.
+ * A Tcl_Obj pointer to the created ArithSeries object.
+ * A NULL pointer of the range is invalid.
*
* Side Effects:
- * None.
+ * None.
*
*----------------------------------------------------------------------
*/
@@ -425,7 +422,7 @@ NewArithSeriesInt(
arithSeriesObj->internalRep.twoPtrValue.ptr2 = NULL;
arithSeriesObj->typePtr = &arithSeriesType;
if (length > 0) {
- Tcl_InvalidateStringRep(arithSeriesObj);
+ Tcl_InvalidateStringRep(arithSeriesObj);
}
return arithSeriesObj;
@@ -440,16 +437,13 @@ NewArithSeriesInt(
* refcount = 0.
*
* Results:
- *
- * A Tcl_Obj pointer to the created ArithSeries object.
- * A NULL pointer of the range is invalid.
+ * A Tcl_Obj pointer to the created ArithSeries object.
+ * A NULL pointer of the range is invalid.
*
* Side Effects:
- *
- * None.
+ * None.
*----------------------------------------------------------------------
*/
-
static Tcl_Obj *
NewArithSeriesDbl(
double start,
@@ -485,7 +479,7 @@ NewArithSeriesDbl(
arithSeriesObj->typePtr = &arithSeriesType;
if (length > 0) {
- Tcl_InvalidateStringRep(arithSeriesObj);
+ Tcl_InvalidateStringRep(arithSeriesObj);
}
return arithSeriesObj;
@@ -501,13 +495,10 @@ NewArithSeriesDbl(
* refcount = 0.
*
* Results:
- *
- * A Tcl_Obj pointer.
- * No assignment on error.
+ * A Tcl_Obj pointer. No assignment on error.
*
* Side Effects:
- *
- * None.
+ * None.
*----------------------------------------------------------------------
*/
static void
@@ -549,16 +540,13 @@ assignNumber(
* refcount = 0.
*
* Results:
- *
- * A Tcl_Obj pointer to the created ArithSeries object.
- * An empty Tcl_Obj if the range is invalid.
+ * A Tcl_Obj pointer to the created ArithSeries object.
+ * An empty Tcl_Obj if the range is invalid.
*
* Side Effects:
- *
- * None.
+ * None.
*----------------------------------------------------------------------
*/
-
int
TclNewArithSeriesObj(
Tcl_Interp *interp, /* For error reporting */
@@ -664,13 +652,11 @@ TclNewArithSeriesObj(
* element is stored in *element.
*
* Results:
- *
- * TCL_OK on success.
+ * TCL_OK on success.
*
* Side Effects:
- *
- * On success, the integer pointed by *element is modified.
- * An empty string ("") is assigned if index is out-of-bounds.
+ * On success, the integer pointed by *element is modified.
+ * An empty string ("") is assigned if index is out-of-bounds.
*
*----------------------------------------------------------------------
*/
@@ -705,12 +691,10 @@ TclArithSeriesObjIndex(
* Returns the length of the arithmetic series.
*
* Results:
- *
- * The length of the series as Tcl_WideInt.
+ * The length of the series as Tcl_WideInt.
*
* Side Effects:
- *
- * None.
+ * None.
*
*----------------------------------------------------------------------
*/
@@ -732,13 +716,11 @@ ArithSeriesObjLength(
* refcount = 0.
*
* Results:
- *
- * A Tcl_Obj pointer to the created ArithSeries object.
- * A NULL pointer of the range is invalid.
+ * A Tcl_Obj pointer to the created ArithSeries object.
+ * A NULL pointer of the range is invalid.
*
* Side Effects:
- *
- * None.
+ * None.
*----------------------------------------------------------------------
*/
@@ -762,19 +744,17 @@ TclArithSeriesObjStep(
*
* SetArithSeriesFromAny --
*
- * The Arithmetic Series object is just an way to optimize
- * Lists space complexity, so no one should try to convert
- * a string to an Arithmetic Series object.
+ * The Arithmetic Series object is just an way to optimize
+ * Lists space complexity, so no one should try to convert
+ * a string to an Arithmetic Series object.
*
- * This function is here just to populate the Type structure.
+ * This function is here just to populate the Type structure.
*
* Results:
- *
- * The result is always TCL_ERROR. But see Side Effects.
+ * The result is always TCL_ERROR. But see Side Effects.
*
* Side effects:
- *
- * Tcl Panic if called.
+ * Tcl Panic if called.
*
*----------------------------------------------------------------------
*/
@@ -1119,11 +1099,11 @@ TclArithSeriesObjReverse(
* should not be NULL and we assume it is not NULL.
*
* Notes:
- * At the cost of overallocation it's possible to estimate
- * the length of the string representation and make this procedure
- * much faster. Because the programmer shouldn't expect the
- * string conversion of a big arithmetic sequence to be fast
- * this version takes more care of space than time.
+ * At the cost of overallocation it's possible to estimate
+ * the length of the string representation and make this procedure
+ * much faster. Because the programmer shouldn't expect the
+ * string conversion of a big arithmetic sequence to be fast
+ * this version takes more care of space than time.
*
*----------------------------------------------------------------------
*/