PostgreSQL Source Code git master
stem_ISO_8859_1_basque.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SN_envbasque_ISO_8859_1_create_env (void)
 
void basque_ISO_8859_1_close_env (struct SN_env *z)
 
int basque_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ basque_ISO_8859_1_close_env()

void basque_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 1161 of file stem_ISO_8859_1_basque.c.

1161 {
1162 SN_delete_env(z);
1163}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ basque_ISO_8859_1_create_env()

struct SN_env * basque_ISO_8859_1_create_env ( void  )

Definition at line 1151 of file stem_ISO_8859_1_basque.c.

1151 {
1152 struct SN_env * z = SN_new_env(sizeof(SN_local));
1153 if (z) {
1154 ((SN_local *)z)->i_p2 = 0;
1155 ((SN_local *)z)->i_p1 = 0;
1156 ((SN_local *)z)->i_pV = 0;
1157 }
1158 return z;
1159}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ basque_ISO_8859_1_stem()

int basque_ISO_8859_1_stem ( struct SN_env z)

Definition at line 1109 of file stem_ISO_8859_1_basque.c.

1109 {
1110 {
1111 int ret = r_mark_regions(z);
1112 if (ret < 0) return ret;
1113 }
1114 z->lb = z->c; z->c = z->l;
1115 while (1) {
1116 int v_1 = z->l - z->c;
1117 {
1118 int ret = r_aditzak(z);
1119 if (ret == 0) goto lab0;
1120 if (ret < 0) return ret;
1121 }
1122 continue;
1123 lab0:
1124 z->c = z->l - v_1;
1125 break;
1126 }
1127 while (1) {
1128 int v_2 = z->l - z->c;
1129 {
1130 int ret = r_izenak(z);
1131 if (ret == 0) goto lab1;
1132 if (ret < 0) return ret;
1133 }
1134 continue;
1135 lab1:
1136 z->c = z->l - v_2;
1137 break;
1138 }
1139 {
1140 int v_3 = z->l - z->c;
1141 {
1142 int ret = r_adjetiboak(z);
1143 if (ret < 0) return ret;
1144 }
1145 z->c = z->l - v_3;
1146 }
1147 z->c = z->lb;
1148 return 1;
1149}
static int r_aditzak(struct SN_env *z)
static int r_adjetiboak(struct SN_env *z)
static int r_izenak(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int lb
Definition: api.h:17
int c
Definition: api.h:17
int l
Definition: api.h:17

References SN_env::c, SN_env::l, SN_env::lb, r_aditzak(), r_adjetiboak(), r_izenak(), and r_mark_regions().