~fuzzgun/fin/trunk

« back to all changes in this revision

Viewing changes to src/parse.c

  • Committer: Bob Mottram
  • Date: 2012-10-06 23:03:24 UTC
  • Revision ID: fuzzgun@gmail.com-20121006230324-fzi3u51j1v153boz
Adjustments

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
                (strcmp(word,get_text_from_identifier(PERIOD_YEARLY))==0) ||
107
107
                (strcmp(word,get_text_from_identifier(VOLUME))==0) ||
108
108
                (strcmp(word,get_text_from_identifier(VOLUME_ABBREV))==0) ||
 
109
                (strcmp(word,get_text_from_identifier(ADJUSTMENTS))==0) ||
 
110
                (strcmp(word,get_text_from_identifier(ADJUSTMENTS_ABBREV))==0) ||
109
111
                (strcmp(word,get_text_from_identifier(DISTRIBUTION_ABBREV))==0) ||
110
112
                (strcmp(word,get_text_from_identifier(DISTRIBUTION))==0)) {
111
113
                if ((strstr(value,".png")==0) &&
568
570
        }
569
571
}
570
572
 
 
573
char * get_adjustments(int no_of_fields, char* fieldname, char* value)
 
574
{
 
575
        char * result = get_field(ADJUSTMENTS, no_of_fields, fieldname, value);
 
576
        if (result==0) {
 
577
                return 0;
 
578
        }
 
579
        else {
 
580
                return result;
 
581
        }
 
582
}
 
583
 
571
584
char * get_time(int no_of_fields, char* fieldname, char* value)
572
585
{
573
586
        char * result = get_field(TIME, no_of_fields, fieldname, value);