~peter-pearse/ubuntu/natty/mawk/prop001

« back to all changes in this revision

Viewing changes to field.c

  • Committer: Bazaar Package Importer
  • Author(s): James Troup
  • Date: 2001-07-18 20:40:37 UTC
  • Revision ID: james.westby@ubuntu.com-20010718204037-ktb1x8r3ukz5hp3h
Tags: 1.3.3-8
debian/rules (build): compile with -O1 on hppa to work around probable
compiler bug.  Thanks to LaMont Jones <lamont@ia.mmjgroup.com>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
      scan_code['\n'] = SC_UNEXPECTED ;
110
110
 
111
111
   if (rs_shadow.type == SEP_STR)
112
 
      free_STRING((STRING *) rs_shadow.ptr) ;
 
112
     {
 
113
       free_STRING((STRING *) rs_shadow.ptr) ;
 
114
     }
113
115
 
114
116
   cast_for_split(cellcpy(&c, RS)) ;
115
117
   switch (c.type)
116
118
   {
117
119
      case C_RE:
118
 
         if (s = is_string_split(c.ptr, &len))
 
120
         if ((s = is_string_split(c.ptr, &len)))
119
121
         {
120
122
            if (len == 1)
121
123
            {
276
278
      field[cnt--].type = C_MBSTRN ;
277
279
   }
278
280
 
279
 
   if (cp == &c)  free_STRING(string(cp)) ;
 
281
   if (cp == &c) { free_STRING(string(cp)) ; }
280
282
}
281
283
 
282
284
/*
503
505
         memcpy(p, string(cp)->str, string(cp)->len) ;
504
506
         p += string(cp)->len ;
505
507
         /* if not really string, free temp use of ptr */
506
 
         if (cp->type < C_STRING)  free_STRING(string(cp)) ;
 
508
         if (cp->type < C_STRING) { free_STRING(string(cp)) ; }
507
509
         if (++cp == cp_limit)
508
510
         {
509
511
            cp = *++fbp ;