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 00026 #define LIST_L_1 "* " 00027 #define LIST_L_2 " - " 00028 #define LIST_L_3 " . " 00029 00030 #define BRACKET_L '[' 00031 #define BRACKET_R ']' 00032 00033 #define BRACE_L '{' 00034 #define BRACE_R '}' 00035 #define PIPE '|' 00036 #define ITALIC '$' 00037 00038 #define INCGR "#incgr " 00039 00040 #define H_LINE_1 "=========================================================================================" 00041 #define H_LINE_2 "-----------------------------------------------------------------------------------------" 00042 #define H_LINE_3 "........................................................................................." 00043 00044 #define EMPTY " " 00045 00046 00047 /* ************************************************************************** */ 00048 00049 /*******************/ 00050 /* Definice typu */ 00051 /*******************/ 00052 typedef struct document_line { 00053 char *line; 00054 unsigned int block; 00055 unsigned int length; 00056 } DOCUMENT_LINE; 00057 00058 00059 typedef DOCUMENT_LINE DOCUMENT[DOC_LENGTH]; 00060 00061 typedef struct zasobnik { 00062 enum ps_text_type type; 00063 struct zasobnik *next; 00064 } ZASOBNIK; 00065 00066 00067 /**********************/ 00068 /* FUNKCNI PROTOTYPY */ 00069 /**********************/ 00070 00071 int is_list(unsigned int index, DOCUMENT *document); 00072 int is_headline(int index, DOCUMENT *document); 00073 int is_not_proportional(unsigned int index, DOCUMENT *document); 00074 int is_graphic(unsigned int index, DOCUMENT *document); 00075 int is_note(unsigned int index, DOCUMENT *document); 00076 int is_not_formated(unsigned int index, DOCUMENT *document); 00077 int is_normal_text(unsigned int index, DOCUMENT *document); 00078 int check_for_close(const char *line, int *c_1, int *c_2); 00079 int braces_check(const char *line); 00080 ps_text_element *split_to_strs(char *line); 00081 int braces_check(const char *line); 00082 00083 /* ************************************************************************** */ 00084 00085 00086 00087 00088

Generováno Mon May 24 23:01:30 2004 pro projekt G-TeamPostScriptCreatorDeLuxe programem doxygen 1.3.7