1 /* Copyright (C) 2011 Edward Der-Hua Liu, Hsin-Chu, Taiwan 2 * 3 * This library is free software; you can redistribute it and/or 4 * modify it under the terms of the GNU Lesser General Public 5 * License as published by the Free Software Foundation version 2.1 6 * of the License. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public 14 * License along with this library; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 16 */ 17 18 typedef struct { 19 char *ch; 20 char **sel; 21 int selN; 22 u_short flag; 23 u_char c_sel; 24 char plen, keysN; 25 u_int64_t keys[8]; 26 } GEDIT; 27 28 extern GEDIT *gbuf; 29 extern short gbufN; 30 31 void insert_gbuf_nokey (char *s); 32 void insert_gbuf_cursor1_cond (char *s, u_int64_t key, gboolean valid_key); 33 GEDIT *insert_gbuf_cursor (char **sel, int selN, u_int64_t key, gboolean b_gtab_en_no_spc); 34