/[anubis]/anubis/src/rcfile.l
ViewVC logotype

Diff of /anubis/src/rcfile.l

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

revision 1.7 by gray, Thu Mar 6 18:47:32 2003 UTC revision 1.8 by polak, Fri May 2 20:33:20 2003 UTC
# Line 40  struct string_list { Line 40  struct string_list {
40          int length;          int length;
41  };  };
42    
43  static int simple_string();  static int simple_string(void);
44  static void string_begin();  static void string_begin(void);
45  static void string_add(char *s, int len);  static void string_add(char *, int);
46  static void string_add_char(int n);  static void string_add_char(int);
47  static void string_finish();  static void string_finish(void);
48  static int escape(int c);  static int escape(int);
49  char * trimws(char *s);  char *trimws(char *);
50  char * trimcpy();  char *trimcpy(void);
51    
52  static void multiline_begin(void);  static void multiline_begin(void);
53  static void multiline_add(char *);  static void multiline_add(char *);
54  static void multiline_finish(void);  static void multiline_finish(void);
55  static char *multiline_strip_tabs(char *text);  static char *multiline_strip_tabs(char *);
56  static int isemptystr(char *text);  static int isemptystr(char *);
57    
58  static char *multiline_delimiter;  static char *multiline_delimiter;
59  static int strip_tabs;  static int strip_tabs;
# Line 187  yywrap () Line 187  yywrap ()
187  }  }
188    
189  void  void
190  verbatim()  verbatim(void)
191  {  {
192          BEGIN(LIT);          BEGIN(LIT);
193  }  }
194    
195  int  int
196  simple_string()  simple_string(void)
197  {  {
198    yylval.string = xmalloc(yyleng - 1);    yylval.string = xmalloc(yyleng - 1);
199    memcpy(yylval.string, yytext + 1, yyleng - 2);    memcpy(yylval.string, yytext + 1, yyleng - 2);
# Line 203  simple_string() Line 203  simple_string()
203  }  }
204    
205  void  void
206  string_begin()  string_begin(void)
207  {  {
208          str_head = str_tail = NULL;          str_head = str_tail = NULL;
209  }  }
# Line 230  string_add_char(int n) Line 230  string_add_char(int n)
230  }  }
231    
232  void  void
233  string_finish()  string_finish(void)
234  {  {
235          struct string_list *s;          struct string_list *s;
236          int len = 0;          int len = 0;
# Line 251  string_finish() Line 251  string_finish()
251  }  }
252    
253  void  void
254  multiline_begin()  multiline_begin(void)
255  {  {
256          char *endp;          char *endp;
257          int len;          int len;
# Line 276  multiline_begin() Line 276  multiline_begin()
276  }  }
277    
278  void  void
279  multiline_finish()  multiline_finish(void)
280  {  {
281          free (multiline_delimiter);          free (multiline_delimiter);
282          multiline_delimiter = NULL;          multiline_delimiter = NULL;
# Line 343  trimws(char *s) Line 343  trimws(char *s)
343  }  }
344    
345  char *  char *
346  trimcpy()  trimcpy(void)
347  {  {
348          char *string;          char *string;
349          int i, j, len;          int i, j, len;
# Line 376  rc_open(char *name) Line 376  rc_open(char *name)
376          return 0;          return 0;
377  }  }
378    
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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