[BACK]Return to init.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sort

Diff for /src/usr.bin/sort/Attic/init.c between version 1.6 and 1.7

version 1.6, 2003/06/26 00:12:39 version 1.7, 2004/07/20 03:50:27
Line 62 
Line 62 
  * keep clist in order--inserts a column in a sorted array   * keep clist in order--inserts a column in a sorted array
  */   */
 static void  static void
 insertcol(field)  insertcol(struct field *field)
         struct field *field;  
 {  {
         int i;          int i;
         for (i = 0; i < ncols; i++)          for (i = 0; i < ncols; i++)
Line 90 
Line 89 
  * matches fields with the appropriate columns--n^2 but who cares?   * matches fields with the appropriate columns--n^2 but who cares?
  */   */
 void  void
 fldreset(fldtab)  fldreset(struct field *fldtab)
         struct field *fldtab;  
 {  {
         int i;          int i;
         fldtab[0].tcol.p = clist+ncols-1;          fldtab[0].tcol.p = clist+ncols-1;
Line 111 
Line 109 
  * interprets a column in a -k field   * interprets a column in a -k field
  */   */
 char *  char *
 setcolumn(pos, cur_fld, gflag)  setcolumn(char *pos, struct field *cur_fld, int gflag)
         char *pos;  
         struct field *cur_fld;  
         int gflag;  
 {  {
         struct column *col;          struct column *col;
         int tmp;          int tmp;
Line 147 
Line 142 
 }  }
   
 int  int
 setfield(pos, cur_fld, gflag)  setfield(char *pos, struct field *cur_fld, int gflag)
         char *pos;  
         struct field *cur_fld;  
         int gflag;  
 {  {
         int tmp;          int tmp;
         cur_fld->weights = ascii;          cur_fld->weights = ascii;
Line 194 
Line 186 
 }  }
   
 int  int
 optval(desc, tcolflag)  optval(int desc, int tcolflag)
         int desc, tcolflag;  
 {  {
         switch(desc) {          switch(desc) {
                 case 'b':                  case 'b':
Line 217 
Line 208 
  * Note that the conversion is tricky, see the manual for details.   * Note that the conversion is tricky, see the manual for details.
  */   */
 void  void
 fixit(argc, argv)  fixit(int *argc, char **argv)
         int *argc;  
         char **argv;  
 {  {
         int i, j;          int i, j;
         long v, w, x;          long v, w, x;
Line 301 
Line 290 
  * all bets are off.  See also num_init in number.c   * all bets are off.  See also num_init in number.c
  */   */
 void  void
 settables(gflags)  settables(int gflags)
         int gflags;  
 {  {
         u_char *wts;          u_char *wts;
         int i, incr;          int i, incr;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7