diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-07 08:54:56 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-07 08:54:56 +0000 |
commit | 875e77707294c9e48e549cfeed457f13ef2f88c8 (patch) | |
tree | de88fd6d9fc6e04393e5572c8df8aa48c0956e08 /Build/source/texk/dvipsk/protos.h | |
parent | ecc7e87ccffc19c4550f5b2452688a8fb3006aa8 (diff) |
dvipsk cleanup: static funcs and trailing whitespace
git-svn-id: svn://tug.org/texlive/trunk@18142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/protos.h')
-rw-r--r-- | Build/source/texk/dvipsk/protos.h | 148 |
1 files changed, 4 insertions, 144 deletions
diff --git a/Build/source/texk/dvipsk/protos.h b/Build/source/texk/dvipsk/protos.h index 0f857c800fa..d66ec8760e1 100644 --- a/Build/source/texk/dvipsk/protos.h +++ b/Build/source/texk/dvipsk/protos.h @@ -12,12 +12,9 @@ struct tcd; /******* prototypes for functions *******/ /* prototypes for functions from bbox.c */ -extern void bbtfmload(fontdesctype *curfnt); -extern void bbdopage(void); extern void findbb(int bop); /* prototypes for functions from color.c */ -extern void colorcmdout(char *s); extern void initcolor(void); extern void background(char *bkgrnd); extern void resetcolorstack(char *p, int outtops); @@ -31,16 +28,12 @@ extern void dopage(void); /* prototypes for functions from dosection.c */ extern void dosection(sectiontype *s, int c); extern int InPageList(int i); -extern void InstallPL(int pslow, int pshigh); extern int ParsePages(char *s); /* prototypes for functions from dospecial.c */ extern void specerror(const char *s); extern void outbangspecials(void); -extern int IsSame(const char *a, const char *b); -extern char *GetKeyVal(char *str, int *tno); extern void predospecial(int numbytes, Boolean scanning); -extern int maccess(char *s); extern void dospecial(int numbytes); extern float *bbdospecial(int nbytes); @@ -51,8 +44,6 @@ extern void lfontout(int n); extern void dopsfont(sectiontype *fs); /* prototypes for functions from dpicheck.c */ -extern void addsiz(int rhsize); -extern void adddpi(int hsize); extern unsigned short dpicheck(unsigned short dpi); /* prototypes for functions from drawPS.c */ @@ -60,7 +51,6 @@ extern unsigned short dpicheck(unsigned short dpi); extern void setPenSize(char *cp); extern void addPath(char *cp); extern void arc(char *cp, int invis); -extern void flushDashedPath(int dotted, double inchesPerDash); extern void flushPath(int invis); extern void flushDashed(char *cp, int dotted); extern void flushSpline(char *cp); @@ -71,7 +61,6 @@ extern void blackenLast(void); #endif /* TPIC */ /* prototypes for functions from dviinput.c */ -extern void abortpage(void); extern short dvibyte(void); extern unsigned short twobytes(void); extern int threebytes(void); @@ -87,48 +76,16 @@ extern void error_with_perror(const char *s, const char *fname); extern void error(const char *s); extern void check_checksum(unsigned int c1, unsigned int c2, const char *name); extern char *mymalloc(int n); -extern void morestrings(void); extern void checkstrings(void); -extern void initialize(void); extern char *newstring(const char *s); -extern void newoutname(void); extern void *revlist(void *p); -extern void queryargs(void); /* prototypes for functions from emspecial.c */ extern void emclear(void); -extern struct empt *emptput(short point, int x, int y); -extern struct empt *emptget(short point); -extern float emunits(float width, char *unit); extern void emspecial(char *p); -extern int readinteger(FILE *f); -extern unsigned short readhalfword(FILE *f); -extern int PCXreadline(FILE *pcxf, unsigned char *pcxbuf, unsigned int byteperline); -extern void PCXshowpicture(FILE *pcxf,int wide,int high,int bytes,int cp,int bp,unsigned char *r,unsigned char *g,unsigned char *b); -extern void imagehead(char *filename, int wide, int high, float emwidth, float emheight); -extern void imagetail(void); -extern void pcxgraph(FILE *pcxf, char *filename, float emwidth, float emheight); -extern void MSP_2_ps(FILE *f, int wide, int high); -extern void MSP_1_ps(FILE *f, int wide, int high); -extern void mspgraph(FILE *f, char *filename, float emwidth, float emheight); -extern void rgbread(FILE *f, int w, int b, char *s); -extern void rle4read(FILE *f, int w, int b, char *s); -extern void rle8read(FILE *f, int w, int b, char *s); -extern void bmpgraph(FILE *f, char *filename, float emwidth, float emheight); -extern void emgraph(char *filename, float emwidth, float emheight); /* prototypes for functions from finclude.c */ -extern fontdesctype *ifontdef(char *name, char *area, int scsize, int dssize, char *scname); -extern void setfamily(fontdesctype *f); -extern char *getname(char *s); -extern void includechars(fontdesctype *f, char *s); -extern void scan1fontcomment(char *p); -extern int scanvm(char *p); -extern void scan_fontnames(char *str, const char *psfile); -extern void scanfontusage(char *p, const char *psfile); extern void scanfontcomments(const char *filename); -extern Boolean okascmd(char *ss); -extern void nameout(char *area, char *name); extern void fonttableout(void); /* prototypes for functions from flib.c */ @@ -145,8 +102,6 @@ extern int skipnop(void); /* prototypes for functions from header.c */ extern int add_name(const char *s, struct header_list **what ); -extern int add_name_general(const char *s, struct header_list **what, - char *pre, char *post); extern void checkhmem(const char *s, char *p, char *q); extern int add_header(const char *s); extern int add_header_general(const char *s, char *pre, char* post); @@ -156,27 +111,9 @@ extern void send_headers(void); /* prototypes for functions from hps.c */ #ifdef HPS extern void do_html(char *s); -extern int href_or_name(void); -extern int parseref(void); -extern int get_string(void); -extern int do_link(char *s, int type); -extern unsigned int hash_string(char *s); -extern struct nlist *lookup_link(char *s, int type); -extern struct nlist *install_link(char *name, struct hps_link *defn, int type); -extern struct hps_link *link_dup(struct hps_link *s); -extern double dvi_to_hps_conv(int i, int dir); -extern int vert_loc(int i); -extern struct hps_link *dest_link(char *s); -extern int count_targets(void); -extern void do_targets(void); -extern void do_target_dict(void); -extern int href_name_match(char *h, char *n); -extern void stamp_hps(struct hps_link *pl); -extern void stamp_external(char *s, struct hps_link *pl); extern void finish_hps(void); extern void set_bitfile(const char *s, int mode); extern void vertical_in_hps(void); -extern void print_rect_list(void); extern void end_current_box(void); extern void start_new_box(void); #endif /* HPS */ @@ -186,8 +123,6 @@ extern void badpk(const char *s); extern short pkbyte(void); extern int pkquad(void); extern int pktrio(void); -extern void lectureuser(void); -extern Boolean pkopen(fontdesctype *fd); extern void loadfont(fontdesctype *curfnt); /* prototypes for functions from makefont.c */ @@ -210,13 +145,8 @@ extern void numout(int n); extern void mhexout(unsigned char *p, long len); extern void hvpos(void); extern void newline(void); -extern void nlcmdout(const char *s); -extern int mlower(int c); -extern int ncstrcmp(const char *a, const char *b); -extern void findpapersize(void); -extern void paperspec(const char *s, int hed); -extern char *epsftest(int bop); extern void open_output(void); +extern void nlcmdout(const char *s); extern void initprinter(sectiontype *sect); extern void setup(void); extern void cleanprinter(void); @@ -225,12 +155,9 @@ extern void pageinit(void); extern void pageend(void); extern void drawrule(int rw, int rh); extern void cmddir(void); - extern void drawchar(chardesctype * c, int cc); -extern void tell_needed_fonts(void); /* prototypes for functions from papersiz.c */ -extern long myatodim(char **s ); extern void handlepapersize(char *p, int *x, int *y); /* prototypes for functions from pprescan.c */ @@ -241,10 +168,8 @@ extern void readpreamble(void); extern void prescanpages(void); /* prototypes for functions from repack.c */ -extern void was_putlong(char *a, long i); extern long getlong(unsigned char *a); extern void dochar(unsigned char *from, short width, short height); -extern char *makecopy(unsigned char *what, long len, unsigned char *p); extern void repack(struct tcd *cp); /* prototypes for functions from resident.c */ @@ -253,10 +178,7 @@ extern void revpslists(void); extern void cleanres(void); extern struct resfont *lookup(char *name); extern struct resfont *findPSname(char *name); -extern void add_entry(char *TeXname, char *PSname, char *Fontfile, char *Vectfile, char *specinfo, char *downloadinfo); extern int residentfont(fontdesctype *curfnt); -extern void bad_config(const char *err); -extern char *configstring(char *s, int nullok); extern Boolean getdefaults(const char *s); extern void getpsinfo(const char *name); extern void checkenv(int which); @@ -284,89 +206,26 @@ extern int close_file(FILE *f); extern void skippage(void); /* prototypes for functions from t1part.c */ -extern int DefTypeFont(unsigned char *name); -extern int GetZeroLine(unsigned char *str); -extern int GetWord(unsigned char *mem); -extern int GetToken(void); -extern int GetNum(void); -extern int PassToken(void); -extern int PassString(unsigned char flg); extern void *getmem(unsigned int size); -extern struct Char *AddChar(struct Char *TmpChar, unsigned char *CharName, int num); -extern void AddStr(unsigned char *name, int num); -extern void RevChar(struct Char *TmpChar); -extern void OutChar(struct Char *TmpChar, FILE *fout); -extern void Reverse(struct String *TmpStr); -extern void OutStr(struct String *TmpStr, FILE *fout); -extern void PrintChar(struct Char *TmpChar); -extern int ClearB(void); -extern int ChooseChar(unsigned char *name, struct Char *TmpChar); -extern int FindSeac(int num); -extern int FindCharW(unsigned char *name, int length); -extern void ClearCW(struct Char *ThisChar); -extern int WorkVect(struct Char *TmpChar); -extern void UnDefineCharsW(void); extern struct Char *UnDefineChars(struct Char *TmpChar); -extern void UnDefineStr(void); -extern void ScanSubrs(int i); -extern void ViewReturnCall(int num_err, int top, int *pstack, int j, int depth); -extern int DeCodeStr(int num, int numseac); -extern void ScanChars(int i); -extern void LastLook(void); -extern int FindKeyWord(int First_Key, int lastkey); -extern int ScanBinary(void); -extern unsigned char *itoasp(int n, unsigned char *s, int len); -extern void SubstNum(void); -extern unsigned long little4(unsigned char *buff); -extern unsigned char CDeCrypt(unsigned char cipher, unsigned int *lcdr); -extern int EndOfEncoding(int err_num); -extern void CorrectGrid(void); -extern int CharEncoding(void); -extern void FindEncoding(void); -extern void CheckChoosing(void); -extern void OutASCII(FILE *fout, unsigned char *buff, unsigned long len); -extern void BinEDeCrypt(unsigned char *buff, unsigned long len); -extern void HexEDeCrypt(unsigned char *mem); -extern int PartialPFA(FILE *fin, FILE *fout); -extern int PartialPFB(FILE *fin, FILE *fout); -extern void OutHEX(FILE *fout); -extern int Afm(void); extern int FontPart(FILE *fout, unsigned char *fontfile, unsigned char *vectfile); -extern int LoadVector(int num, struct Char *TmpChar); -extern int ChooseVect(struct Char *tmpChar); -extern void ErrorOfScan(int err); -extern void NameOfProgram(void); /* prototypes for functions from tfmload.c */ extern void badtfm(const char *s); extern void tfmopen(fontdesctype *fd); -extern short tfmbyte(void); extern unsigned short tfm16(void); extern int tfm32(void); extern int tfmload(fontdesctype *curfnt); /* prototypes for functions from unpack.c */ -extern short getnyb(void); -extern Boolean getbit(void); -extern long pkpackednum(void); -extern void flip(char *s, long howmany); extern long unpack(unsigned char *pack, unsigned short *raster, unsigned short cwidth, unsigned short cheight, unsigned short cmd); /* prototypes for functions from virtualfont.c */ -extern void badvf(const char *s); -extern short vfbyte(void); -extern int vfquad(void); -extern int vftrio(void); -extern int vfopen(fontdesctype *fd); -extern struct tft *vfontdef(int s, int siz); extern Boolean virtualfont(fontdesctype *curfnt); /* prototypes for functions from writet1.c */ extern void load_enc(char *, const char **); -extern void writet1(void); -extern void t1_free(void); -extern boolean t1_subset(char *, char *, unsigned char *); extern boolean t1_subset_2(char *, unsigned char *, char *); /*********** global variables ***********/ @@ -386,6 +245,7 @@ extern int pagecounter; #endif /* global variables from dvips.c */ +extern Boolean SJIS; extern char *downloadedpsnames[]; extern int unused_top_of_psnames; extern fontdesctype *fonthead; @@ -418,7 +278,7 @@ extern integer hoff, voff; extern integer maxsecsize; extern integer firstboploc; extern Boolean sepfiles; -extern int numcopies; +extern int numcopies; extern const char *oname; extern char *iname; extern char *fulliname; @@ -469,7 +329,7 @@ extern int prettycolumn; extern int gargc; extern char **gargv; extern int totalpages; -extern Boolean reverse; +extern Boolean reverse; extern Boolean usesPSfonts; extern Boolean usesspecial; extern Boolean headers_off; |