Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
deprecatedGen.c
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file deprecatedGen.c
5 
6  \version V1.4
7  \date 20.07.15
8  \brief Source code for all deprecated functions.
9 
10  \copyright (c) UCL / Dr. Andrew C. R. Martin 2014-2015
11  \author Dr. Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39  Allows code utilising BiopLib to compile without modification to use
40  function names with the 'bl' prefix.(The 'bl' prefix was introduced in
41  July 2014.)
42 
43 
44 **************************************************************************
45 
46  Usage:
47  ======
48 
49  Code using deprecated functions can be compiled without modification,
50  however, all deprecated functions use the DEPRECATED macro which prints
51  a warning message to stderr when a deprecated function is called.
52 
53  The warning message can be suppressed as either an option at the
54  compilation of the library or by setting an environment variable at
55  runtime.
56 
57  \par Documentation
58  Doxygen is not set to document deprecated functions. To document
59  deprecated functions, add "deprecated" to the ENABLED SECTIONS tag in
60  the Doxygen config file:
61  bioplib/doc/doxygen/Doxyfile
62 
63 **************************************************************************
64 
65  Revision History:
66  =================
67 
68 - V1.0 31.07.14 Original By: CTP
69 - V1.1 08.08.14 Separated Biop and Gen deprecation By: ACRM
70 - V1.2 14.08.14 Removed unnecessary includes.
71  Corrected safemem.h function names By: CTP
72 - V1.3 24.10.14 Added regression and eigen By: ACRM
73 - V1.4 20.07.15 Deprecated blDistPtVect()
74 
75 
76 *************************************************************************/
77 /* Includes
78 */
79 #include "deprecated.h"
80 
81 #include "general.h"
82 #include "BuffInp.h"
83 #include "ErrStack.h"
84 #include "MathUtil.h"
85 #include "WindIO.h"
86 #include "angle.h"
87 #include "array.h"
88 #include "help.h"
89 #include "hpgl.h"
90 #include "matrix.h"
91 #include "parse.h"
92 #include "plotting.h"
93 #include "ps.h"
94 #include "safemem.h"
95 #include "eigen.h"
96 #include "regression.h"
97 
98 
99 /************************************************************************/
100 /* Defines and macros
101 */
102 
103 /************************************************************************/
104 /* Globals
105 */
106 
107 /************************************************************************/
108 /* Prototypes
109 */
110 
111 
112 
113 /************************************************************************/
114 /** \cond deprecated */
115 /************************************************************************/
116 /* Renamed functions: general.h */
117 
118 
119 void StringToLower(char *string1, char *string2)
120 {
121  DEPRECATED("StringToLower()","blStringToLower()");
122  blStringToLower(string1, string2);
123 }
124 
125 void StringToUpper(char *string1, char *string2)
126 {
127  DEPRECATED("StringToUpper()","blStringToUpper()");
128  blStringToUpper(string1, string2);
129 }
130 
131 char *KillLeadSpaces(char *string)
132 {
133  DEPRECATED("KillLeadSpaces()","blKillLeadSpaces()");
134  return(blKillLeadSpaces(string));
135 }
136 
137 void KillLine(FILE *fp)
138 {
139  DEPRECATED("KillLine()","blKillLine()");
140  blKillLine(fp);
141 }
142 
143 void SetExtn(char *File, char *Ext)
144 {
145  DEPRECATED("SetExtn()","blSetExtn()");
146  blSetExtn(File, Ext);
147 }
148 
149 int chindex(char *string, char ch)
150 {
151  DEPRECATED("chindex()","blChindex()");
152  return(blChindex(string, ch));
153 }
154 
155 void Word(char *string1, char *string2)
156 {
157  DEPRECATED("Word()","blWord()");
158  blWord(string1, string2);
159 }
160 
161 void WordN(char *string1, char *string2, int MaxChar)
162 {
163  DEPRECATED("WordN()","blWordN()");
164  blWordN(string1, string2, MaxChar);
165 }
166 
167 void padterm(char *string, int length)
168 {
169  DEPRECATED("padterm()","blPadterm()");
170  blPadterm(string, length);
171 }
172 
173 void padchar(char *string, int length, char ch)
174 {
175  DEPRECATED("padchar()","blPadchar()");
176  blPadchar(string, length, ch);
177 }
178 
179 BOOL CheckExtn(char *string, char *ext)
180 {
181  DEPRECATED("CheckExtn()","blCheckExtn()");
182  return(blCheckExtn(string, ext));
183 }
184 
185 char *ftostr(char *str, int maxlen, REAL x, int precision)
186 {
187  DEPRECATED("ftostr()","blFtostr()");
188  return(blFtostr(str, maxlen, x, precision));
189 }
190 
191 void GetFilestem(char *filename, char *stem)
192 {
193  DEPRECATED("GetFilestem()","blGetFilestem()");
194  blGetFilestem(filename, stem);
195 }
196 
197 int upstrcmp(char *word1, char *word2)
198 {
199  DEPRECATED("upstrcmp()","blUpstrcmp()");
200  return(blUpstrcmp(word1, word2));
201 }
202 
203 int upstrncmp(char *word1, char *word2, int ncomp)
204 {
205  DEPRECATED("upstrncmp()","blUpstrncmp()");
206  return(blUpstrncmp(word1, word2, ncomp));
207 }
208 
209 char *GetWord(char *buffer, char *word, int maxsize)
210 {
211  DEPRECATED("GetWord()","blGetWord()");
212  return(blGetWord(buffer, word, maxsize));
213 }
214 
215 BOOL OpenStdFiles(char *infile, char *outfile, FILE **in, FILE **out)
216 {
217  DEPRECATED("OpenStdFiles()","blOpenStdFiles()");
218  return(blOpenStdFiles(infile, outfile, in, out));
219 }
220 
221 FILE *OpenFile(char *filename, char *envvar, char *mode, BOOL *noenv)
222 {
223  DEPRECATED("OpenFile()","blOpenFile()");
224  return(blOpenFile(filename, envvar, mode, noenv));
225 }
226 
227 int countchar(char *string, char ch)
228 {
229  DEPRECATED("countchar()","blCountchar()");
230  return(blCountchar(string, ch));
231 }
232 
233 char *fgetsany(FILE *fp)
234 {
235  DEPRECATED("fgetsany()","blFgetsany()");
236  return(blFgetsany(fp));
237 }
238 
239 char *strcatalloc(char *instr, char *catstr)
240 {
241  DEPRECATED("strcatalloc()","blStrcatalloc()");
242  return(blStrcatalloc(instr, catstr));
243 }
244 
245 STRINGLIST *StoreString(STRINGLIST *StringList, char *string)
246 {
247  DEPRECATED("StoreString()","blStoreString()");
248  return(blStoreString(StringList, string));
249 }
250 
251 BOOL InStringList(STRINGLIST *StringList, char *string)
252 {
253  DEPRECATED("InStringList()","blInStringList()");
254  return(blInStringList(StringList, string));
255 }
256 
257 void FreeStringList(STRINGLIST *StringList)
258 {
259  DEPRECATED("FreeStringList()","blFreeStringList()");
260  blFreeStringList(StringList);
261 }
262 
263 char *QueryStrStr(char *string, char *substring)
264 {
265  DEPRECATED("QueryStrStr()","blQueryStrStr()");
266  return(blQueryStrStr(string, substring));
267 }
268 
269 void IndexReal(REAL *arrin, int *indx, int n)
270 {
271  DEPRECATED("IndexReal()","blIndexReal()");
272  blIndexReal(arrin, indx, n);
273 }
274 
275 FILE *OpenOrPipe(char *filename)
276 {
277  DEPRECATED("OpenOrPipe()","blOpenOrPipe()");
278  return(blOpenOrPipe(filename));
279 }
280 
281 int CloseOrPipe(FILE *fp)
282 {
283  DEPRECATED("CloseOrPipe()","blCloseOrPipe()");
284  return(blCloseOrPipe(fp));
285 }
286 
287 BOOL WrapString(char *in, char *out, int maxlen)
288 {
289  DEPRECATED("WrapString()","blWrapString()");
290  return(blWrapString(in, out, maxlen));
291 }
292 
293 BOOL WrapPrint(FILE *out, char *string)
294 {
295  DEPRECATED("WrapPrint()","blWrapPrint()");
296  return(blWrapPrint(out, string));
297 }
298 
299 void RightJustify(char *string)
300 {
301  DEPRECATED("RightJustify()","blRightJustify()");
302  blRightJustify(string);
303 }
304 
305 char *GetWordNC(char *buffer, char *word, int maxlen)
306 {
307  DEPRECATED("GetWordNC()","blGetWordNC()");
308  return(blGetWordNC(buffer, word, maxlen));
309 }
310 
311 void getfield(char *buffer, int start, int width, char *str)
312 {
313  DEPRECATED("getfield()","blGetfield()");
314  blGetfield(buffer, start, width, str);
315 }
316 
317 
318 
319 /************************************************************************/
320 /* Renamed functions: BuffInp.h */
321 
322 INBUFFER *OpenBufferedFile(char *filename, int maxstr)
323 {
324  DEPRECATED("OpenBufferedFile()","blOpenBufferedFile()");
325  return(blOpenBufferedFile(filename, maxstr));
326 }
327 
328 BOOL ReadBufferedFile(INBUFFER *bfp, char *string, int length)
329 {
330  DEPRECATED("ReadBufferedFile()","blReadBufferedFile()");
331  return(blReadBufferedFile(bfp, string, length));
332 }
333 
334 BOOL ProbeBufferedFile(INBUFFER *bfp, char *string, int length)
335 {
336  DEPRECATED("ProbeBufferedFile()","blProbeBufferedFile()");
337  return(blProbeBufferedFile(bfp, string, length));
338 }
339 
340 
341 
342 /************************************************************************/
343 /* Renamed functions: ErrStack.h */
344 
345 void StoreError(char *routine, char *error)
346 {
347  DEPRECATED("StoreError()","blStoreError()");
348  blStoreError(routine, error);
349 }
350 
351 void ShowErrors(void *PrintRoutine(char *), BOOL Trace)
352 {
353  DEPRECATED("ShowErrors()","blShowErrors()");
354  blShowErrors(PrintRoutine, Trace); /* CHECK THIS */
355 }
356 
357 
358 
359 /************************************************************************/
360 /* Renamed functions: MathUtil.h */
361 
362 void CalcSD(REAL val, int action, REAL *mean, REAL *SD)
363 {
364  DEPRECATED("CalcSD()","blCalcSD()");
365  blCalcSD(val, action, mean, SD);
366 }
367 
368 void CalcExtSD(REAL val, int action, REAL *Sx, REAL *SxSq, int *NValues,
369  REAL *mean, REAL *SD)
370 {
371  DEPRECATED("CalcExtSD()","blCalcExtSD()");
372  blCalcExtSD(val, action, Sx, SxSq, NValues, mean, SD);
373 }
374 
375 REAL pearson(REAL *x, REAL *y, int NItem)
376 {
377  DEPRECATED("pearson()","blPearson()");
378  return(blPearson(x, y, NItem));
379 }
380 
381 REAL pearson1(REAL *x, REAL *y, int NItem)
382 {
383  DEPRECATED("pearson1()","blPearson1()");
384  return(blPearson1(x, y, NItem));
385 }
386 
387 
388 void CrossProd3(VEC3F *Out, VEC3F In1, VEC3F In2)
389 {
390  DEPRECATED("CrossProd3()","blCrossProd3()");
391  blCrossProd3(Out, In1, In2);
392 }
393 
394 void VecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
395 {
396  DEPRECATED("VecSub3()","blVecSub3()");
397  blVecSub3(Out, In1, In2);
398 }
399 
400 void VecAdd3(VEC3F *Out, VEC3F In1, VEC3F In2)
401 {
402  DEPRECATED("VecAdd3()","blVecAdd3()");
403  blVecAdd3(Out, In1, In2);
404 }
405 
406 REAL VecLen3(VEC3F Vec)
407 {
408  DEPRECATED("VecLen3()","blVecLen3()");
409  return(blVecLen3(Vec));
410 }
411 
412 REAL DistPtVect(VEC3F Point, VEC3F End1, VEC3F End2)
413 {
414  DEPRECATED("DistPtVect()","blDistPtVect()");
415  return(blDistPtLine(Point, End1, End2));
416 }
417 
418 
419 REAL PointLineDistance(REAL Px, REAL Py, REAL Pz,
420  REAL P1x, REAL P1y, REAL P1z,
421  REAL P2x, REAL P2y, REAL P2z,
422  REAL *Rx, REAL *Ry, REAL *Rz,
423  REAL *frac)
424 {
425  DEPRECATED("PointLineDistance()","blPointLineDistance()");
426  return(blPointLineDistance(Px, Py, Pz,
427  P1x, P1y, P1z,
428  P2x, P2y, P2z,
429  Rx, Ry, Rz, frac));
430 }
431 
432 ULONG factorial(int n)
433 {
434  DEPRECATED("factorial()","blFactorial()");
435  return(blFactorial(n));
436 }
437 
438 ULONG factdiv(int n1, int n2)
439 {
440  DEPRECATED("factdiv()","blFactdiv()");
441  return(blFactdiv(n1, n2));
442 }
443 
444 ULONG NPerm(int n, int r)
445 {
446  DEPRECATED("NPerm()","blNPerm()");
447  return(blNPerm(n, r));
448 }
449 
450 ULONG NComb(int n, int r)
451 {
452  DEPRECATED("NComb()","blNComb()");
453  return(blNComb(n, r));
454 }
455 
456 REAL blDistPtVect(VEC3F Point, VEC3F End1, VEC3F End2)
457 {
458  DEPRECATED("blDistPtVect()","blDistPtLine()");
459  return(blDistPtLine(Point, End1, End2));
460 }
461 
462 
463 /************************************************************************/
464 /* Renamed functions: WindIO.h */
465 
466 void screen(char *string)
467 {
468  DEPRECATED("Screen()","blScreen()");
469  blScreen(string);
470 }
471 
472 void prompt(char *string)
473 {
474  DEPRECATED("Prompt()","blPrompt()");
475  blPrompt(string);
476 }
477 
478 void RePrompt(void)
479 {
480  DEPRECATED("RePrompt()","blRePrompt()");
481  blRePrompt();
482 }
483 
484 void GetKybdString(char *string, int maxlen)
485 {
486  DEPRECATED("GetKybdString()","blGetKybdString()");
487  blGetKybdString(string, maxlen);
488 }
489 
490 void PagingOn(void)
491 {
492  DEPRECATED("PagingOn()","blPagingOn()");
493  blPagingOn();
494 }
495 
496 void PagingOff(void)
497 {
498  DEPRECATED("PagingOff()","blPagingOff()");
499  blPagingOff();
500 }
501 
502 void WindowMode(BOOL mode)
503 {
504  DEPRECATED("WindowMode()","blWindowMode()");
505  blWindowMode(mode);
506 }
507 
508 void WindowInteractive(BOOL mode)
509 {
510  DEPRECATED("WindowInteractive()","blWindowInteractive()");
511  blWindowInteractive(mode);
512 }
513 
514 int YorN(char deflt)
515 {
516  DEPRECATED("YorN()","blYorN()");
517  return(blYorN(deflt));
518 }
519 
520 
521 /************************************************************************/
522 /* Renamed functions: angle.h */
523 
524 REAL angle(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk,
525  REAL yk, REAL zk)
526 {
527  DEPRECATED("Angle()","blAngle()");
528  return(blAngle(xi, yi, zi, xj, yj, zj, xk, yk, zk));
529 }
530 
531 REAL phi(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk,
532  REAL yk, REAL zk, REAL xl, REAL yl, REAL zl)
533 {
534  DEPRECATED("Phi()","blPhi()");
535  return(blPhi(xi, yi, zi, xj, yj, zj, xk, yk, zk, xl, yl, zl));
536 }
537 
538 REAL simpleangle(REAL ang)
539 {
540  DEPRECATED("Simpleangle()","blSimpleangle()");
541  return(blSimpleangle(ang));
542 }
543 
544 REAL TrueAngle(REAL opp, REAL adj)
545 {
546  DEPRECATED("TrueAngle()","blTrueAngle()");
547  return(blTrueAngle(opp, adj));
548 }
549 
550 BOOL TorToCoor(VEC3F ant1, VEC3F ant2, VEC3F ant3, REAL bond, REAL theta,
551  REAL torsion, VEC3F *coords)
552 {
553  DEPRECATED("TorToCoor()","blTorToCoor()");
554  return(blTorToCoor(ant1, ant2, ant3, bond, theta, torsion, coords));
555 }
556 
557 
558 
559 
560 /************************************************************************/
561 /* Renamed functions: array.h */
562 
563 char **Array2D(int size, int dim1, int dim2)
564 {
565  DEPRECATED("Array2D()","blArray2D()");
566  return(blArray2D(size, dim1, dim2));
567 }
568 
569 void FreeArray2D(char **array, int dim1, int dim2)
570 {
571  DEPRECATED("FreeArray2D()","blFreeArray2D()");
572  blFreeArray2D(array, dim1, dim2);
573 }
574 
575 
576 char ***Array3D(int size, int dim1, int dim2, int dim3)
577 {
578  DEPRECATED("Array3D()","blArray3D()");
579  return(blArray3D(size, dim1, dim2, dim3));
580 }
581 
582 void FreeArray3D(char ***array, int dim1, int dim2, int dim3)
583 {
584  DEPRECATED("FreeArray3D()","blFreeArray3D()");
585  blFreeArray3D(array, dim1, dim2, dim3);
586 }
587 
588 
589 
590 
591 /************************************************************************/
592 /* Renamed functions: help.h */
593 
594 void Help(char *string, char *HelpFile)
595 {
596  DEPRECATED("Help()","blHelp()");
597  blHelp(string, HelpFile);
598 }
599 
600 void DoHelp(char *string, char *HelpFile)
601 {
602  DEPRECATED("DoHelp()","blDoHelp()");
603  blDoHelp(string, HelpFile);
604 }
605 
606 
607 
608 /************************************************************************/
609 /* Renamed functions: hpgl.h */
610 
611 BOOL HPGLInit(char *filename, char *AltFont, REAL xmargin, REAL ymargin)
612 {
613  DEPRECATED("HPGLInit()","blHPGLInit()");
614  return(blHPGLInit(filename, AltFont, xmargin, ymargin));
615 }
616 
617 void HPGLPen(int num)
618 {
619  DEPRECATED("HPGLPen()","blHPGLPen()");
620  blHPGLPen(num);
621 }
622 
623 void HPGLMove(REAL x, REAL y)
624 {
625  DEPRECATED("HPGLMove()","blHPGLMove()");
626  blHPGLMove(x, y);
627 }
628 
629 void HPGLDraw(REAL x, REAL y)
630 {
631  DEPRECATED("HPGLDraw()","blHPGLDraw()");
632  blHPGLDraw(x, y);
633 }
634 
635 void HPGLSetDash(int style)
636 {
637  DEPRECATED("HPGLSetDash()","blHPGLSetDash()");
638  blHPGLSetDash(style);
639 }
640 
641 void HPGLFont(int font, REAL size)
642 {
643  DEPRECATED("HPGLFont()","blHPGLFont()");
644  blHPGLFont(font, size);
645 }
646 
647 void HPGLLText(REAL x, REAL y, char *string)
648 {
649  DEPRECATED("HPGLLText()","blHPGLLText()");
650  blHPGLLText(x, y, string);
651 }
652 
653 void HPGLCBText(REAL x, REAL y, REAL offset, char *text)
654 {
655  DEPRECATED("HPGLCBText()","blHPGLCBText()");
656  blHPGLCBText(x, y, offset, text);
657 }
658 
659 void HPGLROffText(REAL x, REAL y, REAL offset, char *text)
660 {
661  DEPRECATED("HPGLROffText()","blHPGLROffText()");
662  blHPGLROffText(x, y, offset, text);
663 }
664 
665 void HPGLLCText(REAL x, REAL y, char *text)
666 {
667  DEPRECATED("HPGLLCText()","blHPGLLCText()");
668  blHPGLLCText(x, y, text);
669 }
670 
671 void HPGLCTText(REAL x, REAL y, REAL offset, char *text)
672 {
673  DEPRECATED("HPGLCTText()","blHPGLCTText()");
674  blHPGLCTText(x, y, offset, text);
675 }
676 
677 void HPGLVText(REAL x, REAL y, REAL xoff, char *text, int TitleFont,
678  REAL TitleSize, char *label, int LabelFont, REAL LabelSize)
679 {
680  DEPRECATED("HPGLVText()","blHPGLVText()");
681  blHPGLVText(x, y, xoff, text, TitleFont, TitleSize, label, LabelFont,
682  LabelSize);
683 }
684 
685 void HPGLEnd(void)
686 {
687  DEPRECATED("HPGLEnd()","blHPGLEnd()");
688  blHPGLEnd();
689 }
690 
691 void HPGLShowText(char *text, BOOL orientation, int XBase, int YBase)
692 {
693  DEPRECATED("HPGLShowText()","blHPGLShowText()");
694  blHPGLShowText(text, orientation, XBase, YBase);
695 }
696 
697 
698 
699 /************************************************************************/
700 /* Renamed functions: matrix.h */
701 
702 void MatMult3_33(VEC3F vecin, REAL matin[3][3], VEC3F *vecout)
703 {
704  DEPRECATED("MatMult3_33()","blMatMult3_33()");
705  blMatMult3_33(vecin, matin, vecout);
706 }
707 
708 void MatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
709 {
710  DEPRECATED("MatMult33_33()","blMatMult33_33()");
711  blMatMult33_33(a, b, out);
712 }
713 
714 void invert33(REAL s[3][3], REAL ss[3][3])
715 {
716  DEPRECATED("invert33()","blInvert33()");
717  blInvert33(s, ss);
718 }
719 
720 void CreateRotMat(char direction, REAL angle, REAL matrix[3][3])
721 {
722  DEPRECATED("CreateRotMat()","blCreateRotMat()");
723  blCreateRotMat(direction, angle, matrix);
724 }
725 
726 REAL VecDist(REAL *a, REAL *b, int len)
727 {
728  DEPRECATED("VecDist()","blVecDist()");
729  return(blVecDist(a, b, len));
730 }
731 
732 
733 
734 /************************************************************************/
735 /* Renamed functions: parse.h */
736 
737 int parse(char *comline, int nkeys, KeyWd *keywords, REAL *REALparam,
738  char **strparam)
739 {
740  DEPRECATED("parse()","blParse()");
741  return(blParse(comline, nkeys, keywords, REALparam, strparam));
742 }
743 
744 int mparse(char *comline, int nkeys, MKeyWd *keywords, REAL *REALparam,
745  char **strparam, int *nparams)
746 {
747  DEPRECATED("mparse()","blMparse()");
748  return(blMparse(comline, nkeys, keywords, REALparam, strparam,
749  nparams));
750 }
751 
752 int match(char *comstring, char *string2, int *nletters)
753 {
754  DEPRECATED("match()","blMatch()");
755  return(blMatch(comstring, string2, nletters));
756 }
757 
758 int GetString(char *command, char *strparam)
759 {
760  DEPRECATED("GetString()","blGetString()");
761  return(blGetString(command, strparam));
762 }
763 
764 int GetParam(char *command, REAL *value, int *nletters)
765 {
766  DEPRECATED("GetParam()","blGetParam()");
767  return(blGetParam(command, value, nletters));
768 }
769 
770 
771 
772 /************************************************************************/
773 /* Renamed functions: plotting.h */
774 
775 BOOL AMInitPlot(char *filename, char *title, int dest, REAL OutXSize,
776  REAL OutYSize, REAL OutXOff, REAL OutYOff,
777  char *AltFont, REAL xmargin, REAL ymargin,
778  REAL DataXMin, REAL DataYMin, REAL DataXMax,
779  REAL DataYMax)
780 {
781  DEPRECATED("AMInitPlot()","blAMInitPlot()");
782  return(blAMInitPlot(filename, title, dest, OutXSize, OutYSize, OutXOff,
783  OutYOff, AltFont, xmargin, ymargin, DataXMin,
784  DataYMin, DataXMax,DataYMax));
785 }
786 
787 void AMSetPen(int dest, int pen)
788 {
789  DEPRECATED("AMSetPen()","blAMSetPen()");
790  blAMSetPen(dest, pen);
791 }
792 
793 void AMMove(int dest, REAL x, REAL y)
794 {
795  DEPRECATED("AMMove()","blAMMove()");
796  blAMMove(dest, x, y);
797 }
798 
799 void AMDraw(int dest, REAL x, REAL y)
800 {
801  DEPRECATED("AMDraw()","blAMDraw()");
802  blAMDraw(dest, x, y);
803 }
804 
805 void AMSetLineStyle(int dest, int style)
806 {
807  DEPRECATED("AMSetLineStyle()","blAMSetLineStyle()");
808  blAMSetLineStyle(dest, style);
809 }
810 
811 void AMEndLine(int dest)
812 {
813  DEPRECATED("AMEndLine()","blAMEndLine()");
814  blAMEndLine(dest);
815 }
816 
817 void AMSetFont(int dest, char *PSFontName, REAL FontSize)
818 {
819  DEPRECATED("AMSetFont()","blAMSetFont()");
820  blAMSetFont(dest, PSFontName, FontSize);
821 }
822 
823 void AMText(int dest, REAL x, REAL y, char *text)
824 {
825  DEPRECATED("AMText()","blAMText()");
826  blAMText(dest, x, y, text);
827 }
828 
829 void AMCBText(int dest, REAL x, REAL y, char *text)
830 {
831  DEPRECATED("AMCBText()","blAMCBText()");
832  blAMCBText(dest, x, y, text);
833 }
834 
835 void AMRText(int dest, REAL x, REAL y, REAL offset, char *text)
836 {
837  DEPRECATED("AMRText()","blAMRText()");
838  blAMRText(dest, x, y, offset, text);
839 }
840 
841 void AMLCText(int dest, REAL x, REAL y, char *text)
842 {
843  DEPRECATED("AMLCText()","blAMLCText()");
844  blAMLCText(dest, x, y, text);
845 }
846 
847 void AMCTText(int dest, REAL x, REAL y, REAL CTOffset, char *text)
848 {
849  DEPRECATED("AMCTText()","blAMCTText()");
850  blAMCTText(dest, x, y, CTOffset, text);
851 }
852 
853 void AMEndPlot(int dest)
854 {
855  DEPRECATED("AMEndPlot()","blAMEndPlot()");
856  blAMEndPlot(dest);
857 }
858 
859 int PS2HPGLFont(char *font);
860 char *SimplifyText(char *string)
861 {
862  DEPRECATED("SimplifyText()","blSimplifyText()");
863  return(blSimplifyText(string));
864 }
865 
866 
867 
868 /************************************************************************/
869 /* Renamed functions: ps.h */
870 
871 BOOL PSInit(char *FName, char *creator, char *AltFont)
872 {
873  DEPRECATED("PSInit()","blPSInit()");
874  return(blPSInit(FName, creator, AltFont));
875 }
876 
877 void PSThick(REAL thickness)
878 {
879  DEPRECATED("PSThick()","blPSThick()");
880  blPSThick(thickness);
881 }
882 
883 void PSMove(REAL X, REAL Y)
884 {
885  DEPRECATED("PSMove()","blPSMove()");
886  blPSMove(X, Y);
887 }
888 
889 void PSDraw(REAL X, REAL Y)
890 {
891  DEPRECATED("PSDraw()","blPSDraw()");
892  blPSDraw(X, Y);
893 }
894 
895 void PSSetDash(char *linepatt)
896 {
897  DEPRECATED("PSSetDash()","blPSSetDash()");
898  blPSSetDash(linepatt);
899 }
900 
901 void PSClearDash(void)
902 {
903  DEPRECATED("PSClearDash()","blPSClearDash()");
904  blPSClearDash();
905 }
906 
907 void PSStroke(void)
908 {
909  DEPRECATED("PSStroke()","blPSStroke()");
910  blPSStroke();
911 }
912 
913 void PSFont(char *fontname, REAL size)
914 {
915  DEPRECATED("PSFont()","blPSFont()");
916  blPSFont(fontname, size);
917 }
918 
919 void PSLText(REAL X, REAL Y, char *label)
920 {
921  DEPRECATED("PSLText()","blPSLText()");
922  blPSLText(X, Y, label);
923 }
924 
925 void PSCBText(REAL X, REAL Y, REAL Offset, char *label)
926 {
927  DEPRECATED("PSCBText()","blPSCBText()");
928  blPSCBText(X, Y, Offset, label);
929 }
930 
931 void PSROffText(REAL X, REAL Y, REAL offset, char *label)
932 {
933  DEPRECATED("PSROffText()","blPSROffText()");
934  blPSROffText(X, Y, offset, label);
935 }
936 
937 void PSLCText(REAL X, REAL Y, char *label)
938 {
939  DEPRECATED("PSLCText()","blPSLCText()");
940  blPSLCText(X, Y, label);
941 }
942 
943 void PSCTText(REAL X, REAL Y, REAL Offset, char *label)
944 {
945  DEPRECATED("PSCTText()","blPSCTText()");
946  blPSCTText(X, Y, Offset, label);
947 }
948 
949 void PSVText(REAL x, REAL y, REAL xoff, char *text, char *font, REAL size,
950  char *label, char *lfont, REAL lsize)
951 {
952  DEPRECATED("PSVText()","blPSVText()");
953  blPSVText(x, y, xoff, text, font, size, label, lfont, lsize);
954 }
955 
956 void PSShowText(char *text)
957 {
958  DEPRECATED("PSShowText()","blPSShowText()");
959  blPSShowText(text);
960 }
961 
962 void PSEnd(void)
963 {
964  DEPRECATED("PSEnd()","blPSEnd()");
965  blPSEnd();
966 }
967 
968 char *PSCorrectCase(char *font)
969 {
970  DEPRECATED("PSCorrectCase()","blPSCorrectCase()");
971  return(blPSCorrectCase(font));
972 }
973 
974 
975 
976 /************************************************************************/
977 /* Renamed functions: safemem.h */
978 
979 void *safemalloc(int nbytes)
980 {
981  DEPRECATED("safemalloc()","blSafemalloc()");
982  return(blSafemalloc(nbytes));
983 }
984 
985 BOOL safefree(void *ptr)
986 {
987  DEPRECATED("safefree()","blSafefree()");
988  return(blSafefree(ptr));
989 }
990 
991 void safeleaks(void)
992 {
993  DEPRECATED("safeleaks()","blSafeleaks()");
994  blSafeleaks();
995 }
996 
997 int eigen(REAL **M, REAL **Vectors, REAL *lambda, int n)
998 {
999  DEPRECATED("eigen()", "blEigen()");
1000  return(blEigen(M, Vectors, lambda, n));
1001 }
1002 
1003 BOOL CalculateBestFitLine(double **coordinates, int numberOfPoints,
1004  int numberOfDimensions, double *centroid,
1005  double *eigenVector)
1006 {
1007  DEPRECATED("CalculateBestFitLine()",
1008  "blCalculateBestFitLine()");
1009  return(blCalculateBestFitLine(coordinates, numberOfPoints,
1010  numberOfDimensions, centroid,
1011  eigenVector));
1012 }
1013 
1014 
1015 void FindCentroid(REAL **coordinates, int numberOfPoints,
1016  int numberOfDimensions, REAL *centroid)
1017 {
1018  DEPRECATED("FindCentroid()","blFindCentroid()");
1019  blFindCentroid(coordinates, numberOfPoints,
1020  numberOfDimensions, centroid);
1021 }
1022 
1023 
1024 BOOL CalculateCovarianceMatrix(REAL **x, int numX, int numY, REAL **cov)
1025 {
1026  DEPRECATED("CalculateCovarianceMatrix()",
1027  "blCalculateCovarianceMatrix()");
1028  return(blCalculateCovarianceMatrix(x, numX, numY, cov));
1029 }
1030 
1031 
1032 
1033 /************************************************************************/
1034 /** \endcond */
1035 /************************************************************************/
Include file for hpgl.
void blPSClearDash(void)
Definition: ps.c:382
BOOL blCalculateCovarianceMatrix(REAL **matrix, int numX, int numY, REAL **cov)
Definition: regression.c:254
void blAMLCText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:665
void blScreen(char *string)
Definition: WindIO.c:155
void blRePrompt(void)
Definition: WindIO.c:241
void blPSLCText(REAL X, REAL Y, char *label)
Definition: ps.c:583
void blPSEnd(void)
Definition: ps.c:840
BOOL blWrapString(char *in, char *out, int maxlen)
Definition: wrapprint.c:104
void blHPGLCTText(REAL x, REAL y, REAL offset, char *text)
Definition: hpgl.c:521
void blWord(char *string1, char *string2)
Definition: Word.c:121
short BOOL
Definition: SysDefs.h:64
Include file for PostScript routine.
void blPSSetDash(char *linepatt)
Definition: ps.c:366
char * blPSCorrectCase(char *font)
Definition: ps.c:861
void blStringToUpper(char *string1, char *string2)
void blHPGLPen(int num)
Definition: hpgl.c:214
char * blGetWordNC(char *buffer, char *word, int maxlen)
Definition: GetWord.c:300
void blVecAdd3(VEC3F *Out, VEC3F In1, VEC3F In2)
Definition: VecAdd3.c:95
Header for window/normal interface routines.
Include file for the command parser.
void blKillLine(FILE *fp)
Definition: KillLine.c:117
void blPadchar(char *string, int length, char ch)
Definition: padchar.c:119
int blCountchar(char *string, char ch)
Definition: countchar.c:115
Redirect calls to deprecated functions.
void blGetKybdString(char *string, int maxlen)
Definition: WindIO.c:263
char ** blArray2D(int size, int dim1, int dim2)
Definition: array2.c:130
void blHPGLEnd(void)
Definition: hpgl.c:651
void blPadterm(char *string, int length)
Definition: padterm.c:117
char * blKillLeadSpaces(char *string)
void blMatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
Definition: MatMult33_33.c:99
int blCloseOrPipe(FILE *fp)
Definition: openorpipe.c:172
char * blFtostr(char *str, int maxlen, REAL x, int precision)
Definition: ftostr.c:133
void blPSThick(REAL thickness)
Definition: ps.c:309
void blCrossProd3(VEC3F *Out, VEC3F In1, VEC3F In2)
Definition: CrossProd3.c:94
int blParse(char *comline, int nkeys, KeyWd *keywords, REAL *floatparam, char **strparam)
Definition: parse.c:202
void blPSFont(char *fontname, REAL size)
Definition: ps.c:418
void blMatMult3_33(VEC3F vecin, REAL matin[3][3], VEC3F *vecout)
Definition: MatMult3_33.c:100
char * blSimplifyText(char *string)
Definition: plotting.c:915
REAL blAngle(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk)
Definition: angle.c:150
void blIndexReal(REAL *arrin, int *indx, int n)
Definition: IndxReal.c:110
BOOL blTorToCoor(VEC3F ant1, VEC3F ant2, VEC3F ant3, REAL bond, REAL theta, REAL torsion, VEC3F *coords)
Definition: TorCoor.c:104
void blHPGLShowText(char *text, BOOL orientation, int XBase, int YBase)
Definition: hpgl.c:674
BOOL blReadBufferedFile(INBUFFER *bfp, char *string, int length)
Definition: BuffInp.c:161
void blHPGLCBText(REAL x, REAL y, REAL offset, char *text)
Definition: hpgl.c:400
void blFreeStringList(STRINGLIST *StringList)
REAL blDistPtLine(VEC3F Point, VEC3F End1, VEC3F End2)
Definition: DistPtLine.c:100
REAL x
Definition: cssr.h:66
void blPSLText(REAL X, REAL Y, char *label)
Definition: ps.c:457
void blAMRText(int dest, REAL x, REAL y, REAL offset, char *text)
Definition: plotting.c:614
void blFindCentroid(REAL **matrix, int numX, int numY, REAL *centroid)
Definition: regression.c:215
FILE * blOpenOrPipe(char *filename)
Definition: openorpipe.c:128
INBUFFER * blOpenBufferedFile(char *filename, int maxstr)
Definition: BuffInp.c:115
BOOL blOpenStdFiles(char *infile, char *outfile, FILE **in, FILE **out)
Definition: OpenStdFiles.c:126
REAL blPointLineDistance(REAL Px, REAL Py, REAL Pz, REAL P1x, REAL P1y, REAL P1z, REAL P2x, REAL P2y, REAL P2z, REAL *Rx, REAL *Ry, REAL *Rz, REAL *frac)
Definition: pldist.c:126
void blHPGLSetDash(int style)
Definition: hpgl.c:286
Include file for 2D/3D array functions.
void blPSVText(REAL x, REAL y, REAL xoff, char *text, char *font, REAL size, char *label, char *lfont, REAL lsize)
Definition: ps.c:688
void * blSafemalloc(int nbytes)
Definition: safemem.c:145
void blAMSetPen(int dest, int pen)
Definition: plotting.c:261
void blDoHelp(char *string, char *HelpFile)
Definition: help.c:317
REAL blPearson(REAL *x, REAL *y, int NItem)
Definition: pearson.c:99
FILE * blOpenFile(char *filename, char *envvar, char *mode, BOOL *noenv)
Definition: OpenFile.c:146
Include file for using plotting routines.
void blShowErrors(void *PrintRoutine(char *), BOOL Trace)
Definition: ErrStack.c:182
void blPSCBText(REAL X, REAL Y, REAL Offset, char *label)
Definition: ps.c:490
Definition: MathType.h:69
char *** blArray3D(int size, int dim1, int dim2, int dim3)
Definition: array3.c:127
void blSetExtn(char *File, char *Ext)
Definition: SetExtn.c:125
Definition: parse.h:92
int blEigen(REAL **matrix, REAL **eigenVectors, REAL *eigenValues, int matrixSize)
Definition: eigen.c:115
unsigned long ULONG
Definition: SysDefs.h:66
double REAL
Definition: MathType.h:67
void blCalcExtSD(REAL val, int action, REAL *Sx, REAL *SxSq, int *NValues, REAL *mean, REAL *SD)
Definition: CalcExtSD.c:137
REAL blPhi(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk, REAL xl, REAL yl, REAL zl)
Definition: phi.c:107
char * blStrcatalloc(char *instr, char *catstr)
Definition: strcatalloc.c:100
BOOL blAMInitPlot(char *filename, char *title, int dest, REAL OutXSize, REAL OutYSize, REAL OutXOff, REAL OutYOff, char *AltFont, REAL xmargin, REAL ymargin, REAL DataXMin, REAL DataYMin, REAL DataXMax, REAL DataYMax)
Definition: plotting.c:204
void blAMEndPlot(int dest)
Definition: plotting.c:764
REAL blVecDist(REAL *a, REAL *b, int len)
Definition: VecDist.c:98
void blPSShowText(char *text)
Definition: ps.c:739
BOOL blCheckExtn(char *string, char *ext)
Definition: CheckExtn.c:120
void blFreeArray2D(char **array, int dim1, int dim2)
Definition: array2.c:174
void blPagingOn(void)
Definition: WindIO.c:295
int blGetParam(char *command, REAL *value, int *nletters)
Definition: parse.c:412
int blMatch(char *comstring, char *string2, int *nletters)
Definition: parse.c:304
char * blQueryStrStr(char *string, char *substring)
Definition: QueryStrStr.c:113
void blAMEndLine(int dest)
Definition: plotting.c:432
void blStoreError(char *routine, char *error)
Definition: ErrStack.c:137
void blCalcSD(REAL val, int action, REAL *mean, REAL *SD)
Definition: CalcSD.c:124
Include file for angle functions.
void blHelp(char *string, char *HelpFile)
Definition: help.c:172
Include file for matrix operations.
void blVecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
Definition: VecSub3.c:94
int blMparse(char *comline, int nkeys, MKeyWd *keywords, REAL *floatparam, char **strparam, int *nparam)
Definition: parse.c:447
BOOL blWrapPrint(FILE *out, char *string)
Definition: wrapprint.c:204
Prototypes, etc. for maths utility routines.
void blPrompt(char *string)
Definition: WindIO.c:217
void blHPGLROffText(REAL x, REAL y, REAL offset, char *text)
Definition: hpgl.c:440
REAL blPearson1(REAL *x, REAL *y, int NItem)
Definition: pearson1.c:98
char * blGetWord(char *buffer, char *word, int maxsize)
Definition: GetWord.c:268
void blWordN(char *string1, char *string2, int MaxChar)
Definition: WordN.c:122
void blPSROffText(REAL X, REAL Y, REAL offset, char *label)
Definition: ps.c:548
Definition: parse.h:86
int blGetString(char *command, char *strparam)
Definition: parse.c:358
void blHPGLMove(REAL x, REAL y)
Definition: hpgl.c:235
int blUpstrcmp(char *word1, char *word2)
Definition: upstrcmp.c:116
void blGetfield(char *buffer, int start, int width, char *str)
Definition: getfield.c:99
void blGetFilestem(char *filename, char *stem)
Definition: GetFilestem.c:116
void blRightJustify(char *string)
Definition: justify.c:90
void blCreateRotMat(char direction, REAL angle, REAL matrix[3][3])
Definition: CreateRotMat.c:101
Include file for help functions.
void blPSDraw(REAL X, REAL Y)
Definition: ps.c:348
STRINGLIST * blStoreString(STRINGLIST *StringList, char *string)
Definition: StoreString.c:131
void blHPGLLText(REAL x, REAL y, char *string)
Definition: hpgl.c:368
ULONG blFactdiv(int n1, int n2)
Definition: factdiv.c:91
Header file for general purpose routines.
int blChindex(char *string, char ch)
Definition: chindex.c:122
void blAMDraw(int dest, REAL x, REAL y)
Definition: plotting.c:347
void blAMCBText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:563
REAL y
Definition: cssr.h:66
void blPSStroke(void)
Definition: ps.c:397
void blAMMove(int dest, REAL x, REAL y)
Definition: plotting.c:303
int blUpstrncmp(char *word1, char *word2, int ncomp)
Definition: upstrncmp.c:116
void blPSMove(REAL X, REAL Y)
Definition: ps.c:328
void blAMSetFont(int dest, char *PSFontName, REAL FontSize)
Definition: plotting.c:472
BOOL blPSInit(char *FName, char *creator, char *AltFont)
Definition: ps.c:189
ULONG blFactorial(int n)
Definition: factorial.c:89
BOOL blCalculateBestFitLine(REAL **coordinates, int numberOfPoints, int numberOfDimensions, REAL *centroid, REAL *eigenVector)
Definition: regression.c:116
void blHPGLVText(REAL x, REAL y, REAL xoff, char *text, int TitleFont, REAL TitleSize, char *label, int LabelFont, REAL LabelSize)
Definition: hpgl.c:577
void blHPGLLCText(REAL x, REAL y, char *text)
Definition: hpgl.c:482
void blPSCTText(REAL X, REAL Y, REAL Offset, char *label)
Definition: ps.c:620
void blSafeleaks(void)
Definition: safemem.c:322
void blStringToLower(char *string1, char *string2)
int blYorN(char deflt)
Definition: WindIO.c:388
ULONG blNComb(int n, int r)
Definition: NComb.c:91
BOOL blHPGLInit(char *filename, char *AltFont, REAL xmargin, REAL ymargin)
Definition: hpgl.c:170
void blWindowInteractive(BOOL mode)
Definition: WindIO.c:354
void blInvert33(REAL s[3][3], REAL ss[3][3])
Definition: invert33.c:102
ULONG blNPerm(int n, int r)
Definition: NPerm.c:90
void blHPGLDraw(REAL x, REAL y)
Definition: hpgl.c:257
BOOL blSafefree(void *ptr)
Definition: safemem.c:246
void blPagingOff(void)
Definition: WindIO.c:311
#define DEPRECATED(s, t)
Definition: deprecated.h:167
Header file for BuffInp.c.
void blHPGLFont(int font, REAL size)
Definition: hpgl.c:327
BOOL blProbeBufferedFile(INBUFFER *bfp, char *string, int length)
Definition: BuffInp.c:217
void blAMText(int dest, REAL x, REAL y, char *text)
Definition: plotting.c:515
Safe malloc()/free() routines which check for array overflow on free.
char * blFgetsany(FILE *fp)
Definition: fgetsany.c:143
void blWindowMode(BOOL mode)
Definition: WindIO.c:330
REAL blVecLen3(VEC3F Vec)
Definition: VecLen3.c:94
REAL blSimpleangle(REAL ang)
Definition: simpleangle.c:95
BOOL blInStringList(STRINGLIST *StringList, char *string)
Definition: InStringList.c:118
void blFreeArray3D(char ***array, int dim1, int dim2, int dim3)
Definition: array3.c:182
Build and print an error stack for program failure.
void blAMSetLineStyle(int dest, int style)
Definition: plotting.c:392
void blAMCTText(int dest, REAL x, REAL y, REAL CTOffset, char *text)
Definition: plotting.c:718
REAL blTrueAngle(REAL opp, REAL adj)
Definition: TrueAngle.c:107