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)  

pdfcolor.c
Go to the documentation of this file.
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2 
3  Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4  the dvipdfmx project team.
5 
6  Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 */
22 
23 /* No page independence here...
24  */
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29 
30 #include "system.h"
31 #include "mem.h"
32 #include "error.h"
33 
34 #include "dpxconf.h"
35 #include "dpxfile.h"
36 
37 #include "pdfdoc.h"
38 #include "pdfdev.h"
39 #include "pdfresource.h"
40 
41 #include "pdfcolor.h"
42 
43 int
45 {
46  ASSERT(color);
47 
48  return color->type;
49 }
50 
51 int
52 pdf_color_rgbcolor (pdf_color *color, double r, double g, double b)
53 {
54  ASSERT(color);
55 
56  if (r < 0.0 || r > 1.0) {
57  WARN("Invalid color value specified: red=%g", r);
58  return -1;
59  }
60  if (g < 0.0 || g > 1.0) {
61  WARN("Invalid color value specified: green=%g", g);
62  return -1;
63  }
64  if (b < 0.0 || b > 1.0) {
65  WARN("Invalid color value specified: blue=%g", b);
66  return -1;
67  }
68  color->values[0] = r;
69  color->values[1] = g;
70  color->values[2] = b;
71 
72  color->res_id = -1;
74  color->num_components = 3;
75 
76  color->spot_color_name = NULL;
77 
78  return 0;
79 }
80 
81 int
83  double c, double m, double y, double k)
84 {
85  ASSERT(color);
86 
87  if (c < 0.0 || c > 1.0) {
88  WARN("Invalid color value specified: cyan=%g", c);
89  return -1;
90  }
91  if (m < 0.0 || m > 1.0) {
92  WARN("Invalid color value specified: magenta=%g", m);
93  return -1;
94  }
95  if (y < 0.0 || y > 1.0) {
96  WARN("Invalid color value specified: yellow=%g", y);
97  return -1;
98  }
99  if (k < 0.0 || k > 1.0) {
100  WARN("Invalid color value specified: black=%g", k);
101  return -1;
102  }
103 
104  color->values[0] = c;
105  color->values[1] = m;
106  color->values[2] = y;
107  color->values[3] = k;
108 
109  color->res_id = -1;
111  color->num_components = 4;
112 
113  color->spot_color_name = NULL;
114 
115  return 0;
116 }
117 
118 int
120 {
121  ASSERT(color);
122 
123  if (g < 0.0 || g > 1.0) {
124  WARN("Invalid color value specified: gray=%g", g);
125  return -1;
126  }
127 
128  color->values[0] = g;
129 
130  color->res_id = -1;
132  color->num_components = 1;
133 
134  color->spot_color_name = NULL;
135 
136  return 0;
137 }
138 
139 int
141 {
142  ASSERT(color);
143 
144  if (c < 0.0 || c > 1.0) {
145  WARN("Invalid color value specified: grade=%g", c);
146  return -1;
147  }
148 
149  color->values[0] = c;
150  color->values[1] = 0.0; /* Dummy */
151 
152  color->res_id = -1; /* ??? */
154  color->num_components = 2;
155 
156  color->spot_color_name = name;
157 
158  return 0;
159 }
160 
161 
162 void
163 pdf_color_copycolor (pdf_color *color1, const pdf_color *color2)
164 {
165  ASSERT(color1 && color2);
166 
167  memcpy(color1, color2, sizeof(pdf_color));
168 }
169 
170 /* Brighten up a color. f == 0 means no change, f == 1 means white. */
171 void
173 {
174  ASSERT(dst && src);
175 
176  if (src->type != PDF_COLORSPACE_TYPE_RGB &&
177  src->type != PDF_COLORSPACE_TYPE_CMYK &&
178  src->type != PDF_COLORSPACE_TYPE_GRAY) {
180  return;
181  }
182 
183  if (f == 1.0) {
185  } else {
186  double f0, f1;
187  int n;
188 
190  n = src->num_components;
191  f1 = n == 4 ? 0.0 : f; /* n == 4 is CMYK, others are RGB and Gray */
192  f0 = 1.0-f;
193 
194  while (n--)
195  dst->values[n] = f0 * src->values[n] + f1;
196  }
197 }
198 
199 /* TODO: remove "is_white"...
200  * pdfdoc.c only use this but not necessary if we have a flag have_bgcolor
201  * to indicate if bg color was set.
202  */
203 int
205 {
206  int n;
207  double f;
208 
209  ASSERT(color);
210 
211  switch (color->type) {
214  f = 1.0;
215  break;
217  f = 0.0;
218  break;
219  default:
220  return 0;
221  }
222 
223  n = color->num_components;
224  while (n--)
225  if (color->values[n] != f)
226  return 0;
227 
228  return 1;
229 }
230 
231 /* TODO: make_resource_name() in pdfresource.c with configurable prefix. */
232 int
233 pdf_color_set_color (const pdf_color *color, char *buffer, size_t buffer_len, char mask)
234 {
235  int len = 0;
236  int i;
237 
238  {
239  size_t estimate = 0;
240  if (color->num_components > 0) {
241  estimate += 5 * (color->num_components + 1) + 4; /* Assuming color values [0, 1]... */
242  }
243  estimate += strlen(" /DeiceGray CS");
244  if (estimate + 1 > buffer_len) {
245  WARN("Not enough buffer space allocated for writing set_color op...");
246  return 0;
247  }
248  }
249 
250  switch (pdf_color_type(color)) {
252  {
253  len += sprintf(buffer+len, " /DeviceGray %c%c", 'C' | mask, 'S' | mask);
254  for (i = 0; i < color->num_components; i++) {
255  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
256  }
257  len += sprintf(buffer+len, " %c%c", 'S' | mask, 'C' | mask);
258  }
259  break;
261  {
262  len += sprintf(buffer+len, " /DeviceRGB %c%c", 'C' | mask, 'S' | mask);
263  for (i = 0; i < color->num_components; i++) {
264  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
265  }
266  len += sprintf(buffer+len, " %c%c", 'S' | mask, 'C' | mask);
267  }
268  break;
270  {
271  len += sprintf(buffer+len, " /DeviceCMYK %c%c", 'C' | mask, 'S' | mask);
272  for (i = 0; i < color->num_components; i++) {
273  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
274  }
275  len += sprintf(buffer+len, " %c%c", 'S' | mask, 'C' | mask);
276  }
277  break;
279  {
280  for (i = 0; i < color->num_components; i++) {
281  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
282  }
283  len += sprintf(buffer+len, " %c", 'G' | mask);
284  }
285  break;
287  {
288  for (i = 0; i < color->num_components; i++) {
289  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
290  }
291  len += sprintf(buffer+len, " %c%c", 'R' | mask, 'G' | mask);
292  }
293  break;
295  {
296  for (i = 0; i < color->num_components; i++) {
297  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
298  }
299  len += sprintf(buffer+len, " %c", 'K' | mask);
300  }
301  break;
303  {
304  len = sprintf(buffer+len,
305  " /%s %c%c %g %c%c",
306  color->spot_color_name,
307  'C' | mask, 'S' | mask,
308  ROUND(color->values[0], 0.001),
309  'S' | mask, 'C' | mask);
310  }
311  break;
316  {
317  char res_name[16];
318 
319  snprintf(res_name, 16, "XC%d", color->res_id & 0xffff); /* TODO: Upper 16bits for category ID. See, pdfresource.c */
320  res_name[15] = 0;
321  len += sprintf(buffer+len, " /%s %c%c", res_name, 'C' | mask, 'S' | mask);
322  for (i = 0; i < color->num_components; i++) {
323  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
324  }
325  len += sprintf(buffer+len, " %c%c", 'S' | mask, 'C' | mask);
326  pdf_doc_add_page_resource("ColorSpace", res_name, pdf_get_resource_reference(color->res_id));
327  }
328  break;
330  {
331  char res_name[16];
332 
333  if (color->res_id < 0) {
334  len += sprintf(buffer+len, " /Pattern %c%c", 'C' | mask, 'S' | mask);
335  /* no color value but just a name */
336  } else {
337  snprintf(res_name, 16, "XC%d", color->res_id & 0xffff); /* TODO: Upper 16bits for category ID. See, pdfresource.c */
338  res_name[15] = 0;
339  len += sprintf(buffer+len, " /%s %c%c", res_name, 'C' | mask, 'S' | mask);
340  for (i = 0; i < color->num_components; i++) {
341  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
342  }
343  pdf_doc_add_page_resource("ColorSpace", res_name, pdf_get_resource_reference(color->res_id));
344  }
345  snprintf(res_name, 16, "XP%d", color->pattern_id & 0xffff); /* TODO: see below */
346  res_name[15] = 0;
347  len += sprintf(buffer+len, " /%s %c%c%c", res_name, 'S' | mask, 'C' | mask, 'N' | mask);
348 
349  pdf_doc_add_page_resource("Pattern", res_name, pdf_get_resource_reference(color->pattern_id));
350  }
351  break;
352  default:
353  {
354  char res_name[16];
355 
356  snprintf(res_name, 8, "XC%d", color->res_id & 0xffff); /* TODO: Upper 16bits for category ID. See, pdfresource.c */
357  res_name[8] = 0;
358  len += sprintf(buffer+len, " /%s %c%c", res_name, 'C' | mask, 'S' | mask);
359  for (i = 0; i < color->num_components; i++) {
360  len += sprintf(buffer+len, " %g", ROUND(color->values[i], 0.001));
361  }
362  len += sprintf(buffer+len, " %c%c%c", 'S' | mask, 'C' | mask, 'N' | mask);
363  pdf_doc_add_page_resource("ColorSpace", res_name, pdf_get_resource_reference(color->res_id));
364  }
365  }
366 
367  return len;
368 }
369 
371  -1,
373  1,
374  NULL,
375  {0.0},
376  -1
377 };
378 
380  -1,
382  1,
383  NULL,
384  {0.0},
385  -1
386 };
387 
388 /*
389  * This routine is not a real color matching.
390  * TODO: This can be removed too?
391  * Maybe we are currently always forcing installing color.
392  */
393 int
394 pdf_color_compare (const pdf_color *color1, const pdf_color *color2)
395 {
396  int n;
397 
398  if (color1->type != PDF_COLORSPACE_TYPE_GRAY ||
399  color1->type != PDF_COLORSPACE_TYPE_RGB ||
400  color1->type != PDF_COLORSPACE_TYPE_CMYK ||
401  color1->type != PDF_COLORSPACE_TYPE_SPOT ||
402  color2->type != PDF_COLORSPACE_TYPE_GRAY ||
403  color2->type != PDF_COLORSPACE_TYPE_RGB ||
404  color2->type != PDF_COLORSPACE_TYPE_CMYK ||
405  color2->type != PDF_COLORSPACE_TYPE_SPOT ||
406  color1->type != color2->type) {
407  return -1;
408  }
409 
410  n = color1->num_components;
411  while (--n >= 0) {
412  if (color1->values[n] != color2->values[n])
413  return -1;
414  }
415  if (color1->spot_color_name && color2->spot_color_name)
416  return strcmp(color1->spot_color_name, color2->spot_color_name);
417 
418  return 0;
419 }
420 
421 /* Dvipdfm special */
423  -1,
425  1,
426  NULL,
427  {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
428  -1
429 };
430 
431 #define DEV_COLOR_STACK_MAX 128
432 
433 static struct {
434  int current;
437 } color_stack = {
438  0,
439 };
440 
441 void
443 {
444  if (color_stack.current > 0) {
445  WARN("You've mistakenly made a global color change within nested colors.");
446  }
447  while (color_stack.current--) {
448  if (color_stack.stroke[color_stack.current].spot_color_name)
449  RELEASE(color_stack.stroke[color_stack.current].spot_color_name);
450  if (color_stack.fill[color_stack.current].spot_color_name)
451  RELEASE(color_stack.fill[color_stack.current].spot_color_name);
452  }
453  color_stack.current = 0;
456  return;
457 }
458 
459 void
461 {
462  pdf_color_copycolor(&color_stack.stroke[color_stack.current], sc);
465 }
466 
467 void
469 {
470  if (color_stack.current >= DEV_COLOR_STACK_MAX-1) {
471  WARN("Color stack overflow. Just ignore.");
472  } else {
473  color_stack.current++;
474  pdf_color_set(sc, fc);
475  }
476  return;
477 }
478 
479 void
481 {
482  if (color_stack.current <= 0) {
483  WARN("Color stack underflow. Just ignore.");
484  } else {
485  color_stack.current--;
487  }
488  return;
489 }
490 
491 void
493 {
494  *sc = &color_stack.stroke[color_stack.current];
495  *fc = &color_stack.fill[color_stack.current];
496  return;
497 }
498 
499 #if 0
500 /* BUG (20060330): color change does not effect on the next page.
501  * The problem is due to the part of grestore because it restores
502  * the color values in the state of gsave which are not correct
503  * if the color values are changed inside of a page.
504  */
505 void
506 pdf_dev_preserve_color (void)
507 {
508  if (color_stack.current > 0) {
509  current_stroke = color_stack.stroke[color_stack.current];
510  current_fill = color_stack.fill[color_stack.current];
511  }
512 }
513 #endif
514 
515 /***************************** COLOR SPACE *****************************/
516 /* Currently only for ICCBased color loaded while reading images */
517 static int pdf_colorspace_defineresource (const char *ident, int subtype, void *cdata, pdf_obj *resource);
518 static int pdf_colorspace_findresource (const char *ident, int subtype, const void *cdata);
519 
520 static unsigned char nullbytes16[16] = {
521  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
522 };
523 
524 static struct
525 {
526  int major;
527  int minor;
528 } icc_versions[] = {
529  {0, 0}, /* PDF-1.0, we don't support them */
530  {0, 0}, /* PDF-1.1, we don't support them */
531  {0, 0}, /* PDF-1.2, we don't support them */
532  {0x02, 0x10}, /* PDF-1.3 */
533  {0x02, 0x20}, /* PDF-1.4 */
534  {0x04, 0x00}, /* PDF-1.5 */
535  {0x04, 0x00}, /* PDF-1.6 */
536  {0x04, 0x20}, /* PDF-1.7 */
537  {0x04, 0x20}, /* Dummy(1.8)*/
538  {0x04, 0x20}, /* Dummy(1.9) */
539  {0x04, 0x20} /* PDF-2.0 */
540 };
541 
542 static int
544 {
545  int idx;
546 
547  idx = pdf_get_version() - 10;
548  if (idx < 11) {
549  if (icc_versions[idx].major < major)
550  return 0;
551  else if (icc_versions[idx].major == major &&
553  return 0;
554  else {
555  return 1;
556  }
557  }
558 
559  return 0;
560 }
561 
562 typedef uint32_t iccSig;
563 static iccSig
564 str2iccSig (const void *s)
565 {
566  const char *p;
567 
568  p = (const char *) s;
569 
570  return (iccSig) ((p[0]<<24)|(p[1]<<16)|(p[2]<<8)|p[3]);
571 }
572 
573 typedef struct
574 {
575  int32_t X, Y, Z; /* s15Fixed16Number */
576 } iccXYZNumber;
577 
578 typedef struct
579 {
580  int size;
585  iccSig PCS; /* Profile Connection Space */
586  char creationDate[12];
589  char flags[4];
592  char devAttr[8];
596  unsigned char ID[16]; /* MD5 checksum with Rendering intent,
597  * Header attrs, Profile ID fields are
598  * set to zeros.
599  */
600  /* 28 bytes reserved - must be set to zeros */
601 } iccHeader;
602 
603 #define iccNullSig 0
604 static void
606 {
607  ASSERT(icch);
608 
609  icch->size = 0;
610  icch->CMMType = iccNullSig;
611  icch->version = 0xFFFFFF;
612  icch->devClass = iccNullSig;
613  icch->colorSpace = iccNullSig;
614  icch->PCS = iccNullSig;
615  memset(icch->creationDate, 0, 12);
616  icch->acsp = str2iccSig("ascp");
617  icch->platform = iccNullSig;
618  memset(icch->flags, 0, 4);
619  icch->devMnfct = iccNullSig;
620  icch->devModel = iccNullSig;
621  memset(icch->devAttr, 0, 8);
622  icch->intent = 0;
623  icch->illuminant.X = 0;
624  icch->illuminant.Y = 0;
625  icch->illuminant.Z = 0;
626  icch->creator = iccNullSig;
627  memset(icch->ID, 0, 16);
628 }
629 
630 #define ICC_INTENT_TYPE(n) ((int) (((n) >> 16) & 0xff))
631 #define ICC_INTENT_PERCEPTUAL 0
632 #define ICC_INTENT_RELATIVE 1
633 #define ICC_INTENT_SATURATION 2
634 #define ICC_INTENT_ABSOLUTE 3
635 
636 /*
637  * In ICC profile stream dicrionary, there is /Range whose values must
638  * "match the information in the profile". But where is those values in?
639  *
640  * How should I treat rendering intent?
641  */
643 {
644  int32_t sig; /* 'i' 'c' 'c' 'b' */
645 
646  unsigned char checksum[16]; /* 16 bytes MD5 Checksum */
647  int colorspace; /* input colorspace:
648  * RGB, Gray, CMYK, (Lab?)
649  */
650  int alternate; /* alternate colorspace (id), unused */
651 };
652 
653 #define check_sig(d,p,q,r,s) ((d) && (d)->sig == ((p)<<24|(q)<<16|(r)<<8|(s)))
654 
655 static void
657 {
658  ASSERT(cdata);
659 
660  cdata->sig = ('i' << 24|'c' << 16|'c' << 8|'b');
661  memset(cdata->checksum, 0, 16);
662  cdata->colorspace = PDF_COLORSPACE_TYPE_INVALID;
663  cdata->alternate = -1;
664 
665  return;
666 }
667 
668 static void
670 {
671  ASSERT(check_sig(cdata, 'i', 'c', 'c', 'b'));
672 
673  RELEASE(cdata);
674 }
675 
676 static int
678 {
679  int num_components = 0;
680 
681  ASSERT(check_sig(cdata, 'i', 'c', 'c', 'b'));
682 
683  switch (cdata->colorspace) {
685  num_components = 3;
686  break;
688  num_components = 4;
689  break;
691  num_components = 1;
692  break;
694  num_components = 3;
695  break;
696  }
697 
698  return num_components;
699 }
700 
701 static int
702 compare_iccbased (const char *ident1, const struct iccbased_cdata *cdata1,
703  const char *ident2, const struct iccbased_cdata *cdata2)
704 {
705  if (cdata1 && cdata2) {
706 
707  ASSERT(check_sig(cdata1, 'i', 'c', 'c', 'b'));
708  ASSERT(check_sig(cdata2, 'i', 'c', 'c', 'b'));
709 
710  if (memcmp(cdata1->checksum, nullbytes16, 16) &&
711  memcmp(cdata2->checksum, nullbytes16, 16)) {
712  return memcmp(cdata1->checksum, cdata2->checksum, 16);
713  }
714  if (cdata1->colorspace != cdata2->colorspace) {
715  return (cdata1->colorspace - cdata2->colorspace);
716  }
717 
718  /* Continue if checksum unknown and colorspace is same. */
719  }
720 
721  if (ident1 && ident2)
722  return strcmp(ident1, ident2);
723 
724  /* No way to compare */
725  return -1;
726 }
727 
728 int
729 iccp_check_colorspace (int colortype, const void *profile, int proflen)
730 {
731  iccSig colorspace;
732  const unsigned char *p;
733 
734  if (!profile || proflen < 128)
735  return -1;
736 
737  p = (const unsigned char *) profile;
738 
739  colorspace = str2iccSig(p + 16);
740 
741  switch (colortype) {
744  if (colorspace != str2iccSig("RGB ")) {
745  return -1;
746  }
747  break;
750  if (colorspace != str2iccSig("GRAY")) {
751  return -1;
752  }
753  break;
755  if (colorspace != str2iccSig("CMYK")) {
756  return -1;
757  }
758  break;
759  default:
760  return -1;
761  }
762 
763  return 0;
764 }
765 
766 pdf_obj *
767 iccp_get_rendering_intent (const void *profile, int proflen)
768 {
769  pdf_obj *ri = NULL;
770  const unsigned char *p;
771  int32_t intent;
772 
773  if (!profile || proflen < 128)
774  return NULL;
775 
776  p = (const unsigned char *) profile;
777 
778  intent = (p[64] << 24)|(p[65] << 16)|(p[66] << 8)|p[67];
779  switch (ICC_INTENT_TYPE(intent)) {
781  ri = pdf_new_name("Saturation");
782  break;
784  ri = pdf_new_name("Perceptual");
785  break;
786  case ICC_INTENT_ABSOLUTE:
787  ri = pdf_new_name("AbsoluteColorimetric");
788  break;
789  case ICC_INTENT_RELATIVE:
790  ri = pdf_new_name("RelativeColorimetric");
791  break;
792  default:
793  WARN("Invalid rendering intent type: %d", ICC_INTENT_TYPE(intent));
794  ri = NULL;
795  }
796 
797  return ri;
798 }
799 
800 #define sget_signed_long(p) ((int32_t) ((p)[0] << 24|(p)[1] << 16|(p)[2] << 8|(p)[3]))
801 #define sget_signed_short(p) ((short) ((p)[0] << 8|(p)[1]))
802 #define get_iccSig(p) ((iccSig) ((p)[0] << 24|(p)[1] << 16|(p)[2] << 8|(p)[3]))
803 
804 static int
806  const void *profile, int proflen, int check_size)
807 {
808  const unsigned char *p, *endptr;
809 
810  if (check_size) {
811  if (!profile || proflen < 128 ||
812  proflen % 4 != 0) {
813  WARN("Profile size: %ld", proflen);
814  return -1;
815  }
816  }
817 
818  p = (const unsigned char *) profile;
819  endptr = p + 128;
820 
821  icch->size = sget_signed_long(p);
822  if (check_size) {
823  if (icch->size != proflen) {
824  WARN("ICC Profile size: %ld(header) != %ld", icch->size, proflen);
825  return -1;
826  }
827  }
828  p += 4;
829 
830  icch->CMMType = str2iccSig(p);
831  p += 4;
832  icch->version = sget_signed_long(p);
833  p += 4;
834  icch->devClass = str2iccSig(p);
835  p += 4;
836  icch->colorSpace = str2iccSig(p);
837  p += 4;
838  icch->PCS = str2iccSig(p);
839  p += 4;
840  memcpy(icch->creationDate, p, 12);
841  p += 12;
842  icch->acsp = str2iccSig(p); /* acsp */
843  if (icch->acsp != str2iccSig("acsp")) {
844  WARN("Invalid ICC profile: not \"acsp\" - %c%c%c%c ",
845  p[0], p[1], p[2], p[3]);
846  return -1;
847  }
848  p += 4;
849  icch->platform = str2iccSig(p);
850  p += 4;
851  memcpy(icch->flags, p, 4);
852  p += 4;
853  icch->devMnfct = str2iccSig(p);
854  p += 4;
855  icch->devModel = str2iccSig(p);
856  p += 4;
857  memcpy(icch->devAttr, p, 8);
858  p += 8;
859  icch->intent = (p[0] << 24)|(p[1] << 16)|(p[2] << 8)|p[3];
860  p += 4;
861  icch->illuminant.X = sget_signed_long(p);
862  p += 4;
863  icch->illuminant.Y = sget_signed_long(p);
864  p += 4;
865  icch->illuminant.Z = sget_signed_long(p);
866  p += 4;
867  icch->creator = str2iccSig(p);
868  p += 4;
869  memcpy(icch->ID, p, 16);
870  p += 16;
871 
872  /* 28 bytes reserved - must be set to zeros */
873  for (; p < endptr; p++) {
874  if (*p != '\0') {
875  WARN("Reserved pad not zero: %02x (at offset %d in ICC profile header.)",
876  *p, 128 - ((int) (endptr - p)));
877  return -1;
878  }
879  }
880 
881  return 0;
882 }
883 
884 /* MD5 checksum with Rendering intent,
885  * Header attrs, Profile ID fields are
886  * set to zeros.
887  */
888 #define ICC_HEAD_SECT1_START 0
889 #define ICC_HEAD_SECT1_LENGTH 56
890 /* 8 bytes devAttr, 4 bytes intent */
891 #define ICC_HEAD_SECT2_START 68
892 #define ICC_HEAD_SECT2_LENGTH 16
893 /* 16 bytes ID (checksum) */
894 #define ICC_HEAD_SECT3_START 100
895 #define ICC_HEAD_SECT3_LENGTH 28
896 
897 #include "dpxcrypt.h"
898 static void
899 iccp_get_checksum (unsigned char *checksum, const void *profile, int proflen)
900 {
901  const unsigned char *p;
903 
904  p = (const unsigned char *) profile;
905 
906  MD5_init (&md5);
908  MD5_write(&md5, nullbytes16, 12);
910  MD5_write(&md5, nullbytes16, 16);
912 
913  /* body */
914  MD5_write(&md5, p + 128, proflen - 128);
915 
917 }
918 
919 static void
920 print_iccp_header (iccHeader *icch, unsigned char *checksum)
921 {
922  int i;
923 
924  ASSERT(icch);
925 
926 #define print_iccSig(s,t) if ((s) == 0) {\
927  MESG("pdf_color>> %s:\t(null)\n", (t)); \
928  } else if (!isprint(((s) >> 24) & 0xff) || \
929  !isprint(((s) >> 16) & 0xff) || \
930  !isprint(((s) >> 8) & 0xff) || \
931  !isprint((s) & 0xff)) { \
932  MESG("pdf_color>> %s:\t(invalid)\n", (t)); \
933  } else { \
934  MESG("pdf_color>> %s:\t%c%c%c%c\n", (t), \
935  ((s) >> 24) & 0xff, ((s) >> 16) & 0xff, \
936  ((s) >> 8) & 0xff, (s) & 0xff); \
937 }
938 
939  MESG("\n");
940  MESG("pdf_color>> ICC Profile Info\n");
941  MESG("pdf_color>> Profile Size:\t%ld bytes\n", icch->size);
942  print_iccSig(icch->CMMType, "CMM Type");
943  MESG("pdf_color>> Profile Version:\t%d.%01d.%01d\n",
944  (icch->version >> 24) & 0xff,
945  (icch->version >> 20) & 0x0f,
946  (icch->version >> 16) & 0x0f);
947  print_iccSig(icch->devClass, "Device Class");
948  print_iccSig(icch->colorSpace, "Color Space");
949  print_iccSig(icch->PCS, "Connection Space");
950  MESG("pdf_color>> Creation Date:\t");
951  for (i = 0; i < 12; i += 2) {
952  if (i == 0)
953  MESG("%04u",
954  sget_unsigned_pair((unsigned char *) icch->creationDate));
955  else {
956  MESG(":%02u",
957  sget_unsigned_pair((unsigned char *) (&icch->creationDate[i])));
958  }
959  }
960  MESG("\n");
961  print_iccSig(icch->platform, "Primary Platform");
962  MESG("pdf_color>> Profile Flags:\t%02x:%02x:%02x:%02x\n",
963  icch->flags[0], icch->flags[1], icch->flags[2], icch->flags[3]);
964  print_iccSig(icch->devMnfct, "Device Mnfct");
965  print_iccSig(icch->devModel, "Device Model");
966  MESG("pdf_color>> Device Attr:\t");
967  for (i = 0; i < 8; i++) {
968  if (i == 0)
969  MESG("%02x", icch->devAttr[i]);
970  else
971  MESG(":%02x", icch->devAttr[i]);
972  }
973  MESG("\n");
974  MESG("pdf_color>> Rendering Intent:\t");
975  switch (ICC_INTENT_TYPE(icch->intent)) {
977  MESG("Saturation");
978  break;
980  MESG("Perceptual");
981  break;
982  case ICC_INTENT_ABSOLUTE:
983  MESG("Absolute Colorimetric");
984  break;
985  case ICC_INTENT_RELATIVE:
986  MESG("Relative Colorimetric");
987  break;
988  default:
989  MESG("(invalid)");
990  break;
991  }
992  MESG("\n");
993  print_iccSig(icch->creator, "Creator");
994  MESG("pdf_color>> Illuminant (XYZ):\t");
995  MESG("%.3f %.3f %.3f\n",
996  (double) icch->illuminant.X / 0x10000,
997  (double) icch->illuminant.Y / 0x10000,
998  (double) icch->illuminant.Z / 0x10000);
999  MESG("pdf_color>> Checksum:\t");
1000  if (!memcmp(icch->ID, nullbytes16, 16)) {
1001  MESG("(null)");
1002  } else {
1003  for (i = 0; i < 16; i++) {
1004  if (i == 0)
1005  MESG("%02x", icch->ID[i]);
1006  else
1007  MESG(":%02x", icch->ID[i]);
1008  }
1009  }
1010  MESG("\n");
1011  if (checksum) {
1012  MESG("pdf_color>> Calculated:\t");
1013  for (i = 0; i < 16; i++) {
1014  if (i == 0)
1015  MESG("%02x", checksum[i]);
1016  else
1017  MESG(":%02x", checksum[i]);
1018  }
1019  MESG("\n");
1020  }
1021 
1022  return;
1023 }
1024 
1025 
1026 static int
1027 iccp_devClass_allowed (int dev_class)
1028 {
1029  int colormode;
1030 
1032 
1033  switch (colormode) {
1034 #if 0
1035  case PDF_DEV_COLORMODE_PDFX1:
1036  break;
1037  case PDF_DEV_COLORMODE_PDFX3:
1038  if (dev_class != str2iccSig("prtr")) {
1039  return 0;
1040  }
1041  break;
1042 #endif
1043  default:
1044  if (dev_class != str2iccSig("scnr") &&
1045  dev_class != str2iccSig("mntr") &&
1046  dev_class != str2iccSig("prtr") &&
1047  dev_class != str2iccSig("spac")) {
1048  return 0;
1049  }
1050  break;
1051  }
1052 
1053 
1054  return 1;
1055 }
1056 
1057 int
1059  const void *profile, int proflen)
1060 {
1061  int cspc_id;
1062  pdf_obj *resource;
1063  pdf_obj *stream;
1064  pdf_obj *stream_dict;
1065  iccHeader icch;
1066  int colorspace;
1067  unsigned char checksum[16];
1068  struct iccbased_cdata *cdata;
1069 
1070  iccp_init_iccHeader(&icch);
1071  if (iccp_unpack_header(&icch, profile, proflen, 1) < 0) { /* check size */
1072  WARN("Invalid ICC profile header in \"%s\"", ident);
1073  print_iccp_header(&icch, NULL);
1074  return -1;
1075  }
1076 
1077  if (!iccp_version_supported((icch.version >> 24) & 0xff,
1078  (icch.version >> 16) & 0xff)) {
1079  WARN("ICC profile format spec. version %d.%01d.%01d"
1080  " not supported in current PDF version setting.",
1081  (icch.version >> 24) & 0xff,
1082  (icch.version >> 20) & 0x0f,
1083  (icch.version >> 16) & 0x0f);
1084  WARN("ICC profile not embedded.");
1085  print_iccp_header(&icch, NULL);
1086  return -1;
1087  }
1088 
1089  if (!iccp_devClass_allowed(icch.devClass)) {
1090  WARN("Unsupported ICC Profile Device Class:");
1091  print_iccp_header(&icch, NULL);
1092  return -1;
1093  }
1094 
1095  if (icch.colorSpace == str2iccSig("RGB ")) {
1097  } else if (icch.colorSpace == str2iccSig("GRAY")) {
1099  } else if (icch.colorSpace == str2iccSig("CMYK")) {
1101  } else {
1102  WARN("Unsupported input color space.");
1103  print_iccp_header(&icch, NULL);
1104  return -1;
1105  }
1106 
1107  iccp_get_checksum(checksum, profile, proflen);
1108  if (memcmp(icch.ID, nullbytes16, 16) &&
1109  memcmp(icch.ID, checksum, 16)) {
1110  WARN("Invalid ICC profile: Inconsistent checksum.");
1111  print_iccp_header(&icch, checksum);
1112  return -1;
1113  }
1114 
1115  cdata = NEW(1, struct iccbased_cdata);
1117  cdata->colorspace = colorspace;
1118  memcpy(cdata->checksum, checksum, 16);
1119 
1122  if (cspc_id >= 0) {
1123  if (dpx_conf.verbose_level > 0)
1124  MESG("(ICCP:[id=%d])", cspc_id);
1126  return cspc_id;
1127  }
1128  if (dpx_conf.verbose_level > 1) {
1129  print_iccp_header(&icch, checksum);
1130  }
1131 
1132  resource = pdf_new_array();
1133 
1135  pdf_add_array(resource, pdf_new_name("ICCBased"));
1137 
1138  stream_dict = pdf_stream_dict(stream);
1139  pdf_add_dict(stream_dict, pdf_new_name("N"),
1141 
1142  pdf_add_stream (stream, profile, proflen);
1144 
1147  cdata, resource);
1148 
1149  return cspc_id;
1150 }
1151 
1152 #if 0
1153 #define WBUF_SIZE 4096
1154 static unsigned char wbuf[WBUF_SIZE];
1155 
1156 static pdf_obj *
1157 iccp_load_file_stream (unsigned char *checksum, int length, FILE *fp)
1158 {
1159  pdf_obj *stream;
1160  MD5_CONTEXT md5;
1161  int nb_read;
1162 
1163  rewind(fp);
1164 
1165  if (fread(wbuf, 1, 128, fp) != 128) {
1166  return NULL;
1167  }
1168  length -= 128;
1169 
1171 
1172  MD5_init (&md5);
1174  MD5_write(&md5, nullbytes16, 12);
1176  MD5_write(&md5, nullbytes16, 16);
1178 
1179  pdf_add_stream(stream, wbuf, 128);
1180 
1181  /* body */
1182  while (length > 0) {
1183  nb_read = fread(wbuf, 1, MIN(length, WBUF_SIZE), fp);
1184  MD5_write(&md5, wbuf, nb_read);
1185  pdf_add_stream(stream, wbuf, nb_read);
1186  length -= nb_read;
1187  }
1188 
1189  MD5_final(checksum, &md5);
1190 
1191 
1192  return stream;
1193 }
1194 
1195 int
1196 pdf_colorspace_load_ICCBased (const char *ident, const char *filename)
1197 {
1198  int cspc_id;
1199  FILE *fp;
1200  pdf_obj *resource;
1201  pdf_obj *stream;
1202  pdf_obj *stream_dict;
1203  iccHeader icch;
1204  int colorspace;
1205  int size;
1206  unsigned char checksum[16];
1207  struct iccbased_cdata *cdata;
1208 
1209 
1211  if (!fp)
1212  return -1;
1213 
1214  size = file_size(fp);
1215  if (size < 128) {
1216  MFCLOSE(fp);
1217  return -1;
1218  }
1219  if (fread(wbuf, 1, 128, fp) != 128) {
1220  DPXFCLOSE(fp);
1221  return -1;
1222  }
1223 
1224  iccp_init_iccHeader(&icch);
1225  if (iccp_unpack_header(&icch, wbuf, 128, 0) < 0) {
1226  WARN("Invalid ICC profile header in \"%s\"", ident);
1227  print_iccp_header(&icch, NULL);
1228  DPXFCLOSE(fp);
1229  return -1;
1230  }
1231  if (icch.size > size) {
1232  WARN("File size smaller than recorded in header: %ld %ld",
1233  icch.size, size);
1234  DPXFCLOSE(fp);
1235  return -1;
1236  }
1237 
1238  if (!iccp_version_supported((icch.version >> 24) & 0xff,
1239  (icch.version >> 16) & 0xff)) {
1240  WARN("ICC profile format spec. version %d.%01d.%01d"
1241  " not supported in current PDF version setting.",
1242  (icch.version >> 24) & 0xff,
1243  (icch.version >> 20) & 0x0f,
1244  (icch.version >> 16) & 0x0f);
1245  WARN("ICC profile not embedded.");
1246  print_iccp_header(&icch, NULL);
1247  DPXFCLOSE(fp);
1248  return -1;
1249  }
1250 
1251  if (!iccp_devClass_allowed(icch.devClass)) {
1252  WARN("Unsupported ICC Profile Device Class:");
1253  print_iccp_header(&icch, NULL);
1254  DPXFCLOSE(fp);
1255  return -1;
1256  }
1257 
1258  if (icch.colorSpace == str2iccSig("RGB ")) {
1260  } else if (icch.colorSpace == str2iccSig("GRAY")) {
1262  } else if (icch.colorSpace == str2iccSig("CMYK")) {
1264  } else {
1265  WARN("Unsupported input color space.");
1266  print_iccp_header(&icch, NULL);
1267  DPXFCLOSE(fp);
1268  return -1;
1269  }
1270 
1271  stream = iccp_load_file_stream(checksum, icch.size, fp);
1272  DPXFCLOSE(fp);
1273 
1274  if (!stream) {
1275  WARN("Loading ICC Profile failed...: %s", filename);
1276  return -1;
1277  }
1278 
1279  if (memcmp(icch.ID, nullbytes16, 16) &&
1280  memcmp(icch.ID, checksum, 16)) {
1281  WARN("Invalid ICC profile: Inconsistent checksum.");
1282  print_iccp_header(&icch, NULL);
1284  return -1;
1285  }
1286 
1287  cdata = NEW(1, struct iccbased_cdata);
1289  cdata->colorspace = colorspace;
1290  memcpy(cdata->checksum, checksum, 16);
1291 
1294  if (cspc_id >= 0) {
1295  if (dpx_conf.verbose_level > 0)
1296  MESG("(ICCP:[id=%d])", cspc_id);
1299  return cspc_id;
1300  }
1301  if (dpx_conf.verbose_level > 1) {
1302  print_iccp_header(&icch, checksum);
1303  }
1304 
1305  resource = pdf_new_array();
1306 
1307  pdf_add_array(resource, pdf_new_name("ICCBased"));
1309 
1310  stream_dict = pdf_stream_dict(stream);
1311  pdf_add_dict(stream_dict, pdf_new_name("N"),
1314 
1317  cdata, resource);
1318 
1319  return cspc_id;
1320 }
1321 #endif
1322 
1323 typedef struct {
1324  char *ident;
1325  int subtype;
1326 
1329 
1330  void *cdata;
1331 } pdf_colorspace;
1332 
1333 static struct {
1334  int count;
1337 } cspc_cache = {
1338  0, 0, NULL
1339 };
1340 
1341 int
1343  int type, const void *cdata)
1344 {
1345  pdf_colorspace *colorspace;
1346  int cspc_id, cmp = -1;
1347 
1348  for (cspc_id = 0;
1349  cmp && cspc_id < cspc_cache.count; cspc_id++) {
1350  colorspace = &cspc_cache.colorspaces[cspc_id];
1351  if (colorspace->subtype != type)
1352  continue;
1353 
1354  switch (colorspace->subtype) {
1357  colorspace->ident, colorspace->cdata);
1358  break;
1359  }
1360  if (!cmp)
1361  return cspc_id;
1362  }
1363 
1364  return -1; /* not found */
1365 }
1366 
1367 static void
1369 {
1370  ASSERT(colorspace);
1371 
1372  colorspace->ident = NULL;
1373  colorspace->subtype = PDF_COLORSPACE_TYPE_INVALID;
1374 
1375  colorspace->resource = NULL;
1376  colorspace->reference = NULL;
1377  colorspace->cdata = NULL;
1378 
1379  return;
1380 }
1381 
1382 static void
1384 {
1385  ASSERT(colorspace);
1386 
1387  if (colorspace->ident)
1388  RELEASE(colorspace->ident);
1389  if (colorspace->resource)
1390  pdf_release_obj(colorspace->resource);
1391  if (colorspace->reference)
1392  pdf_release_obj(colorspace->reference);
1393  colorspace->resource = NULL;
1394  colorspace->reference = NULL;
1395 
1396  if (colorspace->cdata) {
1397  switch (colorspace->subtype) {
1399  release_iccbased_cdata(colorspace->cdata);
1400  break;
1401  }
1402  }
1403  colorspace->cdata = NULL;
1404  colorspace->subtype = PDF_COLORSPACE_TYPE_INVALID;
1405 
1406  return;
1407 }
1408 
1409 static void
1411 {
1412  ASSERT(colorspace);
1413 
1414  if (colorspace->resource)
1415  pdf_release_obj(colorspace->resource);
1416  if (colorspace->reference)
1417  pdf_release_obj(colorspace->reference);
1418 
1419  colorspace->resource = NULL;
1420  colorspace->reference = NULL;
1421 }
1422 
1423 int
1425  int subtype, void *cdata, pdf_obj *resource)
1426 {
1427  int cspc_id;
1428  pdf_colorspace *colorspace;
1429 
1430  if (cspc_cache.count >= cspc_cache.capacity) {
1431  cspc_cache.capacity += 16;
1432  cspc_cache.colorspaces = RENEW(cspc_cache.colorspaces,
1433  cspc_cache.capacity, pdf_colorspace);
1434  }
1435  cspc_id = cspc_cache.count;
1436  colorspace = &cspc_cache.colorspaces[cspc_id];
1437 
1438  pdf_init_colorspace_struct(colorspace);
1439  if (ident) {
1440  colorspace->ident = NEW(strlen(ident) + 1, char);
1441  strcpy(colorspace->ident, ident);
1442  }
1443  colorspace->subtype = subtype;
1444  colorspace->cdata = cdata;
1445  colorspace->resource = resource;
1446 
1447  if (dpx_conf.verbose_level > 0) {
1448  MESG("(ColorSpace:%s", ident);
1449  if (dpx_conf.verbose_level > 1) {
1450  switch (subtype) {
1452  MESG("[ICCBased]");
1453  break;
1455  MESG("[CalRGB]");
1456  break;
1458  MESG("[CalGray]");
1459  break;
1460  }
1461  }
1462  MESG(")");
1463  }
1464 
1465  cspc_cache.count++;
1466 
1467  return cspc_id;
1468 }
1469 
1470 pdf_obj *
1472 {
1473  pdf_colorspace *colorspace;
1474 
1475  colorspace = &cspc_cache.colorspaces[cspc_id];
1476  if (!colorspace->reference) {
1477  colorspace->reference = pdf_ref_obj(colorspace->resource);
1478  pdf_release_obj(colorspace->resource); /* .... */
1479  colorspace->resource = NULL;
1480  }
1481 
1482  return pdf_link_obj(colorspace->reference);
1483 }
1484 
1485 #if 0
1486 int
1487 pdf_get_colorspace_num_components (int cspc_id)
1488 {
1489  pdf_colorspace *colorspace;
1490  int num_components;
1491 
1492  colorspace = &cspc_cache.colorspaces[cspc_id];
1493 
1494  switch (colorspace->subtype) {
1496  num_components = get_num_components_iccbased(colorspace->cdata);
1497  break;
1499  num_components = 1;
1500  break;
1502  num_components = 3;
1503  break;
1505  num_components = 4;
1506  break;
1508  num_components = 3;
1509  break;
1511  num_components = 1;
1512  break;
1513  default:
1514  num_components = 0;
1515  break;
1516  }
1517 
1518  return num_components;
1519 }
1520 
1521 int
1522 pdf_get_colorspace_subtype (int cspc_id)
1523 {
1524  pdf_colorspace *colorspace;
1525 
1526  colorspace = &cspc_cache.colorspaces[cspc_id];
1527 
1528  return colorspace->subtype;
1529 }
1530 #endif
1531 
1532 void
1534 {
1535  cspc_cache.count = 0;
1536  cspc_cache.capacity = 0;
1537  cspc_cache.colorspaces = NULL;
1538 }
1539 
1540 void
1542 {
1543  int i;
1544 
1545  for (i = 0; i < cspc_cache.count; i++) {
1546  pdf_colorspace *colorspace;
1547 
1548  colorspace = &cspc_cache.colorspaces[i];
1549  pdf_flush_colorspace(colorspace);
1550  pdf_clean_colorspace_struct(colorspace);
1551  }
1552  RELEASE(cspc_cache.colorspaces);
1553  cspc_cache.colorspaces = NULL;
1554  cspc_cache.count = cspc_cache.capacity = 0;
1555 
1556 }
1557 
1558 #define PDF_COLORSPACE_FAMILY_DEVICE 0
1559 #define PDF_COLORSPACE_FAMILY_CIEBASED 1
1560 #define PDF_COLORSPACE_FAMILY_SPECIAL 2
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
#define sc
Definition: aptex-macros.h:57
#define type(a)
Definition: aptex-macros.h:171
#define name
#define subtype(a)
Definition: aptex-macros.h:172
int cmp(const void *p, const void *q)
Definition: bkmk2uni.c:1611
#define ID
Definition: chkdvifont.c:76
#define n
Definition: t4ht.c:1290
#define b
Definition: jpegint.h:372
#define fread
Definition: xxstdio.h:25
int strcmp()
Definition: coll.cpp:143
char * strcpy()
int fc
Definition: fcweight.c:27
mpz_t * f
Definition: gen-fib.c:34
#define s
Definition: afcover.h:80
#define c(n)
Definition: gpos-common.c:150
#define memcmp(s1, s2, n)
Definition: gsftopk.c:66
#define memcpy(d, s, n)
Definition: gsftopk.c:64
#define MIN(a, b)
Definition: jpegint.h:269
#define NULL
Definition: ftobjs.h:61
small capitals from c petite p
Definition: afcover.h:72
small capitals from c petite p scientific i
Definition: afcover.h:80
FT_UInt idx
Definition: cffcmap.c:135
kerning y
Definition: ttdriver.c:212
#define NEW
Definition: gdkanji.c:77
unsigned int uint32_t
Definition: stdint.h:80
signed int int32_t
Definition: stdint.h:77
png_uint_32 md5[4]
Definition: png.c:2248
png_uint_16 intent
Definition: png.c:2251
#define WBUF_SIZE
Definition: agl.c:383
struct _dpx_conf dpx_conf
Definition: dpxconf.c:33
void MD5_write(MD5_CONTEXT *hd, const unsigned char *inbuf, unsigned int inlen)
Definition: dpxcrypt.c:211
void MD5_final(unsigned char *outbuf, MD5_CONTEXT *hd)
Definition: dpxcrypt.c:244
void MD5_init(MD5_CONTEXT *ctx)
Definition: dpxcrypt.c:76
#define DPXFCLOSE(f)
Definition: dpxfile.h:57
#define DPXFOPEN(n, t)
Definition: dpxfile.h:56
@ DPX_RES_TYPE_ICCPROFILE
Definition: dpxfile.h:42
void WARN(const char *fmt,...)
Definition: error.c:62
void MESG(const char *fmt,...)
Definition: error.c:49
#define ASSERT(e)
Definition: error.h:48
#define RENEW(p, n, type)
Definition: mem.h:38
#define RELEASE(p)
Definition: mem.h:39
int32_t file_size(FILE *file)
Definition: mfileio.c:112
#define MFCLOSE(file)
Definition: mfileio.h:44
unsigned short sget_unsigned_pair(unsigned char *s)
Definition: numbers.c:62
#define ICC_INTENT_PERCEPTUAL
Definition: pdfcolor.c:631
static struct @130 icc_versions[]
#define check_sig(d, p, q, r, s)
Definition: pdfcolor.c:653
pdf_obj * pdf_get_colorspace_reference(int cspc_id)
Definition: pdfcolor.c:1471
static void iccp_get_checksum(unsigned char *checksum, const void *profile, int proflen)
Definition: pdfcolor.c:899
int pdf_color_spotcolor(pdf_color *color, char *name, double c)
Definition: pdfcolor.c:140
int pdf_color_type(const pdf_color *color)
Definition: pdfcolor.c:44
pdf_color stroke[128]
Definition: pdfcolor.c:435
int pdf_color_cmykcolor(pdf_color *color, double c, double m, double y, double k)
Definition: pdfcolor.c:82
#define print_iccSig(s, t)
static int pdf_colorspace_findresource(const char *ident, int subtype, const void *cdata)
Definition: pdfcolor.c:1342
static void print_iccp_header(iccHeader *icch, unsigned char *checksum)
Definition: pdfcolor.c:920
static int iccp_version_supported(int major, int minor)
Definition: pdfcolor.c:543
#define ICC_INTENT_ABSOLUTE
Definition: pdfcolor.c:634
int pdf_color_rgbcolor(pdf_color *color, double r, double g, double b)
Definition: pdfcolor.c:52
#define ICC_HEAD_SECT3_LENGTH
Definition: pdfcolor.c:895
pdf_color current_stroke
Definition: pdfcolor.c:379
pdf_colorspace * colorspaces
Definition: pdfcolor.c:1336
static struct @131 cspc_cache
void pdf_color_pop(void)
Definition: pdfcolor.c:480
#define ICC_HEAD_SECT1_LENGTH
Definition: pdfcolor.c:889
int pdf_color_is_white(const pdf_color *color)
Definition: pdfcolor.c:204
static int get_num_components_iccbased(const struct iccbased_cdata *cdata)
Definition: pdfcolor.c:677
void pdf_color_clear_stack(void)
Definition: pdfcolor.c:442
void pdf_close_colors(void)
Definition: pdfcolor.c:1541
int iccp_check_colorspace(int colortype, const void *profile, int proflen)
Definition: pdfcolor.c:729
static int iccp_devClass_allowed(int dev_class)
Definition: pdfcolor.c:1027
#define ICC_HEAD_SECT1_START
Definition: pdfcolor.c:888
pdf_color current_fill
Definition: pdfcolor.c:370
int pdf_color_graycolor(pdf_color *color, double g)
Definition: pdfcolor.c:119
static struct @129 color_stack
pdf_color default_color
Definition: pdfcolor.c:422
#define ICC_INTENT_RELATIVE
Definition: pdfcolor.c:632
void pdf_color_copycolor(pdf_color *color1, const pdf_color *color2)
Definition: pdfcolor.c:163
#define sget_signed_long(p)
Definition: pdfcolor.c:800
#define ICC_HEAD_SECT2_START
Definition: pdfcolor.c:891
static void pdf_flush_colorspace(pdf_colorspace *colorspace)
Definition: pdfcolor.c:1410
#define ICC_INTENT_TYPE(n)
Definition: pdfcolor.c:630
static int iccp_unpack_header(iccHeader *icch, const void *profile, int proflen, int check_size)
Definition: pdfcolor.c:805
static iccSig str2iccSig(const void *s)
Definition: pdfcolor.c:564
#define iccNullSig
Definition: pdfcolor.c:603
int pdf_color_set_color(const pdf_color *color, char *buffer, size_t buffer_len, char mask)
Definition: pdfcolor.c:233
static void init_iccbased_cdata(struct iccbased_cdata *cdata)
Definition: pdfcolor.c:656
#define DEV_COLOR_STACK_MAX
Definition: pdfcolor.c:431
uint32_t iccSig
Definition: pdfcolor.c:562
static void release_iccbased_cdata(struct iccbased_cdata *cdata)
Definition: pdfcolor.c:669
int current
Definition: pdfcolor.c:434
void pdf_color_brighten_color(pdf_color *dst, const pdf_color *src, double f)
Definition: pdfcolor.c:172
#define ICC_HEAD_SECT3_START
Definition: pdfcolor.c:894
static void iccp_init_iccHeader(iccHeader *icch)
Definition: pdfcolor.c:605
int pdf_color_compare(const pdf_color *color1, const pdf_color *color2)
Definition: pdfcolor.c:394
#define ICC_INTENT_SATURATION
Definition: pdfcolor.c:633
static void pdf_clean_colorspace_struct(pdf_colorspace *colorspace)
Definition: pdfcolor.c:1383
void pdf_init_colors(void)
Definition: pdfcolor.c:1533
int major
Definition: pdfcolor.c:526
pdf_color fill[128]
Definition: pdfcolor.c:436
static void pdf_init_colorspace_struct(pdf_colorspace *colorspace)
Definition: pdfcolor.c:1368
static unsigned char nullbytes16[16]
Definition: pdfcolor.c:520
pdf_obj * iccp_get_rendering_intent(const void *profile, int proflen)
Definition: pdfcolor.c:767
int count
Definition: pdfcolor.c:1334
int capacity
Definition: pdfcolor.c:1335
static int compare_iccbased(const char *ident1, const struct iccbased_cdata *cdata1, const char *ident2, const struct iccbased_cdata *cdata2)
Definition: pdfcolor.c:702
int iccp_load_profile(const char *ident, const void *profile, int proflen)
Definition: pdfcolor.c:1058
void pdf_color_push(pdf_color *sc, pdf_color *fc)
Definition: pdfcolor.c:468
static int pdf_colorspace_defineresource(const char *ident, int subtype, void *cdata, pdf_obj *resource)
Definition: pdfcolor.c:1424
#define ICC_HEAD_SECT2_LENGTH
Definition: pdfcolor.c:892
int minor
Definition: pdfcolor.c:527
void pdf_color_set(pdf_color *sc, pdf_color *fc)
Definition: pdfcolor.c:460
void pdf_color_get_current(pdf_color **sc, pdf_color **fc)
Definition: pdfcolor.c:492
#define pdf_color_white(c)
Definition: pdfcolor.h:68
#define PDF_COLORSPACE_TYPE_DEVICERGB
Definition: pdfcolor.h:34
#define PDF_COLORSPACE_TYPE_LAB
Definition: pdfcolor.h:38
#define PDF_COLORSPACE_TYPE_CALRGB
Definition: pdfcolor.h:37
#define pdf_color_black(c)
Definition: pdfcolor.h:67
#define PDF_COLORSPACE_TYPE_INDEXED
Definition: pdfcolor.h:42
#define PDF_COLORSPACE_TYPE_DEVICEGRAY
Definition: pdfcolor.h:33
#define PDF_COLORSPACE_TYPE_INVALID
Definition: pdfcolor.h:32
#define PDF_COLORSPACE_TYPE_GRAY
Definition: pdfcolor.h:31
#define PDF_COLORSPACE_TYPE_RGB
Definition: pdfcolor.h:29
#define PDF_COLORSPACE_TYPE_SPOT
Definition: pdfcolor.h:30
#define PDF_COLORSPACE_TYPE_ICCBASED
Definition: pdfcolor.h:39
#define PDF_COLORSPACE_TYPE_CALGRAY
Definition: pdfcolor.h:36
#define PDF_COLORSPACE_TYPE_PATTERN
Definition: pdfcolor.h:43
#define PDF_COLORSPACE_TYPE_DEVICECMYK
Definition: pdfcolor.h:35
#define PDF_COLORSPACE_TYPE_CMYK
Definition: pdfcolor.h:28
int pdf_dev_get_param(int param_type)
Definition: pdfdev.c:1606
void pdf_dev_reset_color(int force)
Definition: pdfdev.c:1200
#define PDF_DEV_PARAM_COLORMODE
Definition: pdfdev.h:141
void pdf_doc_add_page_resource(const char *category, const char *resource_name, pdf_obj *resource_ref)
Definition: pdfdoc.c:529
static unsigned char wbuf[1024]
Definition: pdfencoding.c:596
pdf_obj * pdf_new_array(void)
Definition: pdfobj.c:1421
pdf_obj * pdf_new_name(const char *name)
Definition: pdfobj.c:1330
pdf_obj * pdf_new_number(double value)
Definition: pdfobj.c:1076
pdf_obj * pdf_ref_obj(pdf_obj *object)
Definition: pdfobj.c:960
pdf_obj * pdf_new_stream(int flags)
Definition: pdfobj.c:1863
void pdf_release_obj(pdf_obj *object)
Definition: pdfobj.c:3217
pdf_obj * pdf_stream_dict(pdf_obj *stream)
Definition: pdfobj.c:2374
void pdf_add_stream(pdf_obj *stream, const void *stream_data, int length)
Definition: pdfobj.c:2424
pdf_obj * pdf_link_obj(pdf_obj *object)
Definition: pdfobj.c:948
int pdf_get_version(void)
Definition: pdfobj.c:395
void pdf_add_array(pdf_obj *array, pdf_obj *object)
Definition: pdfobj.c:1511
int pdf_add_dict(pdf_obj *dict, pdf_obj *key, pdf_obj *value)
Definition: pdfobj.c:1680
#define STREAM_COMPRESS
Definition: pdfobj.h:45
pdf_obj * pdf_get_resource_reference(int rc_id)
Definition: pdfresource.c:312
#define length(c)
Definition: ctangleboot.c:65
#define sprintf
Definition: snprintf.c:44
#define snprintf
Definition: snprintf.c:41
int k
Definition: otp-parser.c:70
integer checksum
Definition: pbmtopk.c:63
char * filename[256]
Definition: pbmtopk.c:46
static GfxLCMSProfilePtr profile
Definition: pdftocairo.cc:243
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 PF lsl PF PF PF else PF lsl PF lsl PF lsl PF endif SIZE macro preload_middle scratch_holds_offset if bpp else PF PF endif endif endif endm macro preload_trailing base if bpp if bpp *pix_per_block PF PF lsl PF PF PF PF PF else PF lsl PF lsl PF PF PF PF PF base if bpp if narrow_case &&bpp<=dst_w_bpp) PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, LSL #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 90f PF pld,[WK1]90:.else PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, lsl #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 92f91:PF add, WK0, WK0, #32 PF cmp, WK0, WK1 PF pld,[WK0] PF bne, 91b92:.endif .endif.endm.macro conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx process_head cond, numbytes, firstreg, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond X, X, #8 *numbytes/dst_w_bpp .endif process_tail cond, numbytes, firstreg .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst cond, numbytes, firstreg, DST .endif.endm.macro conditional_process1 cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_BRANCH_OVER .ifc cond, mi bpl 100f .endif .ifc cond, cs bcc 100f .endif .ifc cond, ne beq 100f .endif conditional_process1_helper, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx100:.else conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .endif.endm.macro conditional_process2 test, cond1, cond2, process_head, process_tail, numbytes1, numbytes2, firstreg1, firstreg2, unaligned_src, unaligned_mask, decrementx .if(flags) &(FLAG_DST_READWRITE|FLAG_BRANCH_OVER|FLAG_PROCESS_CORRUPTS_PSR|FLAG_PROCESS_DOES_STORE) test conditional_process1 cond1, process_head, process_tail, numbytes1, firstreg1, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_PROCESS_CORRUPTS_PSR test .endif conditional_process1 cond2, process_head, process_tail, numbytes2, firstreg2, unaligned_src, unaligned_mask, decrementx .else test process_head cond1, numbytes1, firstreg1, unaligned_src, unaligned_mask, 0 process_head cond2, numbytes2, firstreg2, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond1 X, X, #8 *numbytes1/dst_w_bpp sub &cond2 X, X, #8 *numbytes2/dst_w_bpp .endif process_tail cond1, numbytes1, firstreg1 process_tail cond2, numbytes2, firstreg2 pixst cond1, numbytes1, firstreg1, DST pixst cond2, numbytes2, firstreg2, DST .endif.endm.macro test_bits_1_0_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-1 .else movs SCRATCH, WK0, lsl #32-1 .endif.endm.macro test_bits_3_2_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-3 .else movs SCRATCH, WK0, lsl #32-3 .endif.endm.macro leading_15bytes process_head, process_tail .set DECREMENT_X, 1 .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 .set DECREMENT_X, 0 sub X, X, WK0, lsr #dst_bpp_shift str X,[sp, #LINE_SAVED_REG_COUNT *4] mov X, WK0 .endif .if dst_w_bpp==8 conditional_process2 test_bits_1_0_ptr, mi, cs, process_head, process_tail, 1, 2, 1, 2, 1, 1, DECREMENT_X .elseif dst_w_bpp==16 test_bits_1_0_ptr conditional_process1 cs, process_head, process_tail, 2, 2, 1, 1, DECREMENT_X .endif conditional_process2 test_bits_3_2_ptr, mi, cs, process_head, process_tail, 4, 8, 1, 2, 1, 1, DECREMENT_X .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 ldr X,[sp, #LINE_SAVED_REG_COUNT *4] .endif.endm.macro test_bits_3_2_pix movs SCRATCH, X, lsl #dst_bpp_shift+32-3.endm.macro test_bits_1_0_pix .if dst_w_bpp==8 movs SCRATCH, X, lsl #dst_bpp_shift+32-1 .else movs SCRATCH, X, lsr #1 .endif.endm.macro trailing_15bytes process_head, process_tail, unaligned_src, unaligned_mask conditional_process2 test_bits_3_2_pix, cs, mi, process_head, process_tail, 8, 4, 0, 2, unaligned_src, unaligned_mask, 0 .if dst_w_bpp==16 test_bits_1_0_pix conditional_process1 cs, process_head, process_tail, 2, 0, unaligned_src, unaligned_mask, 0 .elseif dst_w_bpp==8 conditional_process2 test_bits_1_0_pix, cs, mi, process_head, process_tail, 2, 1, 0, 1, unaligned_src, unaligned_mask, 0 .endif.endm.macro wide_case_inner_loop process_head, process_tail, unaligned_src, unaligned_mask, dst_alignment110:.set SUBBLOCK, 0 .rept pix_per_block *dst_w_bpp/128 process_head, 16, 0, unaligned_src, unaligned_mask, 1 .if(src_bpp > 0) &&(mask_bpp==0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle src_bpp, SRC, 1 .elseif(src_bpp==0) &&(mask_bpp > 0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle mask_bpp, MASK, 1 .else preload_middle src_bpp, SRC, 0 preload_middle mask_bpp, MASK, 0 .endif .if(dst_r_bpp > 0) &&((SUBBLOCK % 2)==0) &&(((flags) &FLAG_NO_PRELOAD_DST)==0) PF pld,[DST, #32 *prefetch_distance - dst_alignment] .endif process_tail, 16, 0 .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst, 16, 0, DST .endif .set SUBBLOCK, SUBBLOCK+1 .endr subs X, X, #pix_per_block bhs 110b.endm.macro wide_case_inner_loop_and_trailing_pixels process_head, process_tail, process_inner_loop, exit_label, unaligned_src, unaligned_mask .if dst_r_bpp > tst bne process_inner_loop DST_PRELOAD_BIAS endif preload_trailing SRC preload_trailing MASK DST endif add medium_case_inner_loop_and_trailing_pixels unaligned_mask endm macro medium_case_inner_loop_and_trailing_pixels DST endif subs bhs tst beq exit_label trailing_15bytes unaligned_mask endm macro narrow_case_inner_loop_and_trailing_pixels unaligned_mask tst conditional_process1 trailing_15bytes unaligned_mask endm macro switch_on_alignment exit_label if bne endif if bne endif action if endif if bne endif action if endif endif endm macro end_of_line last_one if vars_spilled word LINE_SAVED_REGS endif subs Y
#define fp
#define ROUND(x)
Definition: pnmnlfilt.c:322
#define Z
Definition: ppmforge.c:75
static int size
Definition: ppmlabel.c:24
int g
Definition: ppmqvga.c:68
int r
Definition: ppmqvga.c:68
bstring c int memset(void *s, int c, int length)
struct stream_s stream
Definition: pts_fax.h:93
#define flags
#define mask(n)
Definition: lbitlib.c:93
int verbose_level
Definition: dpxconf.h:35
Definition: utils.c:300
Definition: ffi.h:371
Definition: pdfdev.c:706
iccSig platform
Definition: pdfcolor.c:588
iccSig acsp
Definition: pdfcolor.c:587
iccSig PCS
Definition: pdfcolor.c:585
int32_t intent
Definition: pdfcolor.c:593
iccSig creator
Definition: pdfcolor.c:595
iccSig CMMType
Definition: pdfcolor.c:581
char devAttr[8]
Definition: pdfcolor.c:592
unsigned char ID[16]
Definition: pdfcolor.c:596
iccXYZNumber illuminant
Definition: pdfcolor.c:594
iccSig devMnfct
Definition: pdfcolor.c:590
int32_t version
Definition: pdfcolor.c:582
iccSig colorSpace
Definition: pdfcolor.c:584
char creationDate[12]
Definition: pdfcolor.c:586
iccSig devModel
Definition: pdfcolor.c:591
int size
Definition: pdfcolor.c:580
iccSig devClass
Definition: pdfcolor.c:583
char flags[4]
Definition: pdfcolor.c:589
int32_t Z
Definition: pdfcolor.c:575
int32_t X
Definition: pdfcolor.c:575
int32_t Y
Definition: pdfcolor.c:575
int32_t sig
Definition: pdfcolor.c:644
unsigned char checksum[16]
Definition: pdfcolor.c:646
double values[32]
Definition: pdfcolor.h:53
char * spot_color_name
Definition: pdfcolor.h:52
int type
Definition: pdfcolor.h:50
int num_components
Definition: pdfcolor.h:51
void * cdata
Definition: pdfcolor.c:1330
char * ident
Definition: pdfcolor.c:1324
pdf_obj * resource
Definition: pdfcolor.c:1327
pdf_obj * reference
Definition: pdfcolor.c:1328
Definition: pdfobj.c:63
#define FILE
Definition: t1stdio.h:34
*job_name strlen((char *) job_name) - 4)
m
Definition: tex4ht.c:3990
char ident[]
Definition: ttf2pk.c:40