added qse_sed_app_t

This commit is contained in:
hyung-hwan 2011-09-26 00:28:58 +00:00
parent b9e365f148
commit 00d9d74a7f

View File

@ -64,6 +64,18 @@ struct qse_sed_adr_t
} u; } u;
}; };
typedef struct qse_sed_app_t qse_sed_app_t;
struct qse_sed_app_t
{
enum
{
QSE_SED_APP_STR,
QSE_SED_APP_FILE
};
qse_cstr_t text;
qse_sed_app_t* next;
};
#define QSE_SED_CMD_QUIT_QUIET QSE_T('Q') #define QSE_SED_CMD_QUIT_QUIET QSE_T('Q')
#define QSE_SED_CMD_APPEND QSE_T('a') #define QSE_SED_CMD_APPEND QSE_T('a')
#define QSE_SED_CMD_INSERT QSE_T('i') #define QSE_SED_CMD_INSERT QSE_T('i')
@ -260,6 +272,14 @@ struct qse_sed_t
/** text buffers */ /** text buffers */
struct struct
{ {
#if 0
struct
{
qse_sed_app_t* head;
qse_sed_app_t* tail;
} append;
#endif
qse_str_t append; qse_str_t append;
qse_str_t hold; /* hold space */ qse_str_t hold; /* hold space */
qse_str_t subst; qse_str_t subst;