~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/ParseGeom.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "Xutil.h"
37
37
 
38
38
#ifdef notdef
39
 
/* 
 
39
/*
40
40
 *Returns pointer to first char ins search which is also in what, else NULL.
41
41
 */
42
42
static char *strscan (search, what)
62
62
 *   It returns a bitmask that indicates which of the four values
63
63
 *   were actually found in the string.  For each value found,
64
64
 *   the corresponding argument is updated;  for each value
65
 
 *   not found, the corresponding argument is left unchanged. 
 
65
 *   not found, the corresponding argument is left unchanged.
66
66
 */
67
67
 
68
68
static int
70
70
{
71
71
    register int Result = 0;
72
72
    int Sign = 1;
73
 
    
 
73
 
74
74
    if (*string == '+')
75
75
        string++;
76
76
    else if (*string == '-')
110
110
        strind = (char *)string;
111
111
        if (*strind != '+' && *strind != '-' && *strind != 'x') {
112
112
                tempWidth = ReadInteger(strind, &nextCharacter);
113
 
                if (strind == nextCharacter) 
 
113
                if (strind == nextCharacter)
114
114
                    return (0);
115
115
                strind = nextCharacter;
116
116
                mask |= WidthValue;
117
117
        }
118
118
 
119
 
        if (*strind == 'x' || *strind == 'X') { 
 
119
        if (*strind == 'x' || *strind == 'X') {
120
120
                strind++;
121
121
                tempHeight = ReadInteger(strind, &nextCharacter);
122
122
                if (strind == nextCharacter)
164
164
                        mask |= YValue;
165
165
                }
166
166
        }
167
 
        
 
167
 
168
168
        /* If strind isn't at the end of the string the it's an invalid
169
169
                geometry specification. */
170
170