Hlavní stránka | Datové struktury | Seznam souborů | Datové poloľky | Globální symboly

txt_def.h

00001 /******************************************************************************/ 00002 /* TXT_DEF.H */ 00003 /******************************************************************************/ 00004 00005 /**********************/ 00006 /* Definice konstant */ 00007 /**********************/ 00008 00009 #define MAX_LENGTH 1000 00010 #define DOC_LENGTH 3000 00011 00012 #define YES 1 00013 #define NO 0 00014 00015 #define BAD_LINE -1 00016 #define N_B 0 00017 #define OK_LINE 1 00018 00019 #define CRITICAL 2 00020 #define ERROR 1 00021 00022 #define LEVEL_1 1 00023 #define LEVEL_2 2 00024 #define LEVEL_3 3 00025 #define LEVEL_4 4 00026 00027 #define LIST_L_1 "* " 00028 #define LIST_L_2 " - " 00029 #define LIST_L_3 " . " 00030 #define LIST_L_4 " - " 00031 #define BRACKET_L '[' 00032 #define BRACKET_R ']' 00033 00034 #define BRACE_L '{' 00035 #define BRACE_R '}' 00036 #define PIPE '|' 00037 #define ITALIC '$' 00038 00039 #define INCGR "#incgr " 00040 00041 #define H_LINE_1 "=========================================================================================" 00042 #define H_LINE_2 "-----------------------------------------------------------------------------------------" 00043 #define H_LINE_3 "........................................................................................." 00044 00045 #define EMPTY " " 00046 00047 00048 /* ************************************************************************** */ 00049 00050 /*******************/ 00051 /* Definice typu */ 00052 /*******************/ 00053 typedef struct document_line { 00054 char *line; 00055 unsigned int block; 00056 unsigned int length; 00057 } DOCUMENT_LINE; 00058 00059 00060 typedef DOCUMENT_LINE DOCUMENT[DOC_LENGTH]; 00061 00062 typedef struct zasobnik { 00063 enum ps_text_type type; 00064 struct zasobnik *next; 00065 } ZASOBNIK; 00066 00067 00068 /**********************/ 00069 /* FUNKCNI PROTOTYPY */ 00070 /**********************/ 00071 00072 int is_list(unsigned int index, DOCUMENT *document); 00073 int is_headline(int index, DOCUMENT *document); 00074 int is_not_proportional(unsigned int index, DOCUMENT *document); 00075 int is_graphic(unsigned int index, DOCUMENT *document); 00076 int is_note(unsigned int index, DOCUMENT *document); 00077 int is_not_formated(unsigned int index, DOCUMENT *document); 00078 int is_normal_text(unsigned int index, DOCUMENT *document); 00079 int check_for_close(const char *line, int *c_1, int *c_2); 00080 int braces_check(const char *line); 00081 ps_text_element *split_to_strs(char *line); 00082 int braces_check(const char *line); 00083 00084 /* ************************************************************************** */ 00085 00086 00087 00088 00089

Generováno Tue May 25 13:38:04 2004 pro projekt G-TeamPostScriptCreatorDeLuxe programem doxygen 1.3.7