OSDN Git Service

* WorkBackup: 2015/04/15 AM 05:49
authorKoine Yuusuke(koinec) <koinec@users.sourceforge.jp>
Tue, 14 Apr 2015 20:57:19 +0000 (05:57 +0900)
committerKoine Yuusuke(koinec) <koinec@users.sourceforge.jp>
Tue, 14 Apr 2015 20:57:19 +0000 (05:57 +0900)
TODO: LineSection Implimenting

drcc/drcc_config.h
drcc/drcc_edittext_system.h

index 952d636..e415c93 100644 (file)
@@ -54,6 +54,7 @@ Comment:
 #define DRD64_DRCC_DEFAULT_LINESORT_STEP1MAX           100
 #define DRD64_DRCC_DEFAULT_LINESORT_STEP2SCALE         5
 
+#define        DRD64_DRCC_DEFAULT_MAX_SECTIONS                         1024
 
 #endif /* DRD64_HEADER_XXX */
 
index d458e57..b12fdc5 100644 (file)
@@ -57,8 +57,15 @@ typedef      struct  {
        void    *p_before;              /* Pointer of the Before LineInfo Struct */
        void    *p_next;                /* Pointer of the Next LineInfo Struct */
        void    *p_sortnext;    /* Pointer of the LineLength Sort Next LineInfo Struct */
+       void    *p_sectnext;
 } Drd64_DrCC_LineInfo;
 
+typedef        struct  {
+       DWord                                   dw_startrow;
+       DWord                                   dw_lines;
+       Drd64_DrCC_LineInfo             *p_line;
+} Drd64_DrCC_LineSection;
+
 typedef struct {
        int                                             i_id;                   /* ID of TextInfo Struct */
        int                                             i_fd;
@@ -70,9 +77,11 @@ typedef struct       {
        DWord                                   dw_maxline;             /* Max TextFile Lines */
        DWord                                   dw_bufline;             /* Lines of Alloc LineInfo Strcut */
        DWord                                   dw_lastsize;    /* Available Buffer Position */
+       DWord                                   dw_sect_steps;  
        Drd64_DrCC_LineInfo             *p_lineinfo;    /* LineInfo structs TopPointer */
        Drd64_DrCC_LineInfo             *p_empty;               /* Empty LineInfo Structs Chain TopPointer */
        Drd64_DrCC_LineInfo             *p_sort[DRD64_DRCC_DEFAULT_LINESORT_ARRAYS];
+       //Drd64_DrCC_LineSection        *p_section[DRD64_DRCC_DEFAULT_MAX_SECTIONS];
 
        char                                    str_pathname[DRD64_MAX_PATH];
        char                                    str_filename[DRD64_MAX_PATH];