|
|
1.1 root 1: #import <stdio.h>
2:
3: extern FILE *scrub_file;
4: extern char *scrub_string;
5: extern char *scrub_last_string;
6:
7: extern void do_scrub_begin(
8: void);
9: extern int scrub_from_file(
10: void);
11: extern void scrub_to_file(
12: int ch);
13: extern int scrub_from_string(
14: void);
15: extern void scrub_to_string(
16: int ch);
17: extern int do_scrub_next_char(
18: int (*get)(void),
19: void (*unget)(int ch));
20:
21: /*
22: * typedefs and routines to save scrub context so .include can make recursive
23: * calls to the sanitising routines.
24: */
25: typedef struct scrub_context_data {
26: FILE *last_scrub_file;
27: int last_state;
28: int last_old_state;
29: char *last_out_string;
30: char last_out_buf[20];
31: int last_add_newlines;
32: } scrub_context_data;
33:
34: extern void save_scrub_context(
35: scrub_context_data *save_buffer_ptr);
36: extern void restore_scrub_context(
37: scrub_context_data *save_buffer_ptr);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.