/[xlog]/xlog/src/logfile/labels.c
ViewVC logotype

Diff of /xlog/src/logfile/labels.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by pa4tu, Sat Mar 26 19:01:24 2005 UTC revision 1.8 by pa4tu, Sun Jun 5 16:59:06 2005 UTC
# Line 28  Line 28 
28    
29  #include "logfile.h"  #include "logfile.h"
30  #include "types.h"  #include "types.h"
31    #include "wwl.h"
32    
33  /*  /*
34   * file fields   * file fields
# Line 95  gint Line 95  gint
95  labels_qso_append (LOGDB * handle, const qso_t * q)  labels_qso_append (LOGDB * handle, const qso_t * q)
96  {  {
97          FILE *fp = (FILE *) handle->priv;          FILE *fp = (FILE *) handle->priv;
98            gint kms, l, result;
99    
100          if (preferences.saveastsv[0] == '1')          if (preferences.saveastsv[0] == '1')
101          {          {
# Line 150  labels_qso_append (LOGDB * handle, const Line 151  labels_qso_append (LOGDB * handle, const
151          }          }
152          if (preferences.saveastsv[26] == '1')          if (preferences.saveastsv[26] == '1')
153          {          {
154                  if (q[LOCATOR]) fprintf (fp, "%s\t", q[LOCATOR]); else fprintf (fp, "\t");                  if (q[LOCATOR])
155                    {
156                            if (preferences.tsvcalc == 0)
157                                    fprintf (fp, "%s\t", q[LOCATOR]);
158                            else
159                            {
160                                    result =  wwl (preferences.locator, q[LOCATOR], &kms, &l);
161                                    if (result == 1)
162                                            fprintf (fp, "%s\t%d\t%d\t", q[LOCATOR], kms, l);
163                                    else
164                                            fprintf (fp, "%s\t%d\t%d\t", q[LOCATOR], 0, 0);
165                            }
166                    }
167                    else
168                    {
169                            if (preferences.tsvcalc == 0)
170                                    fprintf (fp, "\t");
171                            else
172                                    fprintf (fp, "\t\t\t");
173                    }
174          }          }
175          if (preferences.saveastsv[28] == '1')          if (preferences.saveastsv[28] == '1')
176          {          {

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26