~ubuntu-branches/ubuntu/dapper/ncbi-tools6/dapper

« back to all changes in this revision

Viewing changes to connect/ncbi_ansi_ext.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2004-11-01 20:07:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20041101200756-74jnpgwky59fev9v
Tags: 6.1.20041020-1
* New upstream release; debian/* resynched as necessary.
  - Fixes Vibrant invisible text bug!
* Take advantage of menu 2.1.8's support for multiple required packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: ncbi_ansi_ext.c,v 6.14 2002/10/29 22:18:29 lavr Exp $
 
1
/*  $Id: ncbi_ansi_ext.c,v 6.16 2004/10/08 16:16:24 ivanov Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
64
64
    do {
65
65
        c1 = *p1++;
66
66
        c2 = *p2++;
67
 
        c1 = c1 >= ' ' && c1 <= 'Z' ? c1 :
68
 
            (c1 >= 'a' && c1 <= 'z' ? c1 - ('a' - 'A') : toupper(c1));
69
 
        c2 = c2 >= ' ' && c2 <= 'Z' ? c2 :
70
 
            (c2 >= 'a' && c2 <= 'z' ? c2 - ('a' - 'A') : toupper(c2));
 
67
        c1 = c1 >= 'A' && c1 <= 'Z' ? c1 + ('a' - 'A') : tolower(c1);
 
68
        c2 = c2 >= 'A' && c2 <= 'Z' ? c2 + ('a' - 'A') : tolower(c2);
71
69
    } while (c1  &&  c1 == c2);
72
70
 
73
71
    return c1 - c2;
86
84
    do {
87
85
        c1 = *p1++;
88
86
        c2 = *p2++;
89
 
        c1 = c1 >= ' ' && c1 <= 'Z' ? c1 :
90
 
            (c1 >= 'a' && c1 <= 'z' ? c1 - ('a' - 'A') : toupper(c1));
91
 
        c2 = c2 >= ' ' && c2 <= 'Z' ? c2 :
92
 
            (c2 >= 'a' && c2 <= 'z' ? c2 - ('a' - 'A') : toupper(c2));
 
87
        c1 = c1 >= 'A' && c1 <= 'Z' ? c1 + ('a' - 'A') : tolower(c1);
 
88
        c2 = c2 >= 'A' && c2 <= 'Z' ? c2 + ('a' - 'A') : tolower(c2);
93
89
    } while (--n > 0  &&  c1  &&  c1 == c2);
94
90
 
95
91
    return c1 - c2;
132
128
/*
133
129
 * --------------------------------------------------------------------------
134
130
 * $Log: ncbi_ansi_ext.c,v $
 
131
 * Revision 6.16  2004/10/08 16:16:24  ivanov
 
132
 * Removed extra ")"
 
133
 *
 
134
 * Revision 6.15  2004/10/08 15:45:19  lavr
 
135
 * Make lower-case comparisons in no-case functions
 
136
 *
135
137
 * Revision 6.14  2002/10/29 22:18:29  lavr
136
138
 * Comply with man strdup(2) in the implementation of strdup() here
137
139
 *