From 00d9d74a7f393a85efc292195cb3fd4a721063ed Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 26 Sep 2011 00:28:58 +0000 Subject: [PATCH] added qse_sed_app_t --- qse/lib/sed/sed.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qse/lib/sed/sed.h b/qse/lib/sed/sed.h index 557a3bb2..4610059a 100644 --- a/qse/lib/sed/sed.h +++ b/qse/lib/sed/sed.h @@ -64,6 +64,18 @@ struct qse_sed_adr_t } 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_APPEND QSE_T('a') #define QSE_SED_CMD_INSERT QSE_T('i') @@ -260,6 +272,14 @@ struct qse_sed_t /** text buffers */ struct { +#if 0 + struct + { + qse_sed_app_t* head; + qse_sed_app_t* tail; + } append; +#endif + qse_str_t append; qse_str_t hold; /* hold space */ qse_str_t subst;