From 63fed21527c2f83275cb49f289a7de42595669c1 Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 16 Jun 2016 16:16:18 -0400 Subject: fix doc --- doc/barchart.html | 2 +- doc/barchart.n | 2 +- doc/vector.html | 324 +++++++++++++++++++++++++++--------------------------- doc/vector.n | 3 +- 4 files changed, 166 insertions(+), 165 deletions(-) diff --git a/doc/barchart.html b/doc/barchart.html index 0f314c2..7f04d25 100644 --- a/doc/barchart.html +++ b/doc/barchart.html @@ -1419,7 +1419,7 @@ -fill color Sets the background color of the line. This color is used with - striped lines (see the -fdashesoption). If color is the empty + striped lines (see the -dashes option). If color is the empty string, no background color is drawn (the line will be dashed, not striped). The default background color is "". diff --git a/doc/barchart.n b/doc/barchart.n index 6b3c29a..7a9dac8 100644 --- a/doc/barchart.n +++ b/doc/barchart.n @@ -1957,7 +1957,7 @@ on the line. Each number must be between 1 and 255. If .TP \fB\-fill \fIcolor\fR Sets the background color of the line. This color is used with -striped lines (see the \fB\-fdashes\R option). If \fIcolor\fR is +striped lines (see the \fB\-dashes\fR option). If \fIcolor\fR is the empty string, no background color is drawn (the line will be dashed, not striped). The default background color is \f(CW""\fR. .TP diff --git a/doc/vector.html b/doc/vector.html index 37ad3c3..ef097c6 100644 --- a/doc/vector.html +++ b/doc/vector.html @@ -237,16 +237,15 @@ the same name; see the manual entries for the library functions for details on what they do. The operation is applied to all elements of the vector returning the results. - acos cos hypot sinh - asin cosh log sqrt - atan exp log10 tan - ceil floor sin tanh Additional functions - are: + acos cos hypot sinh asin cosh log sqrt + atan exp log10 tan ceil floor sin tanh + + Additional functions are: abs Returns the absolute value of each component. random Returns a vector of non-negative values uniformly dis- - tributed between [0.0, 1.0) using drand48. The seed + tributed between [0.0, 1.0) using drand48. The seed comes from the internal clock of the machine or may be set manual with the srandom function. @@ -254,43 +253,43 @@ srandom Initializes the random number generator using srand48. The high order 32-bits are set using the integral por- - tion of the first vector component. All other compo- - nents are ignored. The low order 16-bits are set to + tion of the first vector component. All other compo- + nents are ignored. The low order 16-bits are set to an arbitrary value. The following functions return a single value. - adev Returns the average deviation (defined as the sum of - the absolute values of the differences between compo- - nent and the mean, divided by the length of the vec- + adev Returns the average deviation (defined as the sum of + the absolute values of the differences between compo- + nent and the mean, divided by the length of the vec- tor). - kurtosis Returns the degree of peakedness (fourth moment) of + kurtosis Returns the degree of peakedness (fourth moment) of the vector. length Returns the number of components in the vector. max Returns the vector's maximum value. - root of the variance) of the vector. - skew Returns the skewness (or third moment) of the vector. + + skew Returns the skewness (or third moment) of the vector. This characterizes the degree of asymmetry of the vec- tor about the mean. sum Returns the sum of the components. - var Returns the variance of the vector. The sum of the - squared differences between each component and the - mean is computed. The variance is the sum divided by + var Returns the variance of the vector. The sum of the + squared differences between each component and the + mean is computed. The variance is the sum divided by the length of the vector minus 1. - The last set returns a vector of the same length as the argu- + The last set returns a vector of the same length as the argu- ment. - norm Scales the values of the vector to lie in the range + norm Scales the values of the vector to lie in the range [0.0..1.0]. - sort Returns the vector components sorted in ascending + sort Returns the vector components sorted in ascending order. vector names ?pattern? @@ -298,158 +297,159 @@

INSTANCE OPERATIONS

-       You can also use the vector's Tcl command to query or modify  it.   The
-       general  form  is  vecName  operation  ?arg?...  Both operation and its
-       arguments determine the exact behavior of the command.  The  operations
+       You  can  also use the vector's Tcl command to query or modify it.  The
+       general form is vecName operation  ?arg?...   Both  operation  and  its
+       arguments  determine the exact behavior of the command.  The operations
        available for vectors are listed below.
 
        vecName append item ?item?...
-              Appends  the component values from item to vecName.  Item can be
+              Appends the component values from item to vecName.  Item can  be
               either the name of a vector or a list of numeric values.
 
        vecName binread channel ?length? ?switches?
-              Reads binary values  from  a  Tcl  channel.  Values  are  either
-              appended  to  the  end  of the vector or placed at a given index
-              (using the -at option), overwriting existing  values.   Data  is
-              read  until EOF is found on the channel or a specified number of
-              values length are read (note that this is  not  necessarily  the
-              same  as  the  number of bytes). The following switches are sup-
+              Reads  binary  values  from  a  Tcl  channel.  Values are either
+              appended to the end of the vector or placed  at  a  given  index
+              (using  the  -at  option), overwriting existing values.  Data is
+              read until EOF is found on the channel or a specified number  of
+              values  length  are  read (note that this is not necessarily the
+              same as the number of bytes). The following  switches  are  sup-
               ported:
 
-              -swap  Swap bytes and words.  The default  endian  is  the  host
+              -swap  Swap  bytes  and  words.   The default endian is the host
                      machine.
 
               -at index
-                     New  values  will start at vector index index.  This will
+                     New values will start at vector index index.   This  will
                      overwrite any current values.
 
               -format format
-                     Specifies the format of the data.  Format can be  one  of
+                     Specifies  the  format of the data.  Format can be one of
+                     the following: "i1", "i2", "i4", "i8", "u1,  "u2",  "u4",
 
-              This command removes the index and value strings from the array.
               This is useful when the vector is large.
 
        vecName delete index ?index?...
               Deletes the indexth component from the vector vecName.  Index is
-              the index of the element to be deleted.  This  is  the  same  as
-              unsetting  the array variable element index.  The vector is com-
+              the  index  of  the  element to be deleted.  This is the same as
+              unsetting the array variable element index.  The vector is  com-
               pacted after all the indices have been deleted.
 
        vecName dup destName
-              Copies vecName to destName. DestName is the name of  a  destina-
-              tion  vector.   If a vector destName already exists, it is over-
-              written with the components of vecName.  Otherwise a new  vector
+              Copies  vecName  to destName. DestName is the name of a destina-
+              tion vector.  If a vector destName already exists, it  is  over-
+              written  with the components of vecName.  Otherwise a new vector
               is created.
 
        vecName expr expression
-              Computes  the  expression  and  resets  the values of the vector
-              accordingly.   Both  scalar  and  vector  math  operations   are
-              allowed.   All  values in expressions are either real numbers or
+              Computes the expression and resets  the  values  of  the  vector
+              accordingly.    Both  scalar  and  vector  math  operations  are
+              allowed.  All values in expressions are either real  numbers  or
               names of vectors.  All numbers are treated as one component vec-
               tors.
 
        vecName length ?newSize?
-              Queries  or resets the number of components in vecName.  NewSize
-              is a number specifying the new size of the vector.   If  newSize
-              is  smaller  than  the current size of vecName, vecName is trun-
-              cated.  If newSize is greater, the vector is  extended  and  the
-              new  components  are initialized to 0.0.  If no newSize argument
+              Queries or resets the number of components in vecName.   NewSize
+              is  a  number specifying the new size of the vector.  If newSize
+              is smaller than the current size of vecName,  vecName  is  trun-
+              cated.   If  newSize  is greater, the vector is extended and the
+              new components are initialized to 0.0.  If no  newSize  argument
               is present, the current length of the vector is returned.
 
        vecName merge srcName ?srcName?...
-              Merges the named vectors into a single  vector.   The  resulting
+              Merges  the  named  vectors into a single vector.  The resulting
               vector is formed by merging the components of each source vector
               one index at a time.
 
        vecName notify keyword
-              Controls how vector clients are notified of changes to the  vec-
+              Controls  how vector clients are notified of changes to the vec-
               tor.  The exact behavior is determined by keyword.
 
-              always Indicates  that  clients  are  to be notified immediately
+              always Indicates that clients are  to  be  notified  immediately
                      whenever the vector is updated.
 
               never  Indicates that no clients are to be notified.
 
               whenidle
-                     Indicates that clients are to be  notified  at  the  next
+                     Indicates  that  clients  are  to be notified at the next
                      idle point whenever the vector is updated.
 
-              now    If  any  client  notifications is currently pending, they
+              now    If any client notifications is  currently  pending,  they
                      are notified immediately.
 
-              cancel Cancels pending notifications of clients using  the  vec-
-              interval between each of the original components will contain  a
-              density  number  of new components, whose values are evenly dis-
+              cancel Cancels  pending  notifications of clients using the vec-
+                     tor.
+
+              density number of new components, whose values are  evenly  dis-
               tributed between the original components values.  This is useful
               for generating abscissas to be interpolated along a spline.
 
        vecName range firstIndex ?lastIndex?...
-              Returns  a list of numeric values representing the vector compo-
-              nents between two indices. Both  firstIndex  and  lastIndex  are
-              indices  representing the range of components to be returned. If
-              lastIndex is less than firstIndex, the components are listed  in
+              Returns a list of numeric values representing the vector  compo-
+              nents  between  two  indices.  Both firstIndex and lastIndex are
+              indices representing the range of components to be returned.  If
+              lastIndex  is less than firstIndex, the components are listed in
               reverse order.
 
        vecName search value ?value?
-              Searches  for a value or range of values among the components of
-              vecName.  If one value argument is given, a list of  indices  of
+              Searches for a value or range of values among the components  of
+              vecName.   If  one value argument is given, a list of indices of
               the components which equal value is returned.  If a second value
-              is also provided, then the indices of all components  which  lie
-              within  the  range of the two values are returned.  If no compo-
+              is  also  provided, then the indices of all components which lie
+              within the range of the two values are returned.  If  no  compo-
               nents are found, then "" is returned.
 
        vecName set item
-              Resets the components of the vector to item. Item can be  either
+              Resets  the components of the vector to item. Item can be either
               a list of numeric expressions or another vector.
 
        vecName seq start ?finish? ?step?
-              Generates  a  sequence  of values starting with the value start.
-              Finish indicates the terminating value  of  the  sequence.   The
-              vector  is  automatically  resized to contain just the sequence.
+              Generates a sequence of values starting with  the  value  start.
+              Finish  indicates  the  terminating  value of the sequence.  The
+              vector is automatically resized to contain  just  the  sequence.
               If three arguments are present, step designates the interval.
 
-              With only two arguments (no finish argument), the sequence  will
-              continue  until  the  vector  is filled.  With one argument, the
+              With  only two arguments (no finish argument), the sequence will
+              continue until the vector is filled.   With  one  argument,  the
               interval defaults to 1.0.
 
        vecName sort ?-reverse? ?argName?...
-              Sorts the vector vecName in increasing order.  If  the  -reverse
-              flag  is  present, the vector is sorted in decreasing order.  If
-              other arguments argName are present, they are the names of  vec-
-              tors  which  will  be  rearranged in the same manner as vecName.
-              Each vector must be the same length as vecName.  You  could  use
-              this  to sort the x vector of a graph, while still retaining the
+              Sorts  the  vector vecName in increasing order.  If the -reverse
+              flag is present, the vector is sorted in decreasing  order.   If
+              other  arguments argName are present, they are the names of vec-
+              tors which will be rearranged in the  same  manner  as  vecName.
+              Each  vector  must be the same length as vecName.  You could use
+              this to sort the x vector of a graph, while still retaining  the
               same x,y coordinate pairs in a y vector.
 
        vecName variable varName
-              Maps a Tcl variable to the vector, creating  another  means  for
+              Maps  a  Tcl  variable to the vector, creating another means for
               accessing the vector.  The variable varName can't already exist.
               This overrides any current variable mapping the vector may have.
 
 
 

C LANGUAGE API

-       You  can create, modify, and destroy vectors from C code, using library
-       routines.  You need to include the header file blt.h. It  contains  the
-       definition  of  the  structure Blt_Vector, which represents the vector.
-
+       You can create, modify, and destroy vectors from C code, using  library
+       routines.   You  need to include the header file blt.h. It contains the
+       definition of the structure Blt_Vector, which  represents  the  vector.
+       It appears below.  typedef struct {
        Blt_CreateVector
 
          Synopsis: int Blt_CreateVector (interp, vecName, length, vecPtrPtr)
-                      Tcl_Interp *interp; char *vecName; int length;  Blt_Vec-
+                      Tcl_Interp  *interp; char *vecName; int length; Blt_Vec-
                       tor **vecPtrPtr;
 
          Description:
-                   Creates  a  new  vector  vecName  with  a length of length.
-                   Blt_CreateVector creates both a new Tcl command  and  array
-                   variable  vecName.   Neither  a  command nor variable named
-                   vecName can already exist.  A  pointer  to  the  vector  is
+                   Creates a new vector  vecName  with  a  length  of  length.
+                   Blt_CreateVector  creates  both a new Tcl command and array
+                   variable vecName.  Neither a  command  nor  variable  named
+                   vecName  can  already  exist.   A  pointer to the vector is
                    placed into vecPtrPtr.
 
-         Results:  Returns  TCL_OK  if the vector is successfully created.  If
-                   length is negative,  a  Tcl  variable  or  command  vecName
-                   already  exists, or memory cannot be allocated for the vec-
-                   tor, then TCL_ERROR is  returned  and  interp->result  will
+         Results:  Returns TCL_OK if the vector is successfully  created.   If
+                   length  is  negative,  a  Tcl  variable  or command vecName
+                   already exists, or memory cannot be allocated for the  vec-
+                   tor,  then  TCL_ERROR  is  returned and interp->result will
                    contain an error message.
 
 
@@ -459,15 +459,15 @@
                       Tcl_Interp *interp; char *vecName;
 
          Description:
-                   Removes  the vector vecName.  VecName is the name of a vec-
-                   tor which must already exist.  Both  the  Tcl  command  and
-                   array  variable  vecName are destroyed.  All clients of the
-                   vector will be notified immediately  that  the  vector  has
+                   Removes the vector vecName.  VecName is the name of a  vec-
+                   tor  which  must  already  exist.  Both the Tcl command and
+                   array variable vecName are destroyed.  All clients  of  the
+                   vector  will  be  notified  immediately that the vector has
                    been destroyed.
 
-         Results:  Returns  TCL_OK  if the vector is successfully deleted.  If
-                   vecName is  not  the  name  a  vector,  then  TCL_ERROR  is
-                   returned  and interp->result will contain an error message.
+         Results:  Returns TCL_OK if the vector is successfully  deleted.   If
+                   vecName  is  not  the  name  a  vector,  then  TCL_ERROR is
+                   returned and interp->result will contain an error  message.
 
 
        Blt_DeleteVector
@@ -476,51 +476,52 @@
                       Blt_Vector *vecPtr;
 
          Description:
-                   Removes the vector pointed  to  by  vecPtr.   VecPtr  is  a
-                   pointer  to  a  vector,  typically  set by Blt_GetVector or
-                   Blt_CreateVector.  Both the Tcl command and array  variable
-                   of  the  vector  are  destroyed.  All clients of the vector
-                   will be notified  immediately  that  the  vector  has  been
+                   Removes  the  vector  pointed  to  by  vecPtr.  VecPtr is a
+                   pointer to a vector,  typically  set  by  Blt_GetVector  or
+                   Blt_CreateVector.   Both the Tcl command and array variable
+                   of the vector are destroyed.  All  clients  of  the  vector
+                   will  be  notified  immediately  that  the  vector has been
                    destroyed.
 
-         Results:  Returns  TCL_OK  if the vector is successfully deleted.  If
+         Results:  Returns TCL_OK if the vector is successfully  deleted.   If
+                   vecName  is  not  the  name  a  vector,  then  TCL_ERROR is
 
          Results:  Returns TCL_OK if the vector is successfully retrieved.  If
-                   vecName is not the name of  a  vector,  then  TCL_ERROR  is
-                   returned  and interp->result will contain an error message.
+                   vecName  is  not  the  name  of a vector, then TCL_ERROR is
+                   returned and interp->result will contain an error  message.
 
 
        Blt_ResetVector
 
 
-         Synopsis: int Blt_ResetVector (vecPtr,  dataArr,              numVal-
-                   ues, arraySize, freeProc)
+         Synopsis: int  Blt_ResetVector  (vecPtr,  dataArr,         numValues,
+                   arraySize, freeProc)
                       Blt_Vector *vecPtr; double *dataArr; int *numValues; int
                       *arraySize; Tcl_FreeProc *freeProc;
 
          Description:
-                   Resets the components of the vector pointed to  by  vecPtr.
+                   Resets  the  components of the vector pointed to by vecPtr.
                    Calling Blt_ResetVector will trigger the vector to dispatch
-                   notifications to its clients. DataArr is the array of  dou-
-                   bles  which  represents  the  vector data. NumValues is the
-                   number of elements in the array. ArraySize  is  the  actual
-                   size  of the array (the array may be bigger than the number
+                   notifications  to its clients. DataArr is the array of dou-
+                   bles which represents the vector  data.  NumValues  is  the
+                   number  of  elements  in the array. ArraySize is the actual
+                   size of the array (the array may be bigger than the  number
                    of values stored in it). FreeProc indicates how the storage
                    for the vector component array (dataArr) was allocated.  It
                    is used to determine how to reallocate memory when the vec-
-                   tor  is  resized  or  destroyed.   It  must be TCL_DYNAMIC,
-                   TCL_STATIC, TCL_VOLATILE, or a pointer  to  a  function  to
+                   tor is resized  or  destroyed.   It  must  be  TCL_DYNAMIC,
+                   TCL_STATIC,  TCL_VOLATILE,  or  a  pointer to a function to
                    free the memory allocated for the vector array. If freeProc
-                   is TCL_VOLATILE, it indicates that dataArr must  be  copied
-                   and  saved.   If freeProc is TCL_DYNAMIC, it indicates that
-                   dataArr was dynamically allocated and that Tcl should  free
+                   is  TCL_VOLATILE,  it indicates that dataArr must be copied
+                   and saved.  If freeProc is TCL_DYNAMIC, it  indicates  that
+                   dataArr  was dynamically allocated and that Tcl should free
                    dataArr if necessary.  Static indicates that nothing should
                    be done to release storage for dataArr.
 
-         Results:  Returns TCL_OK if the vector is successfully  resized.   If
-                   newSize  is  negative,  a vector vecName does not exist, or
-                   memory cannot be allocated for the vector,  then  TCL_ERROR
-                   is  returned  and interp->result will contain an error mes-
+         Results:  Returns  TCL_OK  if the vector is successfully resized.  If
+                   newSize is negative, a vector vecName does  not  exist,  or
+                   memory  cannot  be allocated for the vector, then TCL_ERROR
+                   is returned and interp->result will contain an  error  mes-
                    sage.
 
 
@@ -530,23 +531,23 @@
                       Blt_Vector *vecPtr; int newSize;
 
          Description:
-                   Resets the length of the vector pointed  to  by  vecPtr  to
-                   newSize.   If  newSize  is smaller than the current size of
-                   the vector, it is truncated.  If newSize  is  greater,  the
-                   vector  is  extended and the new components are initialized
+                   Resets  the  length  of  the vector pointed to by vecPtr to
+                   newSize.  If newSize is smaller than the  current  size  of
+                   the  vector,  it  is truncated.  If newSize is greater, the
+                   vector is extended and the new components  are  initialized
                    to 0.0.  Calling Blt_ResetVector will trigger the vector to
                    dispatch notifications.
 
             Results:  Returns 1 if a vector vecName exists and 0 otherwise.
 
 
-         If your application needs to be notified when a  vector  changes,  it
+         If  your  application  needs to be notified when a vector changes, it
          can allocate a unique client identifier for itself.  Using this iden-
-         tifier, you can then register a call-back to  be  made  whenever  the
-         vector  is updated or destroyed.  By default, the call-backs are made
+         tifier,  you  can  then  register a call-back to be made whenever the
+         vector is updated or destroyed.  By default, the call-backs are  made
          at the next idle point.  This can be changed to occur at the time the
-         vector  is modified.  An application can allocate more than one iden-
-         tifier for any vector.  When the client application is done with  the
+         vector is modified.  An application can allocate more than one  iden-
+         tifier  for any vector.  When the client application is done with the
          vector, it should free the identifier.
 
          The call-back routine must of the following type.
@@ -554,9 +555,9 @@
                 typedef void (Blt_VectorChangedProc) (Tcl_Interp *interp,
                    ClientData clientData, Blt_VectorNotify notify);
 
-         ClientData  is passed to this routine whenever it is called.  You can
-         use this to pass information to the call-back.  The  notify  argument
-         indicates  whether the vector has been updated of destroyed. It is an
+         ClientData is passed to this routine whenever it is called.  You  can
+         use  this  to pass information to the call-back.  The notify argument
+         indicates whether the vector has been updated of destroyed. It is  an
          enumerated type.
 
                 typedef enum {
@@ -570,35 +571,34 @@
                         Tcl_Interp *interp; char *vecName;
 
             Description:
-                      Allocates an client identifier for with the vector  vec-
-                      Name.   This  identifier  can be used to specify a call-
-                      back which is triggered when the vector  is  updated  or
+                      Allocates  an client identifier for with the vector vec-
+                      Name.  This identifier can be used to  specify  a  call-
+                      back  which  is  triggered when the vector is updated or
                       destroyed.
 
-            Results:  Returns  a  client identifier if successful.  If vecName
-                      is not the name of a vector, then NULL is  returned  and
+            Results:  Returns a client identifier if successful.   If  vecName
+                      is  not  the name of a vector, then NULL is returned and
                       interp->result will contain an error message.
 
 
          Blt_GetVectorById
 
             Synopsis: int Blt_GetVector (interp, clientId, vecPtrPtr)
-                        Tcl_Interp  *interp; Blt_VectorId clientId; Blt_Vector
+                        Tcl_Interp *interp; Blt_VectorId clientId;  Blt_Vector
                         **vecPtrPtr;
 
             Description:
-                      Retrieves the vector used by clientId.   ClientId  is  a
-
-            Description:
-                      Specifies a call-back routine to be called whenever  the
-                      vector  associated  with clientId is updated or deleted.
-                      Proc is a pointer to call-back routine and  must  be  of
-                      the  type  Blt_VectorChangedProc.   ClientData is a one-
-                      word value to be  passed  to  the  routine  when  it  is
-                      invoked.  If  proc is NULL, then the client is not noti-
+                      Retrieves  the  vector  used by clientId.  ClientId is a
+                      valid   vector   client    identifier    allocated    by
+                      Specifies  a call-back routine to be called whenever the
+                      vector associated with clientId is updated  or  deleted.
+                      Proc  is  a  pointer to call-back routine and must be of
+                      the type Blt_VectorChangedProc.  ClientData  is  a  one-
+                      word  value  to  be  passed  to  the  routine when it is
+                      invoked. If proc is NULL, then the client is  not  noti-
                       fied.
 
-            Results:  The designated call-back procedure will be invoked  when
+            Results:  The  designated call-back procedure will be invoked when
                       the vector is updated or destroyed.
 
 
@@ -608,11 +608,11 @@
                         Blt_VectorId clientId;
 
             Description:
-                      Frees  the  client identifier.  Memory allocated for the
-                      identifier is released.  The client will  no  longer  be
+                      Frees the client identifier.  Memory allocated  for  the
+                      identifier  is  released.   The client will no longer be
                       notified when the vector is modified.
 
-            Results:  The  designated call-back procedure will be no longer be
+            Results:  The designated call-back procedure will be no longer  be
                       invoked when the vector is updated or destroyed.
 
 
@@ -622,11 +622,11 @@
                         Blt_VectorId clientId;
 
             Description:
-                      Retrieves the name of the  vector  associated  with  the
+                      Retrieves  the  name  of  the vector associated with the
                       client identifier clientId.
 
             Results:  Returns the name of the vector associated with clientId.
-                      If clientId is not an identifier or the vector has  been
+                      If  clientId is not an identifier or the vector has been
                       destroyed, NULL is returned.
 
 
@@ -641,14 +641,14 @@
 
                       typedef double Blt_VectorIndexProc(Vector *vecPtr);
 
-       difference  what  the  initial  size  of the vector is since it will be
-       reset shortly. The vector is updated  when  lt_ResetVector  is  called.
-       Blt_ResetVector  makes  the  changes  visible  to the Tcl interface and
+                      The  function  will  be  passed a pointer to the vector.
+
+       reset  shortly.  The  vector  is updated when lt_ResetVector is called.
+       Blt_ResetVector makes the changes visible  to  the  Tcl  interface  and
        other vector clients (such as a graph widget).
 
-       #include   <tcl.h>   #include   <blt.h>                      Blt_Vector
-       *vecPtr;  double  *newArr;  FILE *f; struct stat statBuf; int numBytes,
-       numValues;
+       #include  <tcl.h>  #include  <blt.h>         Blt_Vector *vecPtr; double
+       *newArr; FILE *f; struct stat statBuf; int numBytes, numValues;
 
        f = fopen("binary.dat", "r"); fstat(fileno(f),  &statBuf);  numBytes  =
        (int)statBuf.st_size;
@@ -659,16 +659,16 @@
 
        if (Blt_VectorExists(interp, "data"))  {
            if   (Blt_GetVector(interp,   "data",   &vecPtr)   !=   TCL_OK)   {
-                   return TCL_ERROR;
+               return TCL_ERROR;
            } } else {
           if  (Blt_CreateVector(interp,  "data",  0,  &vecPtr)  !=  TCL_OK)  {
-                   return TCL_ERROR;
+               return TCL_ERROR;
           } } /*
         * Reset the vector. Clients will be notified when Tk is idle.
         * TCL_DYNAMIC tells the vector to free the memory allocated
         * if it needs to reallocate or destroy the vector.
         */   if   (Blt_ResetVector(vecPtr,   newArr,   numValues,   numValues,
-                   TCL_DYNAMIC) != TCL_OK) {
+               TCL_DYNAMIC) != TCL_OK) {
            return TCL_ERROR; }
 
 
diff --git a/doc/vector.n b/doc/vector.n
index 9b50e32..fa8bb7e 100644
--- a/doc/vector.n
+++ b/doc/vector.n
@@ -410,11 +410,12 @@ see the manual entries for the library functions for details on what
 they do.  The operation is applied to all elements of the vector
 returning the results. 
 .CS
-.ta 3c 6c 9c
+.ta 2c 4c 6c
 \fBacos\fR	\fBcos\fR	\fBhypot\fR	\fBsinh\fR 
 \fBasin\fR	\fBcosh\fR	\fBlog\fR	\fBsqrt\fR 
 \fBatan\fR	\fBexp\fR	\fBlog10\fR	\fBtan\fR  
 \fBceil\fR	\fBfloor\fR	\fBsin\fR	\fBtanh\fR 
+.sp
 .CE
 Additional functions are:
 .TP 1i
-- 
cgit v0.12