домой пора

This commit is contained in:
Kolan Sh 2011-06-17 19:03:06 +04:00
parent 513baf4076
commit 41f6ac46e7
4 changed files with 31 additions and 13 deletions

View File

@ -6,6 +6,8 @@
#include "zalloc_ext.h"
#include "zalloc.h"
#define MAX_TEX_STACK_LEVEL 128
int parse_table(const char *table_source, size_t len, struct table_s *table, struct xerror_s *error)
{
if (!len)
@ -16,18 +18,32 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
enum where_e
{
IN_GLOBAL,
IN_GLOBAL = 0,
IN_COMMENT,
IN_TAG,
IN_TAG_CRLBRACEPAR,
IN_TAG_SQRBRACEPAR,
IN_TAG_SQUAREBRACE_COMMA,
IN_TAGCLOSE,
//~ IN_TAG,
IN_TAG_END,
IN_TAG_BEGIN_END,
IN_TAG_PARAM,
IN_TAG_BEGIN_PARAM
} where = IN_GLOBAL;
} where_stack[MAX_TEX_STACK_LEVEL] = {IN_GLOBAL};
int tex_level = 0;
//~ where_e where_stack[32] = ;
/* Ищем первое вхождение
* \begin{longtable}
*/
for (i = 0; i < len; i++) {
/* for (i = 0; i < len; i++) {
char c = table_source[i];
switch (where) {
@ -79,7 +95,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
break;
}
}
}*/
table->id = "Drossel1.Table1";

View File

@ -17,11 +17,13 @@ long_line_column=72
[files]
current_page=1
FILE_NAME_0=375;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table_test.c;0
FILE_NAME_1=665;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table.c;0
FILE_NAME_2=2213;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table.h;0
FILE_NAME_3=0;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table_tags.h;0
FILE_NAME_4=1725;Make;0;16;1;1;1;/home/kolan/dev/c/tex_parser/Makefile;0
FILE_NAME_0=216;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table_test.c;0
FILE_NAME_1=415;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table.c;0
FILE_NAME_2=2117;LaTeX;0;45;1;1;1;/home/kolan/dev/c/tex_parser/tables4.tex;0
FILE_NAME_3=9842;LaTeX;0;45;1;1;1;/home/kolan/dev/c/tex_parser/tables5.tex;0
FILE_NAME_4=2352;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table.h;0
FILE_NAME_5=612;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_table_tags.h;0
FILE_NAME_6=1740;Make;0;16;1;1;1;/home/kolan/dev/c/tex_parser/Makefile;0
[build-menu]
NF_00_LB=_Сделать

View File

@ -1,5 +1,5 @@
#ifndef TEX_TABLE_H
#define TEX_TABLE_H
#ifndef _TEX_TABLE_H
#define _TEX_TABLE_H
#include <sys/types.h>
@ -51,4 +51,4 @@ struct table_s {
int parse_table(const char *table_source, size_t len, struct table_s *table, struct xerror_s *error);
#endif // TEX_TABLE_H
#endif

View File

@ -122,7 +122,7 @@ mbox{C}$
\begin_layout Standard
\lang russian
от
от__________
\begin_inset ERT
status open