/[ofm]/ofm/ofe/file.h
ViewVC logotype

Diff of /ofm/ofe/file.h

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

revision 1.4 by MarcusvA, Sun Nov 17 17:21:26 2002 UTC revision 1.5 by MarcusvA, Fri Jan 10 21:51:09 2003 UTC
# Line 46  typedef content *contentPtr; Line 46  typedef content *contentPtr;
46    
47  struct _content  struct _content
48  {  {
49    char* text;             /* the text from buf */    char* text;            /* the text from buf */
50    int lineNumber;         /* line number */    int line_number;       /* line number */
51    struct _content *next;       /* ptr to next struct */    struct _content *next; /* ptr to next struct */
52      struct _content *prev; /* ptr to previous struct */
53  };  };
54    
55    
# Line 56  typedef struct _first first; Line 57  typedef struct _first first;
57  typedef first *firstPtr;  typedef first *firstPtr;
58    
59  /**  /**
60   * first:   * _first, first, firstPtr:
61   *   *
62   * a special struct for the first element of all,   * a special struct for the first element of all,
63   + it contains the lines and a pointer to the first   + it contains the lines and a pointer to the first
# Line 66  typedef first *firstPtr; Line 67  typedef first *firstPtr;
67    
68  struct _first  struct _first
69  {  {
70    int count;          /* how much lines */    int count;             /* how much lines */
71    struct _content *head;  /* the first one  */    struct _content *head; /* the first one  */
72  };  };
73    
74  /* returns the content of the file */  /* returns the content of the file */
75  contentPtr  contentPtr
76  readFile (char *filename);  read_file (char *filename);
77    
78  /* writes changes to the file */  /* writes changes to the file */
79  void  void
80  writeFile (char *filename);  write_file (char *filename);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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