Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM compile #17

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions src/anal/checkcrasis.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include <gkstring.h>
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/setlang.proto.h"
#include "checkstring.proto.h"
#define MAXCRASIS 12

#include "checkcrasis.proto.h"
Expand Down
8 changes: 8 additions & 0 deletions src/anal/checkdict.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#include <gkstring.h>
#include <modes.h>
#include "../greeklib/nsylls.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/subchar.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/is_thirdmono.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "checkgenwds.proto.h"
#define MAXPPARTS 12

#include "checkdict.proto.h"
Expand Down
17 changes: 17 additions & 0 deletions src/anal/checkgenwds.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#include <endindex.h>
#include <gkstring.h>
#include "../gkends/endindex.proto.h"
#include "../greeklib/getbreath.proto.h"
#include "../greeklib/standword.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripacute.proto.h"
#include "../greeklib/stripdiaer.proto.h"
#include "../greeklib/stripmeta.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../greeklib/zap2ndbreath.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/morphstrcmp.proto.h"
#include "../morphlib/setlang.proto.h"
#include "docrasis.proto.h"
#include "prntanal.proto.h"

#include "checkgenwds.proto.h"

Expand Down
2 changes: 2 additions & 0 deletions src/anal/checkgenwds.proto.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

/* checkgenwds.c */
int show_totanals();
int show_totlems();
int CheckGenWords(gk_word *, gk_word *);
int AddAnalysis(gk_word *, gk_word *);
int merge_anal_dialects(gk_analysis *, gk_analysis *);
Expand Down
14 changes: 14 additions & 0 deletions src/anal/checkhalf1.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#include <gkstring.h>
#include "../greeklib/addbreath.proto.h"
#include "../greeklib/Fclose.proto.h"
#include "../greeklib/getbreath.proto.h"
#include "../greeklib/isdiphth.proto.h"
#include "../greeklib/stripbreath.proto.h"
#include "../greeklib/stripdiaer.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/nextkey.proto.h"
#include "../morphlib/setlang.proto.h"
#include "checkdict.proto.h"
#include "checkstem.proto.h"
#include "checkstring.proto.h"
#define MAX_POSS_STEMS 10

#include "checkhalf1.proto.h"
Expand Down
6 changes: 6 additions & 0 deletions src/anal/checkindecl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include <endtags.h>
#include <gkdict.h>
#include <gkstring.h>
#include <modes.h>
#include "../gkdict/dictio.proto.h"
#include "../greeklib/subchar.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "checkgenwds.proto.h"
#define MAXSTEMS 10

#include "checkindecl.proto.h"
Expand Down
18 changes: 18 additions & 0 deletions src/anal/checkirreg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#include <gkdict.h>
#include <gkstring.h>
#include <endtags.h>
#include "../gkdict/dictio.proto.h"
#include "../greeklib/addbreath.proto.h"
#include "../greeklib/Fclose.proto.h"
#include "../greeklib/getbreath.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripdiaer.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../greeklib/subchar.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/nextkey.proto.h"
#include "../morphlib/preverb2.proto.h"
#include "../morphlib/setlang.proto.h"
#include "checkgenwds.proto.h"
#include "checkirreg.proto.h"
#define MAXIRREGS 10
#define MAXIRR 3

Expand Down
11 changes: 11 additions & 0 deletions src/anal/checknom.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#include <stdio.h>
#include <gkdict.h>
#include <gkstring.h>
#include <endindex.h>
#include <endtags.h>
#include "../gkdict/compnoun.proto.h"
#include "../gkdict/dictio.proto.h"
#include "../gkends/endindex.proto.h"
#include "../greeklib/Fclose.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "checkhalf1.proto.h"
#include "checkstem.proto.h"

#include "checknom.proto.h"
static gotnom(gk_word *);
Expand Down
9 changes: 8 additions & 1 deletion src/anal/checkstem.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#include <stdio.h>
#include <gkdict.h>
#include <gkstring.h>
#include <endtags.h>
#include "../gkdict/dictio.proto.h"
#include "../greeklib/Fclose.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/augment.proto.h"
#define MAXAUGSTEMS 12

#include "checkstem.proto.h"
int comstemtypes(char *, char *, char *);
static wantcurstemtype(char *, char *);
extern verbose;
static int digstem = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/anal/checkstem.proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ int checkstem(char *, char *, gk_string *[], char *[], int);
int stemexists(char *, char *, char *, int);
int setstemvars(char *, char *, char *, char *, char *);
char *parsefield(char *, char *, int, int);
int comstemtypes(char *, char *, char *);
int longeststem(char *);
22 changes: 22 additions & 0 deletions src/anal/checkstring.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
#include <gkstring.h>
#include <endindex.h>
#include "../gkends/endindex.proto.h"
#include "../greeklib/beta_tolower.proto.h"
#include "../greeklib/checkaccent.proto.h"
#include "../greeklib/hasaccent.proto.h"
#include "../greeklib/naccents.proto.h"
#include "../greeklib/nsylls.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/cmpend.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/preverb3.proto.h"
#include "../morphlib/setlang.proto.h"
#include "checkcrasis.proto.h"
#include "checkindecl.proto.h"
#include "checkirreg.proto.h"
#include "checknom.proto.h"
#include "checkword.proto.h"
#include "prntanal.proto.h"

#include "checkstring.proto.h"
static checkstring4(gk_word *);
static add_apostrvowel(char *, char *, char *);
Expand Down
2 changes: 2 additions & 0 deletions src/anal/checkstring.proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ int AddWantDialect(Dialect);
int ZapWantDialect(Dialect);
Dialect GetWantDialect(void);
int updateDialect(Dialect);
int cntlems(gk_word *);
int u2v(char *);
7 changes: 7 additions & 0 deletions src/anal/checkverb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include <stdio.h>
#include <gkstring.h>
#include <endindex.h>
#include "../gkends/endindex.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "checkirreg.proto.h"
#include "prvb.proto.h"

#include "checkverb.proto.h"

Expand Down
4 changes: 4 additions & 0 deletions src/anal/checkword.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include <gkstring.h>
#include "../morphlib/morphflags.proto.h"
#include "checkindecl.proto.h"
#include "checknom.proto.h"
#include "checkverb.proto.h"

#include "checkword.proto.h"

Expand Down
18 changes: 17 additions & 1 deletion src/anal/deverb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#include <stdio.h>
#include <endtags.h>
#include <endindex.h>
#include <gkdict.h>
#include <gkstring.h>
#include "../gkdict/derivio.proto.h"
#include "../gkdict/dictio.proto.h"
#include "../gkends/endindex.proto.h"
#include "../greeklib/addbreath.proto.h"
#include "../greeklib/getbreath.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../greeklib/stripstemsep.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/preverb2.proto.h"
#include "../morphlib/setlang.proto.h"
#include "deverb.proto.h"
int quickflag = 0;
int comstemtypes1(char *,char *, char *, char *);
int comstemtypes(char *, char *, char *);
Expand All @@ -23,7 +39,7 @@ main()
char reskeys[BUFSIZ];
int rval;

while(gets(line)) {
while(fgets(line, BUFSIZ, stdin)) {
transkeys[0] = keys[0] = reskeys[0] = 0;
strcpy(tmp,line);
s = line;
Expand Down
12 changes: 12 additions & 0 deletions src/anal/deverb.proto.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

/* deverb.c */
int comstemtypes1(char *,char *, char *, char *);
int comstemtypes(char *, char *, char *);
int testcmpstem(char *, char *, char *, char *,char *);
int testcmpstem2(char *, char *, char *, char *, char *);
int testcmpstem3(char *, char *, char *, char *, char *);
int checkvcomp(char *, char *, char *, char *);
int chcknstem(char *, char *);
int comNomstemtypes(char *, char *, char *, char *);
int firstkey(char *);
int zaptabs(char *);
7 changes: 7 additions & 0 deletions src/anal/dictstems.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include <gkstring.h>
#include <gkdict.h>
#include "../greeklib/isblank.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripquant.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/morphstrcmp.proto.h"
#include "../morphlib/nextkey.proto.h"
#include "../greeklib/Fclose.proto.h"

#include "dictstems.proto.h"

Expand Down
10 changes: 9 additions & 1 deletion src/anal/findbase.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
#include <stdio.h>
#include <gkdict.h>
#include <endtags.h>
#include <gkstring.h>
#include "../gkdict/dictio.proto.h"
#include "../greeklib/issubstring.proto.h"
#include "../greeklib/stripmeta.proto.h"

#include "findbase.proto.h"
int quickflag = 0;


main()
{
char line[BUFSIZ*10];

while(gets(line)) {
while(fgets(line, BUFSIZ*10, stdin)) {
strcpy(line,line+4);
if( is_substring("ew_",line) || is_substring("aw_",line)) {
check_ew(line);
Expand Down
4 changes: 4 additions & 0 deletions src/anal/findbase.proto.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/* findbase.c */
int check_ew(char *);
int check_ih(char *);
13 changes: 10 additions & 3 deletions src/anal/prntanal.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#include <gkstring.h>
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/beta2smarta.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphkeys.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/setlang.proto.h"
#include "../morphlib/sprntGkflags.h"
static char * pbuf = NULL;
#define NEWLINE "\r"

Expand Down Expand Up @@ -468,7 +475,7 @@ DumpOneAnalysis(gk_word *Gkword, PrntFlags prntflags, gk_analysis *anal, FILE *f
}
*/
fprintf(fout,"\n");
return;
return(0);
}
if( prntflags & DBASEFORMAT ) {
char tmp[BUFSIZ];
Expand Down Expand Up @@ -505,7 +512,7 @@ DumpOneAnalysis(gk_word *Gkword, PrntFlags prntflags, gk_analysis *anal, FILE *f
fprintf(fout,"%s\t%s\n", gkstring_of(ends_gstr_of(anal)),tmp );
tmp[0] = 0;

return;
return(0);

fprintf(fout,"%s\t", lemma_of(anal) );
fprintf(fout,"%s\t", rawword_of(anal) );
Expand Down Expand Up @@ -533,7 +540,7 @@ DumpOneAnalysis(gk_word *Gkword, PrntFlags prntflags, gk_analysis *anal, FILE *f
DumpDbGkString(ends_gstr_of(anal),fout);
}
fprintf(fout,"\n");
return;
return(0);
}

/*
Expand Down
22 changes: 18 additions & 4 deletions src/anal/propname.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#include <stdio.h>
#include <endindex.h>
#include <gkstring.h>
#include "../gkends/endindex.proto.h"
#include "../greeklib/getbreath.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../greeklib/stripacc.proto.h"
#include "../greeklib/stripbreath.proto.h"
#include "../greeklib/stripdiaer.proto.h"
#include "../greeklib/subchar.proto.h"
#include "../greeklib/xstrings.proto.h"
#include "../morphlib/nextkey.proto.h"
#include "../morphlib/trimwhite.proto.h"
#include "checkdict.proto.h"
#include "checkstring.proto.h"

#include "propname.proto.h"
int quickflag = 0;
Expand All @@ -22,15 +36,15 @@ main(void)
fname[0] = 0;

fprintf(stderr,"use stdout? ");
gets(line);
fgets(line, BUFSIZ*4, stdin);

if(line[0] == 'y' ) {
fprintf(stderr,"type in forms\n");
strcpy(outname,"out.morph");
finput = stdin;
} else {
fprintf(stderr,"word file? ");
gets(fname);
fgets(fname, BUFSIZ, stdin);

strcpy(inpname,fname);
strcat(inpname,".words");
Expand Down Expand Up @@ -59,7 +73,7 @@ main(void)

if( ! fname[0] ) {
printf("basename? ");
gets(fname);
fgets(fname, BUFSIZ, stdin);
}
strcpy(tmp,fname);
strcat(tmp,".enames");
Expand Down Expand Up @@ -431,7 +445,7 @@ init_pnametab()
char line[BUFSIZ];
int i = 0;

if( pnames ) return;
if( pnames ) return(0);
for(pnames=0;pnames<10000;pnames++) {
if( ! fgets(line,sizeof line,fpnames) ) {
if( pnames == 1 ) pnames = 0;
Expand Down
4 changes: 4 additions & 0 deletions src/anal/prvb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include <stdio.h>
#include <gkstring.h>
#include "checkhalf1.proto.h"
#include "../morphlib/gkstring.proto.h"
#include "../morphlib/morphflags.proto.h"
#include "../morphlib/preverb2.proto.h"

#include "prvb.proto.h"

Expand Down
Loading