~ubuntu-branches/ubuntu/breezy/garlic/breezy

« back to all changes in this revision

Viewing changes to pattern.c

  • Committer: Bazaar Package Importer
  • Author(s): zhaoway
  • Date: 2001-04-24 07:09:13 UTC
  • Revision ID: james.westby@ubuntu.com-20010424070913-uzpupnwdfhmliebz
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2000 Damir Zucic */
 
2
 
 
3
/*=============================================================================
 
4
 
 
5
                                pattern.c
 
6
 
 
7
Purpose:
 
8
        Execute pattern command:  define the residue pattern. Residue
 
9
        pattern is relatively short, but more flexible than sequence.
 
10
        More than one residue may be specified at the given position.
 
11
        The length of pattern is fixed, i.e. deletions and insertions
 
12
        are not allowed. Asterisk may be used to allow any residue at
 
13
        the given position.
 
14
 
 
15
Input:
 
16
        (1) Pointer to MolComplexS structure.
 
17
        (2) The number of macromolecular complexes.
 
18
        (3) Pointer to RuntimeS structure.
 
19
        (4) Pointer to the string with command parameters.
 
20
 
 
21
Output:
 
22
        (1) Pattern stored to the pattern buffer.
 
23
        (2) Return value.
 
24
 
 
25
Return value:
 
26
        (1) Positive (command) code on success.
 
27
        (2) Negative (error) code on failure.
 
28
 
 
29
Notes:
 
30
        (1) The pattern is expected in three letters code. One letter
 
31
            code may be missinterpreted  as valid three letters code.
 
32
 
 
33
========includes:============================================================*/
 
34
 
 
35
#include <stdio.h>
 
36
 
 
37
#include <string.h>
 
38
 
 
39
#include <X11/Xlib.h>
 
40
#include <X11/Xutil.h>
 
41
#include <X11/Xos.h>
 
42
#include <X11/Xatom.h>
 
43
 
 
44
#include "defines.h"
 
45
#include "commands.h"
 
46
#include "typedefs.h"
 
47
 
 
48
/*======function prototypes:=================================================*/
 
49
 
 
50
 
 
51
 
 
52
/*======execute pattern command:=============================================*/
 
53
 
 
54
int Pattern_ (MolComplexS *mol_complexSP, int mol_complexesN,
 
55
              RuntimeS *runtimeSP, char *stringP)
 
56
{
 
57
 
 
58
/*@@*/ /* Not implemented yet! */
 
59
 
 
60
/*@@*/ /* Note that RuntimeS allready has reserved storage for patterns: */
 
61
/*@@*/ /* pattern_buffer_size, pattern_length, *patternP, namesNA */
 
62
 
 
63
 
 
64
/* Return the command code: */
 
65
return COMMAND_PATTERN;
 
66
}
 
67
 
 
68
/*===========================================================================*/
 
69
 
 
70