PostgreSQL Source Code  git master
stem_ISO_8859_1_spanish.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_envspanish_ISO_8859_1_create_env (void)
 
void spanish_ISO_8859_1_close_env (struct SN_env *z)
 
int spanish_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ spanish_ISO_8859_1_close_env()

void spanish_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 1092 of file stem_ISO_8859_1_spanish.c.

References SN_close_env().

1092 { SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:40

◆ spanish_ISO_8859_1_create_env()

struct SN_env* spanish_ISO_8859_1_create_env ( void  )

Definition at line 1090 of file stem_ISO_8859_1_spanish.c.

References SN_create_env().

1090 { return SN_create_env(0, 3, 0); }
struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
Definition: api.c:3

◆ spanish_ISO_8859_1_stem()

int spanish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 1026 of file stem_ISO_8859_1_spanish.c.

References SN_env::c, SN_env::l, SN_env::lb, r_attached_pronoun(), r_mark_regions(), r_postlude(), r_residual_suffix(), r_standard_suffix(), r_verb_suffix(), and r_y_verb_suffix().

1026  {
1027  { int c1 = z->c; /* do, line 216 */
1028  { int ret = r_mark_regions(z);
1029  if (ret == 0) goto lab0; /* call mark_regions, line 216 */
1030  if (ret < 0) return ret;
1031  }
1032  lab0:
1033  z->c = c1;
1034  }
1035  z->lb = z->c; z->c = z->l; /* backwards, line 217 */
1036 
1037  { int m2 = z->l - z->c; (void)m2; /* do, line 218 */
1038  { int ret = r_attached_pronoun(z);
1039  if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
1040  if (ret < 0) return ret;
1041  }
1042  lab1:
1043  z->c = z->l - m2;
1044  }
1045  { int m3 = z->l - z->c; (void)m3; /* do, line 219 */
1046  { int m4 = z->l - z->c; (void)m4; /* or, line 219 */
1047  { int ret = r_standard_suffix(z);
1048  if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
1049  if (ret < 0) return ret;
1050  }
1051  goto lab3;
1052  lab4:
1053  z->c = z->l - m4;
1054  { int ret = r_y_verb_suffix(z);
1055  if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
1056  if (ret < 0) return ret;
1057  }
1058  goto lab3;
1059  lab5:
1060  z->c = z->l - m4;
1061  { int ret = r_verb_suffix(z);
1062  if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
1063  if (ret < 0) return ret;
1064  }
1065  }
1066  lab3:
1067  lab2:
1068  z->c = z->l - m3;
1069  }
1070  { int m5 = z->l - z->c; (void)m5; /* do, line 223 */
1071  { int ret = r_residual_suffix(z);
1072  if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
1073  if (ret < 0) return ret;
1074  }
1075  lab6:
1076  z->c = z->l - m5;
1077  }
1078  z->c = z->lb;
1079  { int c6 = z->c; /* do, line 225 */
1080  { int ret = r_postlude(z);
1081  if (ret == 0) goto lab7; /* call postlude, line 225 */
1082  if (ret < 0) return ret;
1083  }
1084  lab7:
1085  z->c = c6;
1086  }
1087  return 1;
1088 }
static int r_postlude(struct SN_env *z)
static int r_y_verb_suffix(struct SN_env *z)
int c
Definition: api.h:16
int lb
Definition: api.h:16
static int r_standard_suffix(struct SN_env *z)
static int r_attached_pronoun(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
int l
Definition: api.h:16