w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

sh5.c
Go to the documentation of this file.
1 /*
2  * MS-DOS SHELL - Lexical Scanner
3  *
4  * MS-DOS SHELL - Copyright (c) 1990,4 Data Logic Limited and Charles Forsyth
5  *
6  * This code is based on (in part) the shell program written by Charles
7  * Forsyth and the subsequence modifications made by Simon J. Gerraty (for
8  * his Public Domain Korn Shell) and is subject to the following copyright
9  * restrictions:
10  *
11  * 1. Redistribution and use in source and binary forms are permitted
12  * provided that the above copyright notice is duplicated in the
13  * source form and the copyright notice in file sh6.c is displayed
14  * on entry to the program.
15  *
16  * 2. The sources (or parts thereof) or objects generated from the sources
17  * (or parts of sources) cannot be sold under any circumstances.
18  *
19  * $Header: /usr/users/istewart/shell/sh2.3/Release/RCS/sh5.c,v 2.13 1994/08/25 20:49:11 istewart Exp $
20  *
21  * $Log: sh5.c,v $
22  * Revision 2.13 1994/08/25 20:49:11 istewart
23  * MS Shell 2.3 Release
24  *
25  * Revision 2.12 1994/02/01 10:25:20 istewart
26  * Release 2.3 Beta 2, including first NT port
27  *
28  * Revision 2.11 1994/01/11 17:55:25 istewart
29  * Release 2.3 Beta 0 patches
30  *
31  * Revision 2.10 1993/11/09 10:39:49 istewart
32  * Beta 226 checking
33  *
34  * Revision 2.9 1993/08/25 16:03:57 istewart
35  * Beta 225 - see Notes file
36  *
37  * Revision 2.8 1993/07/02 10:21:35 istewart
38  * 224 Beta fixes
39  *
40  * Revision 2.7 1993/06/14 11:00:12 istewart
41  * More changes for 223 beta
42  *
43  * Revision 2.6 1993/06/02 09:52:35 istewart
44  * Beta 223 Updates - see Notes file
45  *
46  * Revision 2.5 1993/02/16 16:03:15 istewart
47  * Beta 2.22 Release
48  *
49  * Revision 2.4 1993/01/26 18:35:09 istewart
50  * Release 2.2 beta 0
51  *
52  * Revision 2.3 1992/11/06 10:03:44 istewart
53  * 214 Beta test updates
54  *
55  * Revision 2.2 1992/09/03 18:54:45 istewart
56  * Beta 213 Updates
57  *
58  * Revision 2.1 1992/07/10 10:52:48 istewart
59  * 211 Beta updates
60  *
61  * Revision 2.0 1992/04/13 17:39:09 Ian_Stewartson
62  * MS-Shell 2.0 Baseline release
63  *
64  *
65  */
66 
67 #include <sys/types.h>
68 #include <sys/stat.h>
69 #include <stdio.h>
70 #include <signal.h>
71 #include <errno.h>
72 #include <setjmp.h>
73 #include <stdlib.h>
74 #include <string.h>
75 #include <fcntl.h>
76 #include <limits.h>
77 #include <dirent.h>
78 #include <unistd.h>
79 #include "sh.h"
80 
81 /*
82  * lexical analysis and source input
83  */
84 
85 /* we set s->str to NULLSTR instead of "", so that ungetsc() works */
86 
87 static char nullstr [] = {0, 0};
88 #define NULLSTR (nullstr + 1)
89 
90 static bool expanding_alias = FALSE;
92 
93 /*
94  * Here document processing
95  */
96 
97 typedef struct here {
98  struct here *h_next; /* Link to next */
99  IO_Actions *h_iop; /* I/O options */
101 
102 /*
103  * The full list contains all the documents created during a parse. The
104  * active list, contains the non-processed ones.
105  */
106 
107  /* Full list header */
109  /* Active list Header */
111 
112 
113 static void F_LOCAL ReadHereDocument (IO_Actions *iop);
114 static void F_LOCAL GetHereDocuments (void);
115 
116 static char *LIT_Unclosed = "here document `%s' unclosed";
117 
118 /*
119  * Get next character functions
120  */
121 
122 static int F_LOCAL getsc_ (void);
123 
124 /* optimized getsc_() */
125 
126 #define getsc() ((*source->str != 0) ? (int)*(source->str++) : getsc_())
127 #define ungetsc() (source->str--)
128 
129 /*
130  * states while lexing word
131  */
132 
133 #define SBASE 0 /* outside any lexical constructs */
134 #define SSQUOTE 1 /* inside '' */
135 #define SDQUOTE 2 /* inside "" */
136 #define SBRACE 3 /* inside ${} */
137 #define SPAREN 4 /* inside $() */
138 #define SBQUOTE 5 /* inside `` */
139 #define SWORD 6 /* implicit quoting for substitute() */
140 #define SDPAREN 7 /* inside (( )), implicit quoting */
141 #define SDDPAREN 8 /* inside $(( )), implicit quoting */
142 #define SVSUBST 9 /* inside ${ }, following the V name */
143 #define SVARRAY 10 /* inside ${name [..].. } */
144 
145 /*
146  * Lexical analyzer
147  *
148  * tokens are not regular expressions, they are LL(1).
149  * for example, "${var:-${PWD}}", and "$(size $(whence ksh))".
150  * hence the state stack.
151  */
152 
153 int ScanNextToken (int LexicalControlFlags)
154 {
155  int c;
156  char states [64], *statep = states;
157  XString ws; /* expandable output word */
158  unsigned char *wp; /* output word pointer */
159  char *sp, *dp;
160  char istate;
161  char state;
162  int c2;
163  static int RecursiveAliasCount = 0;
164  static AliasList *RecursiveAlias[MAX_RECURSIVEALIASES];
165  int SDD_Count; /* Parathensis counter */
166  char LexSeparator;
167 
168  if (expanding_alias)
169  {
171 
172  while (RecursiveAliasCount-- > 0)
173  RecursiveAlias[RecursiveAliasCount]->AFlags &= ~~ALIAS_EXPANDING;
174 
175  RecursiveAliasCount = 0;
176  }
177 
178 /*
179  * Loop round again!
180  */
181 
182 Again:
183 
184  wp = (unsigned char *)XCreate (&ws, 64);
185 
186 /*
187  * Single word ?
188  */
189 
190  if (LexicalControlFlags & ONEWORD)
191  istate = SWORD;
192 
193 /*
194  * Maths expression?
195  */
196 
197  else if (LexicalControlFlags & MATHS_EXPRESSION)
198  {
199  istate = SDPAREN;
200  *(wp)++ = WORD_ODQUOTE;
201  }
202 
203 /*
204  * Normal scanning
205  */
206 
207  else
208  {
209  istate = SBASE;
210 
211 /* Ignore white space */
212 
213  while ((c = getsc ()) == CHAR_SPACE || c == CHAR_TAB)
214  continue;
215 
216 /* Comment? */
217 
218  if (c == CHAR_COMMENT)
219  {
220  while (((c = getsc ()) != 0) && (c != CHAR_NEW_LINE))
221  continue;
222  }
223 
224  ungetsc ();
225  }
226 
227 /*
228  * Which separator test to use?
229  */
230 
231  LexSeparator = (char)((LexicalControlFlags & TEST_EXPRESSION)
232  ? (C_IFS | C_SEMICOLON)
233  : C_LEX1);
234 
235 /*
236  * trailing ' ' in alias definition - Yes, allow more aliases
237  */
238 
240  {
242  LexicalControlFlags |= ALLOW_ALIAS;
243  }
244 
245 /*
246  * collect non-special or quoted characters to form word
247  */
248 
249  for (*statep = state = istate;
250  !(((c = getsc ()) == 0) ||
251  ((state == SBASE) && (CharTypes[c] & LexSeparator))); )
252  {
253  XCheck (&ws, &wp);
254 
255  switch (state)
256  {
257  case SBASE:
258 BasicCharacterProcessing:
259  switch (c)
260  {
261  case CHAR_META:
262  c = getsc ();
263 
264  if (c != CHAR_NEW_LINE)
265  {
266  *(wp)++ = WORD_QTCHAR;
267  *(wp)++ = (unsigned char)c;
268  }
269 
270  else if (wp == XStart (ws))
271  goto Again;
272 
273  break;
274 
275  case CHAR_SINGLE_QUOTE:
276  *++statep = state = SSQUOTE;
277  *(wp)++ = WORD_OQUOTE;
278  break;
279 
280  case CHAR_DOUBLE_QUOTE:
281  *++statep = state = SDQUOTE;
282  *(wp)++ = WORD_ODQUOTE;
283  break;
284 
285  default:
286  goto Subst;
287  }
288 
289  break;
290 
291 /* Non-special character processing */
292 
293 Subst:
294  switch (c)
295  {
296 
297 /*
298  * Escaped character
299  */
300  case CHAR_META:
301  switch (c = getsc ())
302  {
303  case CHAR_NEW_LINE:
304  break;
305 
306  case CHAR_DOUBLE_QUOTE:
307  case CHAR_META:
308  case CHAR_VARIABLE:
309  case CHAR_BACKQUOTE:
310  *(wp)++ = WORD_QTCHAR;
311  *(wp)++ = (unsigned char)c;
312  break;
313 
314  default:
315  XCheck (&ws, &wp);
316  *(wp)++ = WORD_CHAR;
317  *(wp)++ = CHAR_META;
318  *(wp)++ = WORD_CHAR;
319  *(wp)++ = (unsigned char)c;
320  break;
321  }
322 
323  break;
324 
325 /*
326  * Handler $(), $(()), ${}, $var, $num, $#, $*, $@
327  */
328 
329  case CHAR_VARIABLE:
330  c = getsc ();
331 
332 /* Check for $() & $(()) */
333 
334  if (c == CHAR_OPEN_PARATHENSIS)
335  {
336  if (getsc () == CHAR_OPEN_PARATHENSIS)
337  {
338  *++statep = state = SDDPAREN;
339  *(wp)++ = WORD_OMATHS;
340  SDD_Count = 0;
341  }
342 
343  else
344  {
345  ungetsc ();
346  *++statep = state = SPAREN;
347  *(wp)++ = WORD_COMSUB;
348  }
349  }
350 
351 /* Check for ${} */
352 
353  else if (c == CHAR_OPEN_BRACES)
354  {
355  *++statep = state = SVSUBST;
356  *(wp)++ = WORD_OSUBST;
357  c = getsc ();
358 
359  if (!IS_VariableFC (c) && !IS_VarNumeric (c))
360  ShellErrorMessage ("invalid variable name");
361 
362  do
363  {
364  XCheck (&ws, &wp);
365  *(wp)++ = (unsigned char)c;
366  c = getsc ();
367  } while (IS_VariableSC (c));
368 
369  *(wp)++ = 0;
370  ungetsc ();
371  }
372 
373 /* Check for $var */
374 
375  else if (IS_VariableFC (c))
376  {
377  *(wp)++ = WORD_OSUBST;
378 
379  do
380  {
381  XCheck (&ws, &wp);
382  *(wp)++ = (unsigned char)c;
383  c = getsc ();
384  } while (IS_VariableSC(c));
385 
386  *(wp)++ = 0;
387  *(wp)++ = WORD_CSUBST;
388  ungetsc ();
389 
390  }
391 
392 /* Check for $number, $*, $@, $#, $! $$ $- $? */
393 
394  else if (IS_VarNumeric (c))
395  {
396  XCheck (&ws, &wp);
397  *(wp)++ = WORD_OSUBST;
398  *(wp)++ = (unsigned char)c;
399  *(wp)++ = 0;
400  *(wp)++ = WORD_CSUBST;
401  }
402 
403 /* $??? - no mapping */
404 
405  else
406  {
407  *(wp)++ = WORD_CHAR;
408  *(wp)++ = CHAR_VARIABLE;
409  ungetsc ();
410  }
411 
412  break;
413 
414 /*
415  * Handler ` ` (old style $())
416  */
417  case CHAR_BACKQUOTE:
418  *++statep = state = SBQUOTE;
419  *(wp)++ = WORD_COMSUB;
420  break;
421 
422 /*
423  * Normal character
424  */
425 
426  default:
427  *(wp)++ = WORD_CHAR;
428  *(wp)++ = (unsigned char)c;
429  }
430 
431  break;
432 
433  case SSQUOTE: /* Inside '...' */
434  if (c == CHAR_SINGLE_QUOTE)
435  {
436  state = *--statep;
437  *(wp)++ = WORD_CQUOTE;
438  }
439 
440 /* Check for an escaped '. None of the UNIX versions seem to do this, so
441  * it may be wrong, so I've #if it out
442  */
443  else
444  {
445  *(wp)++ = WORD_QCHAR;
446  *(wp)++ = (unsigned char)c;
447  }
448 
449 #if 0
450  else if (c != CHAR_META)
451  {
452  *(wp)++ = WORD_QCHAR;
453  *(wp)++ = (unsigned char)c;
454  }
455 
456 /* Yes - insert a quoted ' */
457  else if ((c = getsc ()) == CHAR_SINGLE_QUOTE)
458  {
459  *(wp)++ = WORD_QTCHAR;
460  *(wp)++ = CHAR_SINGLE_QUOTE;
461  }
462 
463 /* No - unget the character and insert the meta */
464 
465  else
466  {
467  ungetsc ();
468  *(wp)++ = WORD_QCHAR;
469  *(wp)++ = CHAR_META;
470  }
471 #endif
472 
473  break;
474 
475  case SDQUOTE: /* Inside "..." */
476  if (c == CHAR_DOUBLE_QUOTE)
477  {
478  state = *--statep;
479  *(wp)++ = WORD_CDQUOTE;
480  }
481 
482  else
483  goto Subst;
484 
485  break;
486 
487  case SPAREN: /* Inside $(...) */
488  if (c == CHAR_OPEN_PARATHENSIS)
489  *++statep = state;
490 
491  else if (c == CHAR_CLOSE_PARATHENSIS)
492  state = *--statep;
493 
494  if (state == SPAREN)
495  *(wp)++ = (unsigned char)c;
496 
497  else
498  *(wp)++ = 0; /* end of WORD_COMSUB */
499 
500  break;
501 
502  case SBRACE: /* Inside ${...} */
503  if (c != CHAR_CLOSE_BRACES)
504  goto BasicCharacterProcessing;
505 
506  state = *--statep;
507  *(wp)++ = WORD_CSUBST;
508  break;
509 
510  case SVARRAY: /* Inside ${name [...].}*/
511  if (c != CHAR_CLOSE_BRACKETS)
512  goto BasicCharacterProcessing;
513 
514  state = *--statep;
515  *(wp)++ = WORD_CARRAY;
516  break;
517 
518 
519  case SVSUBST: /* Inside ${ }, following the */ /* Variable name */
520 
521 /* Set state to SBRACE to handle closing brace. */
522 
523  *statep = state = SBRACE;
524 
525 /* Simple Name
526  *
527  * Possibilities: ${name}
528  */
529 
530  if (c == CHAR_CLOSE_BRACES)
531  ungetsc ();
532 
533 /*
534  * Array Name. Reset to this state for closing ] post processing
535  *
536  * Possibilities: ${name[index].....}
537  */
538 
539  else if (c == CHAR_OPEN_BRACKETS)
540  {
541  *statep = SVSUBST;
542  *++statep = state = SVARRAY;
543  *(wp)++ = WORD_OARRAY;
544  }
545 
546 /* Korn pattern trimming
547  *
548  * Possibilities: ${name#string}
549  * ${name##string}
550  * ${name%string}
551  */
552 
553  else if ((c == CHAR_MATCH_START) || (c == CHAR_MATCH_END))
554  {
555  if (getsc () == c)
556  c |= CHAR_MAGIC;
557 
558  else
559  ungetsc ();
560 
561  *(wp)++ = (unsigned char)c;
562  }
563 
564 /* Subsitution
565  *
566  * Possibilities: ${name:?value}
567  * ${name:-value}
568  * ${name:=value}
569  * ${name:+value}
570  * ${name?value}
571  * ${name-value}
572  * ${name=value}
573  * ${name+value}
574  */
575 
576  else
577  {
578  c2 = (c == ':') ? CHAR_MAGIC : 0;
579 
580  if (c == ':')
581  c = getsc();
582 
583  if (!IS_VarOp (c))
584  {
585  CompilingError ();
586  ShellErrorMessage ("Unknown substitution operator '%c'",
587  c);
588  }
589 
590  *(wp)++ = (unsigned char)(c | c2);
591  }
592 
593  break;
594 
595  case SBQUOTE: /* Inside `...` */
596  if (c == CHAR_BACKQUOTE)
597  {
598  *(wp)++ = 0;
599  state = *--statep;
600  }
601 
602  else if (c == CHAR_META)
603  {
604  switch (c = getsc())
605  {
606  case CHAR_NEW_LINE:
607  break;
608 
609  case CHAR_META:
610  case CHAR_VARIABLE:
611  case CHAR_BACKQUOTE:
612  *(wp)++ = (unsigned char)c;
613  break;
614 
615  default:
616  *(wp)++ = CHAR_META;
617  *(wp)++ = (unsigned char)c;
618  break;
619  }
620  }
621 
622  else
623  *(wp)++ = (unsigned char)c;
624 
625  break;
626 
627  case SWORD: /* ONEWORD */
628  goto Subst;
629 
630  case SDPAREN: /* Include ((....)) */
631  if (c == CHAR_CLOSE_PARATHENSIS)
632  {
633  if (getsc () == CHAR_CLOSE_PARATHENSIS)
634  {
635  *(wp)++ = WORD_ODQUOTE;
636  c = 0;
637  goto Done;
638  }
639 
640  else
641  ungetsc ();
642  }
643 
644  goto Subst;
645 
646  case SDDPAREN: /* Include $((....)) */
647 
648 /* Check for sub-expressions */
649 
650  if (c == CHAR_OPEN_PARATHENSIS)
651  SDD_Count++;
652 
653 /* Check for end of sub-expression or $((..)) */
654 
655  else if (c == CHAR_CLOSE_PARATHENSIS)
656  {
657  if (SDD_Count)
658  SDD_Count--;
659 
660  else if (getsc () == CHAR_CLOSE_PARATHENSIS)
661  {
662  state = *--statep;
663  *(wp)++ = 0;
664  break;
665  }
666 
667  else
668  {
669  CompilingError ();
670  ShellErrorMessage ("maths sub-expression not closed");
671  }
672  }
673 
674 /* Normal character? */
675 
676  *(wp)++ = (char)c;
677  break;
678  }
679  }
680 
681 /* Finally, the end! */
682 
683 Done:
684  XCheck (&ws, &wp);
685 
686  if (state != istate)
687  {
688  CompilingError ();
689  ShellErrorMessage ("no closing quote");
690  }
691 
692  if (!(LexicalControlFlags & TEST_EXPRESSION) &&
693  ((c == CHAR_INPUT) || (c == CHAR_OUTPUT)))
694  {
695  unsigned char *cp = XStart (ws);
696 
697 /* Set c2 to the io unit value */
698 
699  if ((wp > cp) && (cp[0] == WORD_CHAR) && (IS_Numeric (cp[1])))
700  {
701  wp = cp; /* throw away word */
702  c2 = cp[1] - '0';
703  }
704 
705  else
706  c2 = (c == CHAR_OUTPUT) ? 1 : 0; /* 0 for <, 1 for > */
707  }
708 
709 /* no word, process LEX1 character */
710 
711  if ((wp == XStart (ws)) && (state == SBASE))
712  {
713  XFree (ws); /* free word */
714 
715  switch (c)
716  {
717  default:
718  return c;
719 
720  /* Check for double character thingys - ||, &&, ;; */
721 
722  case CHAR_PIPE:
723  case CHAR_ASYNC:
724  case CHAR_SEPARATOR:
725  if ((c2 = getsc ()) == c)
726  {
727  switch (c)
728  {
729  case CHAR_PIPE:
731  break;
732 
733  case CHAR_ASYNC:
735  break;
736 
737  case CHAR_SEPARATOR:
738  c = PARSE_BREAK;
739  break;
740 
741  default:
742  c = YYERRCODE;
743  break;
744  }
745  }
746 
747 /* Check for co-process |& */
748 
749  else if ((c == CHAR_PIPE) && (c2 == CHAR_ASYNC))
750  c = PARSE_COPROCESS;
751 
752  else
753  ungetsc ();
754 
755  return c;
756 
757  /* Re-direction */
758 
759  case CHAR_INPUT:
760  case CHAR_OUTPUT:
761  {
762  IO_Actions *iop;
763 
764  iop = (IO_Actions *) GetAllocatedSpace (sizeof (IO_Actions));
765  iop->io_unit = c2/*unit*/;
766 
767  /* Look at the next character */
768 
769  c2 = getsc ();
770 
771  /* Check for >>, << & <> */
772 
773  if ((c2 == CHAR_OUTPUT) || (c2 == CHAR_INPUT) )
774  {
775  iop->io_flag = (c != c2) ? IORDWR
776  : (c == CHAR_OUTPUT) ? IOCAT
777  : IOHERE;
778  c2 = getsc ();
779  }
780 
781  else
782  iop->io_flag = (c == CHAR_OUTPUT) ? IOWRITE : IOREAD;
783 
784  /* Check for <<- - strip tabs */
785 
786  if (iop->io_flag == IOHERE)
787  {
788  if (c2 == '-')
789  iop->io_flag |= IOSKIP;
790 
791  else
792  ungetsc ();
793  }
794 
795  /* Check for <& or >& */
796 
797  else if (c2 == '&')
798  iop->io_flag = IODUP;
799 
800  /* Check for >! */
801 
802  else if ((c2 == CHAR_PIPE) && (iop->io_flag == IOWRITE))
803  iop->io_flag |= IOCLOBBER;
804 
805  else
806  ungetsc ();
807 
808  yylval.iop = iop;
809  return PARSE_REDIR;
810  }
811 
812  case CHAR_NEW_LINE:
813  GetHereDocuments ();
814 
815  if (LexicalControlFlags & ALLOW_CONTINUATION)
816  goto Again;
817 
818  return c;
819 
821  c2 = getsc();
822 
823  if (c2 == CHAR_CLOSE_PARATHENSIS)
824  c = PARSE_MPAREN;
825 
826  else if (c2 == CHAR_OPEN_PARATHENSIS)
827  c = PARSE_MDPAREN;
828 
829  else
830  ungetsc();
831 
833  return c;
834  }
835  }
836 
837 /* Must be a word !!! */
838 
839  *(wp)++ = WORD_EOS; /* terminate word */
840  yylval.cp = XClose (&ws, wp);
841 
842  if (state == SWORD || state == SDPAREN) /* ONEWORD? */
843  return PARSE_WORD;
844 
845  ungetsc (); /* unget terminator */
846 
847 /* Make sure the CurrentLexIdentifier array stays '\0' padded */
848 
850 
851 /* copy word to unprefixed string CurrentLexIdentifier */
852 
853  for (sp = yylval.cp, dp = CurrentLexIdentifier;
854  (dp < CurrentLexIdentifier + IDENT) && ((c = *sp++) == WORD_CHAR); )
855  *dp++ = *sp++;
856 
857  if (c != WORD_EOS)
858  *CurrentLexIdentifier = 0; /* word is not unquoted */
859 
860 /* Are we allowing Keywords and Aliases ? */
861 
862  if (*CurrentLexIdentifier != 0 &&
863  (LexicalControlFlags & (ALLOW_KEYWORD | ALLOW_ALIAS)))
864  {
865  AliasList *p;
866  int yval;
867  Source *s;
868 
869 /* Check keyword */
870 
871  if ((LexicalControlFlags & ALLOW_KEYWORD) &&
873  {
875  return yval;
876  }
877 
878 /* Check Alias */
879 
880  if ((LexicalControlFlags & ALLOW_ALIAS) &&
882  (AliasList *)NULL) &&
883  (!(p->AFlags & ALIAS_EXPANDING)))
884  {
885  if (RecursiveAliasCount == MAX_RECURSIVEALIASES)
886  {
887  CompilingError ();
888  ShellErrorMessage ("excessive recusrsive aliasing");
889  }
890 
891  else
892  RecursiveAlias[RecursiveAliasCount++] = p;
893 
894  p->AFlags |= ALIAS_EXPANDING;
895 
896 /* check for recursive aliasing */
897 
898  for (s = source; s->type == SALIAS; s = s->next)
899  {
900  if (s->u.Calias == p)
901  return PARSE_WORD;
902  }
903 
904  ReleaseMemoryCell ((void *)yylval.cp);
905 
906 /* push alias expansion */
907 
908  s = pushs (SALIAS);
909  s->str = p->value;
910  s->u.Calias = p;
911  s->next = source;
912  source = s;
913  goto Again;
914  }
915  }
916 
917  return PARSE_WORD;
918 }
919 
920 /*
921  * read "<<word" text into temp file
922  */
923 
924 static void F_LOCAL ReadHereDocument (struct ioword *iop)
925 {
926  FILE *FP;
927  int tf;
928  int c;
929  char *EoFString;
930  char *cp;
931  char *Line;
932  size_t LineLen;
933 
934 /* Expand the terminator */
935 
936  LineLen = strlen (EoFString = ExpandAString (iop->io_name, 0));
937 
938 /* Save the tempoary file information */
939 
941 
942 /* Create the tempoary file */
943 
944  if (((tf = S_open (FALSE, iop->io_name, O_CMASK | O_NOINHERIT)) < 0)
945  || ((FP = MyReOpenFile (tf, sOpenWriteBinaryMode)) == (FILE *)NULL))
946  ShellErrorMessage ("Cannot create temporary file");
947 
948 /* Get some space */
949 
950  Line = GetAllocatedSpace (LineLen + 3);
951 
952 /* Read the file */
953 
954  while (TRUE)
955  {
956  cp = Line;
957 
958 /* Read the first n characters to check for terminator */
959 
960  while ((c = getsc ()) != CHAR_NEW_LINE)
961  {
962  if (c == 0)
963  ShellErrorMessage (LIT_Unclosed, EoFString);
964 
965  if (cp > Line + LineLen)
966  break;
967 
968 /* Ignore leading tabs if appropriate */
969 
970  if (!((iop->io_flag & IOSKIP) && (cp == Line) && (c == CHAR_TAB)))
971  *(cp++) = (char)c;
972  }
973 
974  *cp = 0;
975  ungetsc ();
976 
977 /* Check for end of string */
978 
979  if (strcmp (EoFString, Line) == 0 || c == 0)
980  break;
981 
982 /* Dump the line */
983 
984  fputs (Line, FP);
985 
986  while ((c = getsc ()) != CHAR_NEW_LINE)
987  {
988  if (c == 0)
989  ShellErrorMessage (LIT_Unclosed, EoFString);
990 
991  putc (c, FP);
992  }
993 
994  putc (c, FP);
995  }
996 
997  S_fclose (FP, TRUE);
998 }
999 
1000 /*
1001  * Handle scanning error
1002  */
1003 
1004 void CompilingError (void)
1005 {
1006  yynerrs++;
1007 
1008  while (source->type == SALIAS) /* pop aliases */
1009  source = source->next;
1010 
1011  source->str = NULLSTR; /* zap pending input */
1012 }
1013 
1014 /*
1015  * input for ScanNextToken with alias expansion
1016  */
1017 
1019 {
1020  Source *s = (Source *) GetAllocatedSpace (sizeof (Source));
1021 
1022  s->type = type;
1023  s->str = NULLSTR;
1024  return s;
1025 }
1026 
1027 
1028 /*
1029  * Get the next string from input source
1030  */
1031 
1032 static int F_LOCAL getsc_ (void)
1033 {
1034  Source *s = source;
1035  int c;
1036 
1037  while ((c = *s->str++) == 0)
1038  {
1039  s->str = NULL; /* return 0 for EOF by default */
1040 
1041  switch (s->type)
1042  {
1043  case SEOF:
1044  s->str = NULLSTR;
1045  return 0;
1046 
1047  case STTY:
1048  s->line++;
1049  s->str = ConsoleLineBuffer;
1050  s->str[c = GetConsoleInput ()] = 0;
1051 
1052  FlushStreams ();
1053 
1054 /* EOF? */
1055  if (c == 0)
1056  {
1057  s->str = NULL;
1058  s->line--;
1059  }
1060 
1061 /* Ignore pre-white space */
1062 
1063  else
1064  {
1065  c = 0;
1066 
1067  while (s->str[c] && IS_IFS ((int)s->str[c]))
1068  c++;
1069 
1070 /* Blank line?? */
1071 
1072  if (!s->str[c])
1073  {
1074  s->str = &s->str[c - 1];
1075  s->line--;
1076  }
1077 
1078  else
1079  s->str = &s->str[c];
1080  }
1081 
1082  break;
1083 
1084  case SFILE:
1085  s->line++;
1086  s->str = fgets (e.line, LINE_MAX, s->u.file);
1087 
1088  DPRINT (1, ("getsc_: File line = <%s>", s->str));
1089 
1090  if (s->str == NULL)
1091  {
1092  if (s->u.file != stdin)
1093  S_fclose (s->u.file, TRUE);
1094  }
1095 
1096  break;
1097 
1098  case SWSTR:
1099  break;
1100 
1101  case SSTRING:
1102  s->str = LIT_NewLine;
1103  s->type = SEOF;
1104  break;
1105 
1106  case SWORDS:
1107  s->str = *s->u.strv++;
1108  s->type = SWORDSEP;
1109  break;
1110 
1111  case SWORDSEP:
1112  if (*s->u.strv == NULL)
1113  {
1114  s->str = LIT_NewLine;
1115  s->type = SEOF;
1116  }
1117 
1118  else
1119  {
1120  s->str = " ";
1121  s->type = SWORDS;
1122  }
1123 
1124  break;
1125 
1126  case SALIAS:
1127  s->str = s->u.Calias->value;
1128 
1129 /*
1130  * If there is a trailing ' ', allow multiple aliases
1131  */
1132 
1133  if ((*(s->str) != 0) &&
1134  (((c = s->str[strlen (s->str) - 1]) == CHAR_SPACE) ||
1135  (c == CHAR_TAB)))
1137 
1138  source = s = s->next;
1140  continue;
1141  }
1142 
1143  if (s->str == (char *)NULL)
1144  {
1145  s->type = SEOF;
1146  s->str = NULLSTR;
1147  return 0;
1148  }
1149 
1150  if (s->echo)
1151  foputs (s->str);
1152  }
1153 
1154  return c;
1155 }
1156 
1157 /*
1158  * Close all file handlers
1159  */
1160 
1161 void CloseAllHandlers (void)
1162 {
1163  int u;
1164 
1165 /*
1166  * Close any stream IO blocks
1167  */
1168 
1169  for (u = 0; u < MaxNumberofFDs; u++)
1170  {
1171 #if defined (__TURBOC__)
1172  if ((_streams[u].flags & _F_RDWR) && (_streams[u].fd >= NUFILE))
1173  fclose (&_streams[u]);
1174 #elif defined (__WATCOMC__)
1175  if ((u < _NFILES) && (__iob[u]._flag & (_READ | _WRITE)) &&
1176  (__iob[u]._handle >= NUFILE))
1177  fclose (&__iob[u]);
1178 #elif (OS_TYPE == OS_UNIX)
1179 # ifdef __STDC__
1180  if ((__iob[u]._flag & (_IOREAD | _IORW | _IOWRT)) &&
1181  (__iob[u]._file >= NUFILE))
1182  fclose (&__iob[u]);
1183 # else
1184  if ((_iob[u]._flag & (_IOREAD | _IORW | _IOWRT)) &&
1185  (_iob[u]._file >= NUFILE))
1186  fclose (&_iob[u]);
1187 # endif
1188 #elif defined (__EMX__)
1189  if ((_streamv[u].flags & (_IOREAD | _IORW | _IOWRT)) &&
1190  (_streamv[u].handle >= NUFILE))
1191  fclose (&_streamv[u]);
1192 #elif !defined (__OS2__)
1193 #if _MSC_VER < 1600
1194  if ((_iob[u]._flag & (_IOREAD | _IORW | _IOWRT)) &&
1195  (_iob[u]._file >= NUFILE))
1196  fclose (&_iob[u]);
1197 #else
1198  if ((__iob_func()[u]._flag & (_IOREAD | _IORW | _IOWRT)) &&
1199  (__iob_func()[u]._file >= NUFILE))
1200  fclose (&__iob_func()[u]);
1201 #endif
1202 #endif
1203  }
1204 
1205 /* Close any open files */
1206 
1207  for (u = NUFILE; u < MaxNumberofFDs;)
1208  S_close (u++, TRUE);
1209 }
1210 
1211 
1212 /*
1213  * remap fd into Shell's fd space
1214  */
1215 
1216 int ReMapIOHandler (int fd)
1217 {
1218  int i;
1219  int n_io = 0;
1220  int map [NUFILE];
1221  int o_fd = fd;
1222 
1223  if (fd < FDBASE)
1224  {
1225  do
1226  {
1227  map[n_io++] = fd;
1228  fd = dup (fd);
1229 
1230  } while ((fd >= 0) && (fd < FDBASE));
1231 
1232  for (i = 0; i < n_io; i++)
1233  close (map[i]);
1234 
1235 /* Check we can map it */
1236 
1237  if (fd >= (32 + FDBASE))
1238  {
1239  close (fd);
1240  fd = -1;
1241  }
1242 
1243  else
1244  {
1245  S_Remap (o_fd, fd);
1246  S_close (o_fd, TRUE);
1247  }
1248 
1249  if (fd < 0)
1250  {
1251 #ifdef DEBUG
1252  struct _stat st;
1253 
1254  fprintf (stderr, "\nOld Fd=%d, New=%d, Map=0x%.8lx\n", o_fd, fd,
1255  e.IOMap);
1256 
1257  feputs ("Ch. Device Inode Mode Links RDev Size\n");
1258 
1259  for (i = 0; i < MaxNumberofFDs; i++)
1260  {
1261  if (fstat (i, &st) < 0)
1262  fprintf (stderr, "%2d: cannot get status (%s)\n", i,
1263  strerror (errno));
1264 
1265  else
1266  fprintf (stderr, "%2d: 0x%.4x %5u %6o %5d 0x%.4x %ld\n", i,
1267  st.st_dev, st.st_ino, st.st_mode, st.st_nlink,
1268  st.st_rdev, st.st_size);
1269  }
1270 #endif
1271  ShellErrorMessage ("too many files open");
1272  }
1273  }
1274 
1275  return fd;
1276 }
1277 
1278 
1279 /*
1280  * Generate a temporary filename
1281  */
1282 
1284 {
1285  static char tmpfile[FFNAME_MAX];
1286  char *tmpdir; /* Points to directory prefix of pipe */
1287  static int temp_count = 0;
1288  char *sep = DirectorySeparator;
1289 
1290 /* Find out where we should put temporary files */
1291 
1292  if (((tmpdir = GetVariableAsString ("TMP", FALSE)) == null) &&
1293  ((tmpdir = GetVariableAsString (HomeVariableName, FALSE)) == null) &&
1294  ((tmpdir = GetVariableAsString ("TMPDIR", FALSE)) == null))
1296 
1297  if (strchr ("/\\", tmpdir[strlen (tmpdir) - 1]) != (char *)NULL)
1298  sep = null;
1299 
1300 /* Get a unique temporary file name */
1301 
1302  while (1)
1303  {
1304  sprintf (tmpfile, "%s%ssht%.5u.tmp", tmpdir, sep, temp_count++);
1305 
1306  if (!S_access (tmpfile, F_OK))
1307  break;
1308  }
1309 
1310  return tmpfile;
1311 }
1312 
1313 /*
1314  * XString functions
1315  */
1316 
1317 /*
1318  * Check an expandable string for overflow
1319  */
1320 
1321 void XCheck (XString *xs, unsigned char **xp)
1322 {
1323  if (*xp >= xs->SEnd)
1324  {
1325  int OldOffset = *xp - xs->SStart;
1326 
1327  xs->SStart = ReAllocateSpace (xs->SStart, (xs->SLength *= 2) + 8);
1328  xs->SEnd = xs->SStart + xs->SLength;
1329  *xp = xs->SStart + OldOffset;
1330  }
1331 }
1332 
1333 /*
1334  * Close an Expanded String
1335  */
1336 
1337 char *XClose (XString *xs, unsigned char *End)
1338 {
1339  size_t len = End - xs->SStart;
1340  char *s = memcpy (GetAllocatedSpace (len), xs->SStart, len);
1341 
1342  ReleaseMemoryCell (xs->SStart);
1343  return s;
1344 }
1345 
1346 /*
1347  * Create an Expanded String
1348  */
1349 
1350 char *XCreate (XString *xs, size_t len)
1351 {
1352  xs->SLength = len;
1353  xs->SStart = GetAllocatedSpace (len + 8);
1354  xs->SEnd = xs->SStart + len;
1355  return (char *)xs->SStart;
1356 }
1357 
1358 /*
1359  * here documents
1360  *
1361  * Save a here file's IOP for later processing (ie delete of the temp file
1362  * name)
1363  */
1364 
1366 {
1367  Here_D *h, *lh;
1368 
1369  if ((h = (Here_D *) GetAllocatedSpace (sizeof(Here_D))) == (Here_D *)NULL)
1370  return;
1371 
1372  h->h_iop = iop;
1373  h->h_next = (Here_D *)NULL;
1374 
1375  if (HereListHead == (Here_D *)NULL)
1376  HereListHead = h;
1377 
1378  else
1379  {
1380  for (lh = HereListHead; lh != (Here_D *)NULL; lh = lh->h_next)
1381  {
1382  if (lh->h_next == (Here_D *)NULL)
1383  {
1384  lh->h_next = h;
1385  break;
1386  }
1387  }
1388  }
1389 }
1390 
1391 /*
1392  * Read all the active here documents
1393  */
1394 
1395 static void F_LOCAL GetHereDocuments (void)
1396 {
1397  Here_D *h, *hp;
1398 
1399 /* Scan here files first leaving HereListHead list in place */
1400 
1401  for (hp = h = HereListHead; h != (Here_D *)NULL; hp = h, h = h->h_next)
1402  ReadHereDocument (h->h_iop);
1403 
1404 /* Make HereListHead list active - keep list intact for scraphere */
1405 
1406  if (hp != (Here_D *)NULL)
1407  {
1408  hp->h_next = ActiveListHead;
1410  HereListHead = (Here_D *)NULL;
1411  }
1412 }
1413 
1414 /*
1415  * Zap all the here documents, unless they are currently in use by a
1416  * function.
1417  */
1418 
1419 void ScrapHereList (void)
1420 {
1421  Here_D *h;
1422 
1423  for (h = HereListHead; h != (Here_D *)NULL; h = h->h_next)
1424  {
1425  if ((h->h_iop != (IO_Actions *)NULL) &&
1426  (h->h_iop->io_name != (char *)NULL) &&
1427  (!(h->h_iop->io_flag & IOFUNCTION)))
1428  unlink (h->h_iop->io_name);
1429  }
1430 
1431  HereListHead = (Here_D *)NULL;
1432 }
1433 
1434 /*
1435  * unlink here temp files before a ReleaseMemoryArea (area)
1436  */
1437 
1438 void FreeAllHereDocuments (int area)
1439 {
1441  Here_D *previous = (Here_D *)NULL;
1442 
1443  while (current != (Here_D *)NULL)
1444  {
1445  if (GetMemoryAreaNumber ((void *)current) >= area)
1446  {
1447  if ((current->h_iop->io_name != (char *)NULL) &&
1448  (!(current->h_iop->io_flag & IOFUNCTION)))
1449  unlink (current->h_iop->io_name);
1450 
1451  if (ActiveListHead == current)
1452  ActiveListHead = current->h_next;
1453 
1454  else
1455  previous->h_next = current->h_next;
1456  }
1457 
1458  previous = current;
1459  current = current->h_next;
1460  }
1461 }
1462 
1463 /*
1464  * Open here document temp file.
1465  * If unquoted here, expand here temp file into second temp file.
1466  */
1467 
1468 int OpenHereFile (char *hname, bool sub)
1469 {
1470  FILE *FP;
1471  char *cp;
1472  Source *s;
1473  char *tname = (char *)NULL;
1474  int Local_depth;
1475  jmp_buf ReturnPoint;
1476 
1477 /* Check input file */
1478 
1479  if (hname == (char *)NULL)
1480  return -1;
1481 
1482 /*
1483  * If processing for $, ` and ' is required, do it
1484  */
1485 
1486  if (sub)
1487  {
1489  Local_depth = Execute_stack_depth++;
1490 
1491  if (SetErrorPoint (ReturnPoint) == 0)
1492  {
1493  if ((FP = FOpenFile (hname, sOpenReadMode)) == (FILE *)NULL)
1494  {
1495  Execute_stack_depth = Local_depth;
1496  PrintErrorMessage ("Here Document (%s) lost", hname);
1497  return -1;
1498  }
1499 
1500 /* set up ScanNextToken input from here file */
1501 
1502  s = pushs (SFILE);
1503  s->u.file = FP;
1504  source = s;
1505 
1506  if (ScanNextToken (ONEWORD) != PARSE_WORD)
1507  PrintErrorMessage ("Here Document error");
1508 
1509  cp = ExpandAString (yylval.cp, 0);
1510 
1511  /* write expanded input to another temp file */
1512 
1514 
1515  if ((FP = FOpenFile (tname, sOpenAppendMode)) == (FILE *)NULL)
1516  {
1519  }
1520 
1521  fputs (cp, FP);
1522  CloseFile (FP);
1523 
1525  Execute_stack_depth = Local_depth;
1526 
1527  return S_open (TRUE, tname, O_RDONLY);
1528  }
1529 
1530 /* Error - terminate */
1531 
1532  else
1533  {
1535  Execute_stack_depth = Local_depth;
1536  CloseFile (FP);
1537 
1538  if (tname != (char *)NULL)
1539  unlink (tname);
1540 
1541  return -1;
1542  }
1543  }
1544 
1545 /* Otherwise, just open the document */
1546 
1547  return S_open (FALSE, hname, O_RDONLY);
1548 }
return _Result< 0 ? -1 :_Result;} #line 1069 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsnwprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1091 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, va_list _ArgList) { return _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1108 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format, va_list _Args);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format, va_list _ArgList) { return _vsnwprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1133 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_c_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1163 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_c(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1179 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1196 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl __vswprintf_l(wchar_t *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vswprintf_l(_Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1212 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf(wchar_t *const _Buffer, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_l(_Buffer,(size_t) -1, _Format,((void *) 0), _ArgList);} #line 1227 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswprintf(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1243 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1264 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1281 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1283 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_p_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_p((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1312 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_p(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1328 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_l(wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1347 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf(wchar_t const *const _Format, va_list _ArgList) { return _vscwprintf_l(_Format,((void *) 0), _ArgList);} #line 1361 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_p_l(wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_p((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1380 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_p(wchar_t const *const _Format, va_list _ArgList) { return _vscwprintf_p_l(_Format,((void *) 0), _ArgList);} #line 1394 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl __swprintf_l(wchar_t *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__vswprintf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1414 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1435 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf(wchar_t *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__vswprintf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1454 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swprintf(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1474 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "__swprintf_l_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl __swprintf_l(wchar_t *_Buffer, wchar_t const *_Format, _locale_t _Locale,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vswprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl __vswprintf_l(wchar_t *_Buffer, wchar_t const *_Format, _locale_t _Locale, va_list _Args);__declspec(deprecated("This function or variable may be unsafe. Consider using " "swprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _swprintf(wchar_t *_Buffer, wchar_t const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "vswprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vswprintf(wchar_t *_Buffer, wchar_t const *_Format, va_list _Args);__inline int __cdecl _swprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1511 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1532 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1534 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_p_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1562 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_p(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1582 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_c_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1603 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_c(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1623 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1646 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1668 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1690 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1711 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_l(wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1737 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf(wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1755 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_p_l(wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_p_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1774 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_p(wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_p_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1792 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #pragma warning(push) #pragma warning(disable:4141 6054) #pragma warning(pop) #line 1856 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" int __cdecl __stdio_common_vswscanf(unsigned __int64 _Options, wchar_t const *_Buffer, size_t _BufferCount, wchar_t const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vswscanf_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options()), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1897 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswscanf(wchar_t const *_Buffer, wchar_t const *_Format, va_list _ArgList) { return _vswscanf_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 1912 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswscanf_s_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1930 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswscanf_s(wchar_t const *const _Buffer, wchar_t const *const _Format, va_list _ArgList) { return _vswscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 1947 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1949 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwscanf_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1976 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwscanf_s_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1995 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_swscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _swscanf_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2015 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "swscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl swscanf(wchar_t const *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2034 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swscanf_s_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_s_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2054 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swscanf_s(wchar_t const *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2075 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 2077 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwscanf_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2100 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwscanf(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2122 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwscanf_s_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2143 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwscanf_s(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2163 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) typedef __int64 fpos_t;errno_t __cdecl _get_stream_buffer_pointers(FILE *_Stream, char ***_Base, char ***_Pointer, int **_Count);errno_t __cdecl clearerr_s(FILE *_Stream);errno_t __cdecl fopen_s(FILE **_Stream, char const *_FileName, char const *_Mode);size_t __cdecl fread_s(void *_Buffer, size_t _BufferSize, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);errno_t __cdecl freopen_s(FILE **_Stream, char const *_FileName, char const *_Mode, FILE *_OldStream);char *__cdecl gets_s(char *_Buffer, rsize_t _Size);errno_t __cdecl tmpfile_s(FILE **_Stream);errno_t __cdecl tmpnam_s(char *_Buffer, rsize_t _Size);#line 145 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" void __cdecl clearerr(FILE *_Stream);int __cdecl fclose(FILE *_Stream);int __cdecl _fcloseall(void);FILE *__cdecl _fdopen(int _FileHandle, char const *_Mode);int __cdecl feof(FILE *_Stream);int __cdecl ferror(FILE *_Stream);int __cdecl fflush(FILE *_Stream);int __cdecl fgetc(FILE *_Stream);int __cdecl _fgetchar(void);int __cdecl fgetpos(FILE *_Stream, fpos_t *_Position);char *__cdecl fgets(char *_Buffer, int _MaxCount, FILE *_Stream);int __cdecl _fileno(FILE *_Stream);int __cdecl _flushall(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "fopen_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl fopen(char const *_FileName, char const *_Mode);int __cdecl fputc(int _Character, FILE *_Stream);int __cdecl _fputchar(int _Character);int __cdecl fputs(char const *_Buffer, FILE *_Stream);size_t __cdecl fread(void *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);__declspec(deprecated("This function or variable may be unsafe. Consider using " "freopen_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl freopen(char const *_FileName, char const *_Mode, FILE *_Stream);FILE *__cdecl _fsopen(char const *_FileName, char const *_Mode, int _ShFlag);int __cdecl fsetpos(FILE *_Stream, fpos_t const *_Position);int __cdecl fseek(FILE *_Stream, long _Offset, int _Origin);int __cdecl _fseeki64(FILE *_Stream, __int64 _Offset, int _Origin);long __cdecl ftell(FILE *_Stream);__int64 __cdecl _ftelli64(FILE *_Stream);size_t __cdecl fwrite(void const *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl getc(FILE *_Stream);int __cdecl getchar(void);int __cdecl _getmaxstdio(void);int __cdecl _getw(FILE *_Stream);void __cdecl perror(char const *_ErrorMessage);int __cdecl _pclose(FILE *_Stream);FILE *__cdecl _popen(char const *_Command, char const *_Mode);#line 344 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl putc(int _Character, FILE *_Stream);int __cdecl putchar(int _Character);int __cdecl puts(char const *_Buffer);int __cdecl _putw(int _Word, FILE *_Stream);int __cdecl remove(char const *_FileName);int __cdecl rename(char const *_OldFileName, char const *_NewFileName);int __cdecl _unlink(char const *_FileName);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_unlink" ". See online help for details.")) int __cdecl unlink(char const *_FileName);#line 391 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" void __cdecl rewind(FILE *_Stream);int __cdecl _rmtmp(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "setvbuf" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl setbuf(FILE *_Stream, char *_Buffer);int __cdecl _setmaxstdio(int _Maximum);int __cdecl setvbuf(FILE *_Stream, char *_Buffer, int _Mode, size_t _Size);__declspec(allocator) char *__cdecl _tempnam(char const *_DirectoryName, char const *_FilePrefix);__declspec(deprecated("This function or variable may be unsafe. Consider using " "tmpfile_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl tmpfile(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "tmpnam_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl tmpnam(char *_Buffer);int __cdecl ungetc(int _Character, FILE *_Stream);void __cdecl _lock_file(FILE *_Stream);void __cdecl _unlock_file(FILE *_Stream);int __cdecl _fclose_nolock(FILE *_Stream);int __cdecl _fflush_nolock(FILE *_Stream);int __cdecl _fgetc_nolock(FILE *_Stream);int __cdecl _fputc_nolock(int _Character, FILE *_Stream);size_t __cdecl _fread_nolock(void *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);size_t __cdecl _fread_nolock_s(void *_Buffer, size_t _BufferSize, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl _fseek_nolock(FILE *_Stream, long _Offset, int _Origin);int __cdecl _fseeki64_nolock(FILE *_Stream, __int64 _Offset, int _Origin);long __cdecl _ftell_nolock(FILE *_Stream);__int64 __cdecl _ftelli64_nolock(FILE *_Stream);size_t __cdecl _fwrite_nolock(void const *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl _getc_nolock(FILE *_Stream);int __cdecl _putc_nolock(int _Character, FILE *_Stream);int __cdecl _ungetc_nolock(int _Character, FILE *_Stream);int *__cdecl __p__commode(void);#line 596 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vfprintf(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vfprintf_s(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vfprintf_p(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vfprintf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 648 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfprintf(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_l(_Stream, _Format,((void *) 0), _ArgList);} #line 662 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf_s((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 677 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfprintf_s(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_s_l(_Stream, _Format,((void *) 0), _ArgList);} #line 693 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 695 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_p_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf_p((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 710 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_p(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_p_l(_Stream, _Format,((void *) 0), _ArgList);} #line 724 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 738 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vprintf(char const *const _Format, va_list _ArgList) { return _vfprintf_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 751 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_s_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_s_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 765 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vprintf_s(char const *const _Format, va_list _ArgList) { return _vfprintf_s_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 780 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 782 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_p_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_p_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 796 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_p(char const *const _Format, va_list _ArgList) { return _vfprintf_p_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 809 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 828 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fprintf(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 846 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl _set_printf_count_output(int _Value);int __cdecl _get_printf_count_output(void);__inline int __cdecl _fprintf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 871 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fprintf_s(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 891 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 893 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_p_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 912 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_p(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 930 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 948 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl printf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 965 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_s_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 983 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl printf_s(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1002 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1004 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_p_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1022 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_p(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1039 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vfscanf(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _Arglist);__inline int __cdecl _vfscanf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfscanf((*__local_stdio_scanf_options()), _Stream, _Format, _Locale, _ArgList);} #line 1070 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfscanf(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfscanf_l(_Stream, _Format,((void *) 0), _ArgList);} #line 1084 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfscanf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Stream, _Format, _Locale, _ArgList);} #line 1101 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfscanf_s(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfscanf_s_l(_Stream, _Format,((void *) 0), _ArgList);} #line 1118 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1120 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscanf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfscanf_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);} #line 1134 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vscanf(char const *const _Format, va_list _ArgList) { return _vfscanf_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);} #line 1147 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscanf_s_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfscanf_s_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);} #line 1161 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vscanf_s(char const *const _Format, va_list _ArgList) { return _vfscanf_s_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);} #line 1176 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1178 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _fscanf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1197 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "fscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl fscanf(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1215 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fscanf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1234 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fscanf_s(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1254 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1256 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_scanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _scanf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1274 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "scanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl scanf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1291 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scanf_s_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1309 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl scanf_s(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1328 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1330 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vsprintf(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsprintf_s(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsnprintf_s(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, size_t _MaxCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsprintf_p(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnprintf_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1399 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1415 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsnprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 1), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);return _Result< 0 ? -1 :_Result;} #line 1446 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsprintf_l(char *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vsnprintf_l(_Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1462 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "vsprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl vsprintf(char *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsnprintf_l(_Buffer,(size_t) -1, _Format,((void *) 0), _ArgList);} #line 1477 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_s_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1498 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsprintf_s(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1516 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1526 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_p_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_p((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1547 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_p(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1563 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_s_l(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsnprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1585 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1602 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsnprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1630 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1641 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1659 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf(char const *const _Format, va_list _ArgList) { return _vscprintf_l(_Format,((void *) 0), _ArgList);} #line 1672 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_p_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_p((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1690 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_p(char const *const _Format, va_list _ArgList) { return _vscprintf_p_l(_Format,((void *) 0), _ArgList);} #line 1703 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_c_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1723 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_c(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1739 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_sprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _sprintf_l(char *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1761 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sprintf(char *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1782 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "sprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl sprintf(char *_Buffer, char const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "vsprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl vsprintf(char *_Buffer, char const *_Format, va_list _Args);__inline int __cdecl _sprintf_s_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1810 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sprintf_s(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1832 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1834 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sprintf_p_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1862 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sprintf_p(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1882 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snprintf_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1905 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl snprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1936 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1956 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl _snprintf(char *_Buffer, size_t _BufferCount, char const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl _vsnprintf(char *_Buffer, size_t _BufferCount, char const *_Format, va_list _Args);__inline int __cdecl _snprintf_c_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1986 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_c(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2006 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_s_l(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2028 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2049 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2075 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2092 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_p_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_p_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2110 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_p(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_p(_Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2127 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vsscanf(unsigned __int64 _Options, char const *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vsscanf_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 2158 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsscanf(char const *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsscanf_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 2172 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsscanf_s_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 2189 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(push) #pragma warning(disable:6530) __inline int __cdecl vsscanf_s(char const *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 2208 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(pop) #line 2219 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_sscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _sscanf_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2238 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "sscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl sscanf(char const *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2256 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sscanf_s_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_s_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2275 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sscanf_s(char const *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=vsscanf_s(_Buffer, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2297 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 2299 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(push) #pragma warning(disable:6530) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snscanf_l(char const *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2326 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snscanf(char const *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2349 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snscanf_s_l(char const *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2374 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snscanf_s(char const *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2397 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(pop) __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_tempnam" ". See online help for details.")) char *__cdecl tempnam(char const *_Directory, char const *_FilePrefix);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fcloseall" ". See online help for details.")) int __cdecl fcloseall(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fdopen" ". See online help for details.")) FILE *__cdecl fdopen(int _FileHandle, char const *_Format);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fgetchar" ". See online help for details.")) int __cdecl fgetchar(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fileno" ". See online help for details.")) int __cdecl fileno(FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_flushall" ". See online help for details.")) int __cdecl flushall(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fputchar" ". See online help for details.")) int __cdecl fputchar(int _Ch);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_getw" ". See online help for details.")) int __cdecl getw(FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_putw" ". See online help for details.")) int __cdecl putw(int _Ch, FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_rmtmp" ". See online help for details.")) int __cdecl rmtmp(void);#line 2441 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h"__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma once#pragma once#pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) int *__cdecl _errno(void);errno_t __cdecl _set_errno(int _Value);errno_t __cdecl _get_errno(int *_Value);unsigned long *__cdecl __doserrno(void);errno_t __cdecl _set_doserrno(unsigned long _Value);errno_t __cdecl _get_doserrno(unsigned long *_Value);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4514 4820) __pragma(pack(push, 8)) void *__cdecl memchr(void const *_Buf, int _Val, size_t _MaxCount);int __cdecl memcmp(void const *_Buf1, void const *_Buf2, size_t _Size);void *__cdecl memcpy(void *_Dst, void const *_Src, size_t _Size);void *__cdecl memmove(void *_Dst, void const *_Src, size_t _Size);void *__cdecl memset(void *_Dst, int _Val, size_t _Size);char *__cdecl strchr(char const *_Str, int _Val);char *__cdecl strrchr(char const *_Str, int _Ch);char *__cdecl strstr(char const *_Str, char const *_SubStr);wchar_t *__cdecl wcschr(wchar_t const *_Str, wchar_t _Ch);wchar_t *__cdecl wcsrchr(wchar_t const *_Str, wchar_t _Ch);wchar_t *__cdecl wcsstr(wchar_t const *_Str, wchar_t const *_SubStr);__pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) static __inline errno_t __cdecl memcpy_s(void *const _Destination, rsize_t const _DestinationSize, void const *const _Source, rsize_t const _SourceSize) { if(_SourceSize==0) { return 0;} { int _Expr_val=!!(_Destination !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;if(_Source==((void *) 0)||_DestinationSize< _SourceSize) { memset(_Destination, 0, _DestinationSize);{ int _Expr_val=!!(_Source !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_DestinationSize >=_SourceSize);if(!(_Expr_val)) {(*_errno())=34;_invalid_parameter_noinfo();return 34;} } ;return 22 ;} memcpy(_Destination, _Source, _SourceSize);return 0;} static __inline errno_t __cdecl memmove_s(void *const _Destination, rsize_t const _DestinationSize, void const *const _Source, rsize_t const _SourceSize) { if(_SourceSize==0) { return 0;} { int _Expr_val=!!(_Destination !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_Source !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_DestinationSize >=_SourceSize);if(!(_Expr_val)) {(*_errno())=34;_invalid_parameter_noinfo();return 34;} } ;memmove(_Destination, _Source, _SourceSize);return 0;}#pragma warning(pop) __pragma(pack(pop))#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) int __cdecl _memicmp(void const *_Buf1, void const *_Buf2, size_t _Size);int __cdecl _memicmp_l(void const *_Buf1, void const *_Buf2, size_t _Size, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memccpy" ". See online help for details.")) void *__cdecl memccpy(void *_Dst, void const *_Src, int _Val, size_t _Size);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memicmp" ". See online help for details.")) int __cdecl memicmp(void const *_Buf1, void const *_Buf2, size_t _Size);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) errno_t __cdecl wcscat_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source);errno_t __cdecl wcscpy_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source);errno_t __cdecl wcsncat_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source, rsize_t _MaxCount);errno_t __cdecl wcsncpy_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source, rsize_t _MaxCount);wchar_t *__cdecl wcstok_s(wchar_t *_String, wchar_t const *_Delimiter, wchar_t **_Context);__declspec(allocator) wchar_t *__cdecl _wcsdup(wchar_t const *_String);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcscat(wchar_t *_Destination, wchar_t const *_Source);int __cdecl wcscmp(wchar_t const *_String1, wchar_t const *_String2);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcscpy(wchar_t *_Destination, wchar_t const *_Source);size_t __cdecl wcscspn(wchar_t const *_String, wchar_t const *_Control);size_t __cdecl wcslen(wchar_t const *_String);size_t __cdecl wcsnlen(wchar_t const *_Source, size_t _MaxCount);static __inline size_t __cdecl wcsnlen_s(wchar_t const *_Source, size_t _MaxCount) { return(_Source==0) ? 0 :wcsnlen(_Source, _MaxCount);}__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcsncat(wchar_t *_Destination, wchar_t const *_Source, size_t _Count);int __cdecl wcsncmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcsncpy(wchar_t *_Destination, wchar_t const *_Source, size_t _Count);wchar_t *__cdecl wcspbrk(wchar_t const *_String, wchar_t const *_Control);size_t __cdecl wcsspn(wchar_t const *_String, wchar_t const *_Control);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcstok(wchar_t *_String, wchar_t const *_Delimiter, wchar_t **_Context);#line 237 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstring.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) static __inline wchar_t *__cdecl _wcstok(wchar_t *const _String, wchar_t const *const _Delimiter) { return wcstok(_String, _Delimiter, 0);} __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcserror(int _ErrorNumber);errno_t __cdecl _wcserror_s(wchar_t *_Buffer, size_t _SizeInWords, int _ErrorNumber);__declspec(deprecated("This function or variable may be unsafe. Consider using " "__wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl __wcserror(wchar_t const *_String);errno_t __cdecl __wcserror_s(wchar_t *_Buffer, size_t _SizeInWords, wchar_t const *_ErrorMessage);int __cdecl _wcsicmp(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcsicmp_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsnicmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsnicmp_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);errno_t __cdecl _wcsnset_s(wchar_t *_Destination, size_t _SizeInWords, wchar_t _Value, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsnset(wchar_t *_String, wchar_t _Value, size_t _MaxCount);wchar_t *__cdecl _wcsrev(wchar_t *_String);errno_t __cdecl _wcsset_s(wchar_t *_Destination, size_t _SizeInWords, wchar_t _Value);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsset(wchar_t *_String, wchar_t _Value);errno_t __cdecl _wcslwr_s(wchar_t *_String, size_t _SizeInWords);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcslwr(wchar_t *_String);errno_t __cdecl _wcslwr_s_l(wchar_t *_String, size_t _SizeInWords, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcslwr_l(wchar_t *_String, _locale_t _Locale);errno_t __cdecl _wcsupr_s(wchar_t *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsupr(wchar_t *_String);errno_t __cdecl _wcsupr_s_l(wchar_t *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsupr_l(wchar_t *_String, _locale_t _Locale);size_t __cdecl wcsxfrm(wchar_t *_Destination, wchar_t const *_Source, size_t _MaxCount);size_t __cdecl _wcsxfrm_l(wchar_t *_Destination, wchar_t const *_Source, size_t _MaxCount, _locale_t _Locale);int __cdecl wcscoll(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcscoll_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsicoll(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcsicoll_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsncoll(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsncoll_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _wcsnicoll(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsnicoll_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsdup" ". See online help for details.")) wchar_t *__cdecl wcsdup(wchar_t const *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicmp" ". See online help for details.")) int __cdecl wcsicmp(wchar_t const *_String1, wchar_t const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnicmp" ". See online help for details.")) int __cdecl wcsnicmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnset" ". See online help for details.")) wchar_t *__cdecl wcsnset(wchar_t *_String, wchar_t _Value, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsrev" ". See online help for details.")) wchar_t *__cdecl wcsrev(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsset" ". See online help for details.")) wchar_t *__cdecl wcsset(wchar_t *_String, wchar_t _Value);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcslwr" ". See online help for details.")) wchar_t *__cdecl wcslwr(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsupr" ". See online help for details.")) wchar_t *__cdecl wcsupr(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicoll" ". See online help for details.")) int __cdecl wcsicoll(wchar_t const *_String1, wchar_t const *_String2);__pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) errno_t __cdecl strcpy_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source);errno_t __cdecl strcat_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source);errno_t __cdecl strerror_s(char *_Buffer, size_t _SizeInBytes, int _ErrorNumber);errno_t __cdecl strncat_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source, rsize_t _MaxCount);errno_t __cdecl strncpy_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source, rsize_t _MaxCount);char *__cdecl strtok_s(char *_String, char const *_Delimiter, char **_Context);void *__cdecl _memccpy(void *_Dst, void const *_Src, int _Val, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strcat(char *_Destination, char const *_Source);int __cdecl strcmp(char const *_Str1, char const *_Str2);int __cdecl _strcmpi(char const *_String1, char const *_String2);int __cdecl strcoll(char const *_String1, char const *_String2);int __cdecl _strcoll_l(char const *_String1, char const *_String2, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strcpy(char *_Destination, char const *_Source);size_t __cdecl strcspn(char const *_Str, char const *_Control);__declspec(allocator) char *__cdecl _strdup(char const *_Source);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strerror(char const *_ErrorMessage);errno_t __cdecl _strerror_s(char *_Buffer, size_t _SizeInBytes, char const *_ErrorMessage);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strerror(int _ErrorMessage);int __cdecl _stricmp(char const *_String1, char const *_String2);int __cdecl _stricoll(char const *_String1, char const *_String2);int __cdecl _stricoll_l(char const *_String1, char const *_String2, _locale_t _Locale);int __cdecl _stricmp_l(char const *_String1, char const *_String2, _locale_t _Locale);size_t __cdecl strlen(char const *_Str);errno_t __cdecl _strlwr_s(char *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strlwr(char *_String);errno_t __cdecl _strlwr_s_l(char *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strlwr_l(char *_String, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strncat(char *_Destination, char const *_Source, size_t _Count);int __cdecl strncmp(char const *_Str1, char const *_Str2, size_t _MaxCount);int __cdecl _strnicmp(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strnicmp_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _strnicoll(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strnicoll_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _strncoll(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strncoll_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);size_t __cdecl __strncnt(char const *_String, size_t _Count);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strncpy(char *_Destination, char const *_Source, size_t _Count);size_t __cdecl strnlen(char const *_String, size_t _MaxCount);static __inline size_t __cdecl strnlen_s(char const *_String, size_t _MaxCount) { return _String==0 ? 0 :strnlen(_String, _MaxCount);} errno_t __cdecl _strnset_s(char *_String, size_t _SizeInBytes, int _Value, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strnset(char *_Destination, int _Value, size_t _Count);char *__cdecl strpbrk(char const *_Str, char const *_Control);char *__cdecl _strrev(char *_Str);errno_t __cdecl _strset_s(char *_Destination, size_t _DestinationSize, int _Value);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strset(char *_Destination, int _Value);size_t __cdecl strspn(char const *_Str, char const *_Control);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strtok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strtok(char *_String, char const *_Delimiter);errno_t __cdecl _strupr_s(char *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strupr(char *_String);errno_t __cdecl _strupr_s_l(char *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strupr_l(char *_String, _locale_t _Locale);size_t __cdecl strxfrm(char *_Destination, char const *_Source, size_t _MaxCount);size_t __cdecl _strxfrm_l(char *_Destination, char const *_Source, size_t _MaxCount, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strdup" ". See online help for details.")) char *__cdecl strdup(char const *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strcmpi" ". See online help for details.")) int __cdecl strcmpi(char const *_String1, char const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_stricmp" ". See online help for details.")) int __cdecl stricmp(char const *_String1, char const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strlwr" ". See online help for details.")) char *__cdecl strlwr(char *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnicmp" ". See online help for details.")) int __cdecl strnicmp(char const *_String1, char const *_String2, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnset" ". See online help for details.")) char *__cdecl strnset(char *_String, int _Value, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strrev" ". See online help for details.")) char *__cdecl strrev(char *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strset" ". See online help for details.")) char *__cdecl strset(char *_String, int _Value);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strupr" ". See online help for details.")) char *__cdecl strupr(char *_String);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4514 4820) __pragma(pack(push, 8)) __pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) typedef unsigned short _ino_t;typedef _ino_t ino_t;#line 24 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h" typedef unsigned int _dev_t;typedef _dev_t dev_t;#line 36 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h" typedef long _off_t;typedef _off_t off_t;#line 48 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h"#pragma warning(pop) typedef char *sds;#pragma pack(push, 1) struct sdshdr5 { unsigned char flags;char buf[];};struct sdshdr8 { uint8_t len;uint8_t alloc;unsigned char flags;char buf[];};struct sdshdr16 { uint16_t len;uint16_t alloc;unsigned char flags;char buf[];};struct sdshdr32 { uint32_t len;uint32_t alloc;unsigned char flags;char buf[];};struct sdshdr64 { uint64_t len;uint64_t alloc;unsigned char flags;char buf[];};#pragma pack(pop) static inline size_t sdslen(const sds s) { unsigned char flags=s[-1];switch(flags &7) { case 0 :return((flags) >> 3) ;case 1 :return((struct sdshdr8 *)((s) -(sizeof(struct sdshdr8)))) ->len;case 2 :return((struct sdshdr16 *)((s) -(sizeof(struct sdshdr16)))) ->len;case 3 :return((struct sdshdr32 *)((s) -(sizeof(struct sdshdr32)))) ->len;case 4 :return((struct sdshdr64 *)((s) -(sizeof(struct sdshdr64)))) ->len;} return 0;}static inline size_t sdsavail(const sds s) { unsigned char flags=s[-1];switch(flags &7) { case 0 :{ return 0;} case 1 :{ struct sdshdr8 *sh=(void *)((s) -(sizeof(struct sdshdr8)));;return sh->alloc - sh->len;} case 2 :{ struct sdshdr16 *sh=(void *)((s) -(sizeof(struct sdshdr16)));;return sh->alloc - sh->len;} case 3 :{ struct sdshdr32 *sh=(void *)((s) -(sizeof(struct sdshdr32)));;return sh->alloc - sh->len;} case 4 :{ struct sdshdr64 *sh=(void *)((s) -(sizeof(struct sdshdr64)));;return sh->alloc - sh->len;} } return 0;}static inline void sdssetlen(sds s, size_t newlen) { unsigned char flags=s[-1];switch(flags &7) { case 0 :{ unsigned char *fp=((unsigned char *) s) - 1;*fp=0|(newlen<< 3);} break;case 1 :((struct sdshdr8 *)((s) -(sizeof(struct sdshdr8)))) ->len=(uint8_t) newlen;break;case 2 :((struct sdshdr16 *)((s) -(sizeof(struct sdshdr16)))) ->len=(uint16_t) newlen;break;case 3 :((struct sdshdr32 *)((s) -(sizeof(struct sdshdr32)))) -> len
Definition: CPAL.d:15583
cp
Definition: action.c:1035
int source[257]
Definition: afm2tfm.c:928
#define state
Definition: aptex-macros.h:996
#define type(a)
Definition: aptex-macros.h:171
void Line(double *)
Definition: axohelp.c:1395
@ SEOF
Definition: cmscgats.c:58
@ SSTRING
Definition: cmscgats.c:55
@ FALSE
Definition: dd.h:101
@ TRUE
Definition: dd.h:102
#define F_OK
Definition: defs.h:34
int h
Definition: dviconv.c:9
#define fgets
Definition: xxstdio.h:29
int strcmp()
Definition: coll.cpp:143
char tmpdir[]
#define yylval
#define yynerrs
#define xp
#define s
Definition: afcover.h:80
#define ws
#define c(n)
Definition: gpos-common.c:150
#define lh
Definition: gsftopk.c:500
#define strchr
Definition: gsftopk.c:59
#define memcpy(d, s, n)
Definition: gsftopk.c:64
#define istate
Definition: inputstack.h:49
#define putc
Definition: jbib.h:20
#define NULL
Definition: ftobjs.h:61
small capitals from c petite p scientific f u
Definition: afcover.h:88
small capitals from c petite p
Definition: afcover.h:72
small capitals from c petite p scientific i
Definition: afcover.h:80
int errno
#define unlink(file)
Definition: config.h:413
#define fclose
Definition: debug.h:100
#define O_RDONLY
Definition: win32lib.h:176
#define close
Definition: win32lib.h:63
#define fstat
Definition: win32lib.h:74
#define fputs
Definition: mendex.h:67
#define fprintf
Definition: mendex.h:64
static char * strerror(int errnum)
Definition: error.c:56
int dup()
#define sprintf
Definition: snprintf.c:44
#define LINE_MAX
Definition: mkind.h:326
static struct Point current
Definition: picttoppm.c:134
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF sub
#define YYERRCODE
Definition: pl-parser.c:973
bstring c int memset(void *s, int c, int length)
#define map
#define flags
static char sep[2]
Definition: pdftoppm.cc:115
state_type states[100]
Definition: routines.c:44
RETTYPE mp_ptr mp_size_t mp_srcptr dp
Definition: sec_div.c:70
mp_ptr hp
Definition: sec_pi1_div.c:86
void CloseAllHandlers(void)
Definition: sh5.c:1161
#define SDDPAREN
Definition: sh5.c:141
#define SDPAREN
Definition: sh5.c:140
#define SBQUOTE
Definition: sh5.c:138
static int near getsc_(void)
Definition: sh5.c:1032
static void near GetHereDocuments(void)
Definition: sh5.c:1395
#define SVARRAY
Definition: sh5.c:143
static Here_D * HereListHead
Definition: sh5.c:108
#define SDQUOTE
Definition: sh5.c:135
#define SSQUOTE
Definition: sh5.c:134
#define SBRACE
Definition: sh5.c:136
#define SWORD
Definition: sh5.c:139
static bool expanding_alias
Definition: sh5.c:90
int ReMapIOHandler(int fd)
Definition: sh5.c:1216
static void near ReadHereDocument(IO_Actions *iop)
Definition: sh5.c:924
#define SPAREN
Definition: sh5.c:137
#define NULLSTR
Definition: sh5.c:88
#define getsc()
Definition: sh5.c:126
struct here Here_D
int OpenHereFile(char *hname, bool sub)
Definition: sh5.c:1468
static char * LIT_Unclosed
Definition: sh5.c:116
void XCheck(XString *xs, unsigned char **xp)
Definition: sh5.c:1321
char * XCreate(XString *xs, size_t len)
Definition: sh5.c:1350
Source * pushs(int type)
Definition: sh5.c:1018
int ScanNextToken(int LexicalControlFlags)
Definition: sh5.c:153
char * XClose(XString *xs, unsigned char *End)
Definition: sh5.c:1337
void FreeAllHereDocuments(int area)
Definition: sh5.c:1438
void SaveHereDocumentInfo(IO_Actions *iop)
Definition: sh5.c:1365
static Here_D * ActiveListHead
Definition: sh5.c:110
char * GenerateTemporaryFileName(void)
Definition: sh5.c:1283
void CompilingError(void)
Definition: sh5.c:1004
#define SBASE
Definition: sh5.c:133
static char nullstr[]
Definition: sh5.c:87
#define ungetsc()
Definition: sh5.c:127
#define SVSUBST
Definition: sh5.c:142
static bool AllowMultipleAliases
Definition: sh5.c:91
void ScrapHereList(void)
Definition: sh5.c:1419
unsigned char CharTypes[UCHAR_MAX+1]
Definition: sh6.c:362
char * GetVariableAsString(char *, bool)
Definition: sh1.c:3578
char CurrentDirLiteral[]
Definition: sh6.c:201
#define F_LOCAL
Definition: sh.h:121
#define IDENT
Definition: sh.h:1338
#define CHAR_NEW_LINE
Definition: sh.h:1007
#define PARSE_MDPAREN
Definition: sh.h:1308
#define PARSE_WORD
Definition: sh.h:1286
int S_close(int, bool)
Definition: sh8.c:448
#define MAX_RECURSIVEALIASES
Definition: sh.h:1604
#define SWSTR
Definition: sh.h:1365
#define CHAR_BACKQUOTE
Definition: sh.h:1010
#define IOCAT
Definition: sh.h:1656
void FlushStreams(void)
Definition: sh8.c:1646
#define IS_VariableSC(c)
Definition: sh.h:1084
#define FDBASE
Definition: sh.h:1000
int Execute_stack_depth
Definition: sh6.c:188
#define SWORDS
Definition: sh.h:1367
#define IOCLOBBER
Definition: sh.h:1661
#define WORD_OQUOTE
Definition: sh.h:1270
char * ExpandAString(char *, int)
Definition: sh4.c:244
#define STTY
Definition: sh.h:1363
void * GetAllocatedSpace(size_t)
Definition: sh1.c:1241
#define C_LEX1
Definition: sh.h:1068
#define C_IFS
Definition: sh.h:1071
bool S_access(char *, int)
Definition: sh8.c:1730
#define WORD_OSUBST
Definition: sh.h:1274
#define CHAR_META
Definition: sh.h:1058
void QuitCurrentEnvironment(void)
Definition: sh1.c:1126
#define FFNAME_MAX
Definition: sh.h:981
char CurrentLexIdentifier[64+1]
Definition: sh6.c:346
int CloseFile(FILE *)
Definition: sh8.c:1626
#define WORD_CQUOTE
Definition: sh.h:1271
char HomeVariableName[]
Definition: sh6.c:204
#define PARSE_REDIR
Definition: sh.h:1306
#define PARSE_MPAREN
Definition: sh.h:1307
#define WORD_OMATHS
Definition: sh.h:1276
void S_fclose(FILE *, bool)
Definition: sh8.c:544
#define PARSE_BREAK
Definition: sh.h:1289
#define IS_VarOp(c)
Definition: sh.h:1091
#define CHAR_MATCH_END
Definition: sh.h:1034
FILE * FOpenFile(char *, char *)
Definition: sh8.c:1587
#define IORDWR
Definition: sh.h:1654
#define WORD_QCHAR
Definition: sh.h:1267
#define O_NOINHERIT
Definition: sh.h:435
#define CHAR_VARIABLE
Definition: sh.h:1030
#define WORD_OARRAY
Definition: sh.h:1277
char * sOpenAppendMode
Definition: sh6.c:292
#define CHAR_ASYNC
Definition: sh.h:1035
#define PARSE_COPROCESS
Definition: sh.h:1310
char ConsoleLineBuffer[]
Definition: sh6.c:382
void PrintErrorMessage(char *,...)
Definition: sh1.c:1053
#define WORD_ODQUOTE
Definition: sh.h:1272
#define CHAR_TAB
Definition: sh.h:1014
#define WORD_CHAR
Definition: sh.h:1266
#define CHAR_DOUBLE_QUOTE
Definition: sh.h:1009
#define MATHS_EXPRESSION
Definition: sh.h:1334
#define WORD_CSUBST
Definition: sh.h:1275
char * Outofmemory1
Definition: sh6.c:265
char * sOpenReadMode
Definition: sh6.c:290
#define CHAR_SINGLE_QUOTE
Definition: sh.h:1008
int S_Remap(int, int)
Definition: sh8.c:569
#define SWORDSEP
Definition: sh.h:1369
int LookUpSymbol(char *)
Definition: sh2.c:947
AliasList * LookUpAlias(char *, bool)
Definition: sh10.c:1387
#define PARSE_LOGICAL_OR
Definition: sh.h:1288
#define ALIAS_EXPANDING
Definition: sh.h:1603
#define CHAR_OPEN_PARATHENSIS
Definition: sh.h:1019
ShellFileEnvironment e
Definition: sh6.c:388
#define CHAR_OPEN_BRACES
Definition: sh.h:1021
#define CHAR_OPEN_BRACKETS
Definition: sh.h:1023
#define IOFUNCTION
Definition: sh.h:1662
#define IOHERE
Definition: sh.h:1655
void ReleaseMemoryCell(void *)
Definition: sh1.c:2141
#define XStart(xs)
Definition: sh.h:1213
int S_open(bool, char *, int)
Definition: sh8.c:253
#define CHAR_COMMENT
Definition: sh.h:1028
#define SetErrorPoint(a)
Definition: sh.h:1678
#define IOSKIP
Definition: sh.h:1660
char * StringCopy(char *)
Definition: sh1.c:1325
void CreateNewEnvironment(void)
Definition: sh1.c:1100
#define SALIAS
Definition: sh.h:1368
int GetMemoryAreaNumber(void *)
Definition: sh1.c:2314
#define IOWRITE
Definition: sh.h:1653
#define IS_IFS(c)
Definition: sh.h:1088
#define IS_VariableFC(c)
Definition: sh.h:1083
int GetConsoleInput(void)
Definition: sh9.c:302
void * ReAllocateSpace(void *, size_t)
Definition: sh1.c:1255
#define ONEWORD
Definition: sh.h:1331
char * LIT_NewLine
Definition: sh6.c:254
#define ALLOW_CONTINUATION
Definition: sh.h:1329
#define ALLOW_ALIAS
Definition: sh.h:1332
#define O_CMASK
Definition: sh.h:1100
#define IODUP
Definition: sh.h:1657
#define CHAR_SEPARATOR
Definition: sh.h:1045
void ShellErrorMessage(char *,...)
Definition: sh1.c:1032
char * sOpenWriteBinaryMode
Definition: sh6.c:293
#define DPRINT(a, b)
Definition: sh.h:2458
#define CHAR_MATCH_START
Definition: sh.h:1029
int MaxNumberofFDs
Definition: sh6.c:131
char * DirectorySeparator
Definition: sh6.c:243
#define SFILE
Definition: sh.h:1364
#define CHAR_MAGIC
Definition: sh.h:1060
int feputs(char *)
Definition: sh8.c:3385
#define CHAR_PIPE
Definition: sh.h:1026
#define PARSE_LOGICAL_AND
Definition: sh.h:1287
#define CHAR_CLOSE_BRACES
Definition: sh.h:1022
#define CHAR_INPUT
Definition: sh.h:1053
FILE * MyReOpenFile(int, char *)
Definition: sh8.c:1609
#define WORD_COMSUB
Definition: sh.h:1269
#define ALLOW_KEYWORD
Definition: sh.h:1333
#define IS_Numeric(c)
Definition: sh.h:1086
#define WORD_EOS
Definition: sh.h:1265
#define CHAR_CLOSE_BRACKETS
Definition: sh.h:1024
#define NUFILE
Definition: sh.h:999
#define C_SEMICOLON
Definition: sh.h:1073
void TerminateCurrentEnvironment(int)
Definition: sh1.c:929
#define IOREAD
Definition: sh.h:1652
int foputs(char *)
Definition: sh8.c:3390
#define IS_VarNumeric(c)
Definition: sh.h:1090
#define WORD_CARRAY
Definition: sh.h:1278
#define CHAR_SPACE
Definition: sh.h:1012
#define TEST_EXPRESSION
Definition: sh.h:1335
#define XFree(xs)
Definition: sh.h:1212
#define CHAR_CLOSE_PARATHENSIS
Definition: sh.h:1020
#define TERMINATE_COMMAND
Definition: sh.h:1683
#define WORD_CDQUOTE
Definition: sh.h:1273
#define CHAR_OUTPUT
Definition: sh.h:1055
#define WORD_QTCHAR
Definition: sh.h:1268
Definition: sh.h:1594
int AFlags
Definition: sh.h:1597
Definition: dt2dv.c:55
Definition: sh.h:1206
size_t SLength
Definition: sh.h:1209
unsigned char * SEnd
Definition: sh.h:1208
unsigned char * SStart
Definition: sh.h:1207
unsigned long IOMap
Definition: sh.h:1691
char * line
Definition: sh.h:1693
Definition: sh5.c:97
struct here * h_next
Definition: sh5.c:98
IO_Actions * h_iop
Definition: sh5.c:99
Definition: sh.h:1645
short io_flag
Definition: sh.h:1647
short io_unit
Definition: sh.h:1646
char * io_name
Definition: sh.h:1648
Definition: sh.h:1345
int type
Definition: sh.h:1347
char * str
Definition: sh.h:1346
struct source * next
Definition: sh.h:1357
Definition: stemdb.c:56
#define c2
Definition: t1io.c:53
#define FILE
Definition: t1stdio.h:34
*job_name strlen((char *) job_name) - 4)
#define sp
Definition: stack.c:11