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)  

cairo-pdf-interchange.c
Go to the documentation of this file.
1 /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
2 /* cairo - a vector graphics library with display and print output
3  *
4  * Copyright © 2016 Adrian Johnson
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it either under the terms of the GNU Lesser General Public
8  * License version 2.1 as published by the Free Software Foundation
9  * (the "LGPL") or, at your option, under the terms of the Mozilla
10  * Public License Version 1.1 (the "MPL"). If you do not alter this
11  * notice, a recipient may use your version of this file under either
12  * the MPL or the LGPL.
13  *
14  * You should have received a copy of the LGPL along with this library
15  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
17  * You should have received a copy of the MPL along with this library
18  * in the file COPYING-MPL-1.1
19  *
20  * The contents of this file are subject to the Mozilla Public License
21  * Version 1.1 (the "License"); you may not use this file except in
22  * compliance with the License. You may obtain a copy of the License at
23  * http://www.mozilla.org/MPL/
24  *
25  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
26  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
27  * the specific language governing rights and limitations.
28  *
29  * The Original Code is the cairo graphics library.
30  *
31  * The Initial Developer of the Original Code is Adrian Johnson.
32  *
33  * Contributor(s):
34  * Adrian Johnson <ajohnson@redneon.com>
35  */
36 
37 
38 /* PDF Document Interchange features:
39  * - metadata
40  * - document outline
41  * - tagged pdf
42  * - hyperlinks
43  * - page labels
44  */
45 
46 #define _DEFAULT_SOURCE /* for localtime_r(), gmtime_r(), snprintf(), strdup() */
47 #include "cairoint.h"
48 
49 #include "cairo-pdf.h"
51 
52 #include "cairo-array-private.h"
53 #include "cairo-error-private.h"
55 
56 #include <time.h>
57 
58 #ifndef HAVE_LOCALTIME_R
59 #define localtime_r(T, BUF) (*(BUF) = *localtime (T))
60 #endif
61 #ifndef HAVE_GMTIME_R
62 #define gmtime_r(T, BUF) (*(BUF) = *gmtime (T))
63 #endif
64 
65 static void
67  const cairo_rectangle_t *rect,
68  double surface_height)
69 {
71  "%f %f %f %f %f %f %f %f",
72  rect->x,
73  surface_height - rect->y,
74  rect->x + rect->width,
75  surface_height - rect->y,
76  rect->x + rect->width,
77  surface_height - (rect->y + rect->height),
78  rect->x,
79  surface_height - (rect->y + rect->height));
80 }
81 
82 static void
85  double surface_height)
86 {
88  "%d %f %d %f",
89  rect->x,
90  surface_height - (rect->y + rect->height),
91  rect->x + rect->width,
92  surface_height - rect->y);
93 }
94 
95 static cairo_int_status_t
98  const char *name,
100 {
102 
104  if (unlikely (node == NULL))
106 
107  node->name = strdup (name);
109  if (node->res.id == 0)
111 
112  node->parent = parent;
113  cairo_list_init (&node->children);
114  _cairo_array_init (&node->mcid, sizeof(struct page_mcid));
115  node->annot_res.id = 0;
116  node->extents.valid = FALSE;
117  cairo_list_init (&node->extents.link);
118 
119  cairo_list_add_tail (&node->link, &parent->children);
120 
121  *new_node = node;
122  return CAIRO_STATUS_SUCCESS;
123 }
124 
125 static cairo_bool_t
127 {
128  return node->parent && cairo_list_is_empty (&node->children) ;
129 }
130 
131 static void
133 {
135 
136  if (!node)
137  return;
138 
140  &node->children, link)
141  {
142  cairo_list_del (&child->link);
143  free_node (child);
144  }
145  free (node->name);
146  _cairo_array_fini (&node->mcid);
147  free (node);
148 }
149 
150 static cairo_status_t
153  int page,
154  int *mcid)
155 {
156  struct page_mcid mcid_elem;
158  cairo_pdf_interchange_t *ic = &surface->interchange;
159 
161  if (unlikely (status))
162  return status;
163 
164  mcid_elem.page = page;
165  mcid_elem.mcid = _cairo_array_num_elements (&ic->mcid_to_tree) - 1;
166  *mcid = mcid_elem.mcid;
167  return _cairo_array_append (&node->mcid, &mcid_elem);
168 }
169 
170 static cairo_int_status_t
173  const char *name,
174  const char *attributes)
175 {
177  cairo_pdf_interchange_t *ic = &surface->interchange;
178  cairo_pdf_annotation_t *annot;
179 
180  annot = malloc (sizeof(cairo_pdf_annotation_t));
181  if (unlikely (annot == NULL))
183 
184  status = _cairo_tag_parse_link_attributes (attributes, &annot->link_attrs);
185  if (unlikely (status)) {
186  free (annot);
187  return status;
188  }
189 
190  annot->node = node;
191 
192  status = _cairo_array_append (&ic->annots, &annot);
193 
194  return status;
195 }
196 
197 static void
199 {
201  free (annot->link_attrs.dest);
202  free (annot->link_attrs.uri);
203  free (annot->link_attrs.file);
204  free (annot);
205 }
206 
207 static void
209 {
210  cairo_pdf_interchange_t *ic = &surface->interchange;
211  int num_elems, i;
212 
213  num_elems = _cairo_array_num_elements (&ic->annots);
214  for (i = 0; i < num_elems; i++) {
215  cairo_pdf_annotation_t * annot;
216 
217  _cairo_array_copy_element (&ic->annots, i, &annot);
218  free_annotation (annot);
219  }
220  _cairo_array_truncate (&ic->annots, 0);
221 }
222 
223 static cairo_int_status_t
226 {
227  struct page_mcid *mcid_elem;
228  int i, num_mcid, first_page;
229  cairo_pdf_resource_t *page_res;
231 
234  "%d 0 obj\n"
235  "<< /Type /StructElem\n"
236  " /S /%s\n"
237  " /P %d 0 R\n",
238  node->res.id,
239  node->name,
240  node->parent->res.id);
241 
242  if (! cairo_list_is_empty (&node->children)) {
243  if (cairo_list_is_singular (&node->children) && node->annot_res.id == 0) {
245  _cairo_output_stream_printf (surface->output, " /K %d 0 R\n", child->res.id);
246  } else {
247  _cairo_output_stream_printf (surface->output, " /K [ ");
248  if (node->annot_res.id != 0) {
250  "<< /Type /OBJR /Obj %d 0 R >> ",
251  node->annot_res.id);
252  }
254  &node->children, link)
255  {
256  _cairo_output_stream_printf (surface->output, "%d 0 R ", child->res.id);
257  }
258  _cairo_output_stream_printf (surface->output, "]\n");
259  }
260  } else {
261  num_mcid = _cairo_array_num_elements (&node->mcid);
262  if (num_mcid > 0 ) {
263  mcid_elem = _cairo_array_index (&node->mcid, 0);
264  first_page = mcid_elem->page;
265  page_res = _cairo_array_index (&surface->pages, first_page - 1);
266  _cairo_output_stream_printf (surface->output, " /Pg %d 0 R\n", page_res->id);
267 
268  if (num_mcid == 1 && node->annot_res.id == 0) {
269  _cairo_output_stream_printf (surface->output, " /K %d\n", mcid_elem->mcid);
270  } else {
271  _cairo_output_stream_printf (surface->output, " /K [ ");
272  if (node->annot_res.id != 0) {
274  "<< /Type /OBJR /Obj %d 0 R >> ",
275  node->annot_res.id);
276  }
277  for (i = 0; i < num_mcid; i++) {
278  mcid_elem = _cairo_array_index (&node->mcid, i);
279  page_res = _cairo_array_index (&surface->pages, mcid_elem->page - 1);
280  if (mcid_elem->page == first_page) {
281  _cairo_output_stream_printf (surface->output, "%d ", mcid_elem->mcid);
282  } else {
284  "\n << /Type /MCR /Pg %d 0 R /MCID %d >> ",
285  page_res->id,
286  mcid_elem->mcid);
287  }
288  }
289  _cairo_output_stream_printf (surface->output, "]\n");
290  }
291  }
292  }
294  ">>\n"
295  "endobj\n");
296 
297  return _cairo_output_stream_get_status (surface->output);
298 }
299 
300 static void
302 {
304  dest->attrs.name,
305  strlen (dest->attrs.name));
306 }
307 
308 static cairo_bool_t
309 _named_dest_equal (const void *key_a, const void *key_b)
310 {
311  const cairo_pdf_named_dest_t *a = key_a;
312  const cairo_pdf_named_dest_t *b = key_b;
313 
314  return strcmp (a->attrs.name, b->attrs.name) == 0;
315 }
316 
317 static void
319 {
322 
324  free (dest->attrs.name);
325  free (dest);
326 }
327 
328 static cairo_int_status_t
330  int page,
331  cairo_bool_t has_pos,
332  double x,
333  double y)
334 {
336  double height;
337 
340 
341  _cairo_array_copy_element (&surface->page_heights, page - 1, &height);
342  _cairo_array_copy_element (&surface->pages, page - 1, &res);
343  if (has_pos) {
345  " /Dest [%d 0 R /XYZ %f %f 0]\n",
346  res.id,
347  x,
348  height - y);
349  } else {
351  " /Dest [%d 0 R /XYZ null null 0]\n",
352  res.id);
353  }
354 
355  return CAIRO_STATUS_SUCCESS;
356 }
357 
358 static cairo_int_status_t
360  cairo_link_attrs_t *link_attrs)
361 {
363  cairo_pdf_interchange_t *ic = &surface->interchange;
364  char *dest = NULL;
365 
366  if (link_attrs->dest) {
368  cairo_pdf_named_dest_t *named_dest;
369 
370  /* check if this is a link to an internal named dest */
371  key.attrs.name = link_attrs->dest;
373  named_dest = _cairo_hash_table_lookup (ic->named_dests, &key.base);
374  if (named_dest && named_dest->attrs.internal) {
375  /* if dests exists and has internal attribute, use a direct
376  * reference instead of the name */
377  double x = 0;
378  double y = 0;
379 
380  if (named_dest->extents.valid) {
381  x = named_dest->extents.extents.x;
382  y = named_dest->extents.extents.y;
383  }
384 
385  if (named_dest->attrs.x_valid)
386  x = named_dest->attrs.x;
387 
388  if (named_dest->attrs.y_valid)
389  y = named_dest->attrs.y;
390 
392  named_dest->page,
393  TRUE,
394  x, y);
395  return status;
396  }
397  }
398 
399  if (link_attrs->dest) {
400  status = _cairo_utf8_to_pdf_string (link_attrs->dest, &dest);
401  if (unlikely (status))
402  return status;
403 
405  " /Dest %s\n",
406  dest);
407  free (dest);
408  } else {
410  link_attrs->page,
411  link_attrs->has_pos,
412  link_attrs->pos.x,
413  link_attrs->pos.y);
414  }
415 
416  return CAIRO_STATUS_SUCCESS;
417 }
418 
419 static cairo_int_status_t
421  cairo_link_attrs_t *link_attrs)
422 {
424  char *dest = NULL;
425 
426  if (link_attrs->link_type == TAG_LINK_DEST) {
428  if (unlikely (status))
429  return status;
430 
431  } else if (link_attrs->link_type == TAG_LINK_URI) {
433  " /A <<\n"
434  " /Type /Action\n"
435  " /S /URI\n"
436  " /URI (%s)\n"
437  " >>\n",
438  link_attrs->uri);
439  } else if (link_attrs->link_type == TAG_LINK_FILE) {
441  " /A <<\n"
442  " /Type /Action\n"
443  " /S /GoToR\n"
444  " /F (%s)\n",
445  link_attrs->file);
446  if (link_attrs->dest) {
447  status = _cairo_utf8_to_pdf_string (link_attrs->dest, &dest);
448  if (unlikely (status))
449  return status;
450 
452  " /D %s\n",
453  dest);
454  free (dest);
455  } else {
456  if (link_attrs->has_pos) {
458  " /D [%d %f %f 0]\n",
459  link_attrs->page,
460  link_attrs->pos.x,
461  link_attrs->pos.y);
462  } else {
464  " /D [%d null null 0]\n",
465  link_attrs->page);
466  }
467  }
469  " >>\n");
470  }
471 
472  return CAIRO_STATUS_SUCCESS;
473 }
474 
475 static cairo_int_status_t
477  cairo_pdf_annotation_t *annot)
478 {
480  cairo_pdf_interchange_t *ic = &surface->interchange;
482  int sp;
483  int i, num_rects;
484  double height;
485 
486  num_rects = _cairo_array_num_elements (&annot->link_attrs.rects);
487  if (strcmp (node->name, CAIRO_TAG_LINK) == 0 &&
488  annot->link_attrs.link_type != TAG_LINK_EMPTY &&
489  (node->extents.valid || num_rects > 0))
490  {
491  status = _cairo_array_append (&ic->parent_tree, &node->res);
492  if (unlikely (status))
493  return status;
494 
496 
498 
499  status = _cairo_array_append (&surface->page_annots, &node->annot_res);
500  if (unlikely (status))
501  return status;
502 
505  "%d 0 obj\n"
506  "<< /Type /Annot\n"
507  " /Subtype /Link\n"
508  " /StructParent %d\n",
509  node->annot_res.id,
510  sp);
511 
512  height = surface->height;
513  if (num_rects > 0) {
514  cairo_rectangle_int_t bbox_rect;
515 
517  " /QuadPoints [ ");
518  for (i = 0; i < num_rects; i++) {
520  cairo_rectangle_int_t recti;
521 
524  if (i == 0)
525  bbox_rect = recti;
526  else
527  _cairo_rectangle_union (&bbox_rect, &recti);
528 
530  _cairo_output_stream_printf (surface->output, " ");
531  }
533  "]\n"
534  " /Rect [ ");
535  write_rect_int_to_pdf_bbox (surface->output, &bbox_rect, height);
536  _cairo_output_stream_printf (surface->output, " ]\n");
537  } else {
539  " /Rect [ ");
540  write_rect_int_to_pdf_bbox (surface->output, &node->extents.extents, height);
541  _cairo_output_stream_printf (surface->output, " ]\n");
542  }
543 
545  if (unlikely (status))
546  return status;
547 
549  " /BS << /W 0 >>"
550  ">>\n"
551  "endobj\n");
552 
554  }
555 
556  return status;
557 }
558 
559 static cairo_int_status_t
564 {
567 
568  if (node->parent) {
569  status = func (surface, node);
570  if (unlikely (status))
571  return status;
572  }
573 
575  &node->children, link)
576  {
578  if (unlikely (status))
579  return status;
580  }
581 
582  return CAIRO_STATUS_SUCCESS;
583 }
584 
585 static cairo_int_status_t
587 {
588  cairo_pdf_interchange_t *ic = &surface->interchange;
590 
592  return CAIRO_STATUS_SUCCESS;
593 
594  surface->struct_tree_root = _cairo_pdf_surface_new_object (surface);
595  ic->struct_root->res = surface->struct_tree_root;
596 
598 
600  _cairo_pdf_surface_update_object (surface, surface->struct_tree_root);
602  "%d 0 obj\n"
603  "<< /Type /StructTreeRoot\n"
604  " /ParentTree %d 0 R\n",
605  surface->struct_tree_root.id,
606  ic->parent_tree_res.id);
607 
610  _cairo_output_stream_printf (surface->output, " /K [ %d 0 R ]\n", child->res.id);
611  } else {
612  _cairo_output_stream_printf (surface->output, " /K [ ");
613 
615  &ic->struct_root->children, link)
616  {
617  _cairo_output_stream_printf (surface->output, "%d 0 R ", child->res.id);
618  }
619  _cairo_output_stream_printf (surface->output, "]\n");
620  }
621 
623  ">>\n"
624  "endobj\n");
625 
626  return CAIRO_STATUS_SUCCESS;
627 }
628 
629 static cairo_int_status_t
631 {
632  cairo_pdf_interchange_t *ic = &surface->interchange;
633  int num_elems, i;
635 
636  num_elems = _cairo_array_num_elements (&ic->annots);
637  for (i = 0; i < num_elems; i++) {
638  cairo_pdf_annotation_t * annot;
639 
640  _cairo_array_copy_element (&ic->annots, i, &annot);
642  if (unlikely (status))
643  return status;
644  }
645 
646  return status;
647 }
648 
649 static cairo_int_status_t
651 {
652  int num_elems, i;
655  cairo_pdf_interchange_t *ic = &surface->interchange;
657 
658  surface->page_parent_tree = -1;
659  num_elems = _cairo_array_num_elements (&ic->mcid_to_tree);
660  if (num_elems > 0) {
663  "%d 0 obj\n"
664  "[\n",
665  res.id);
666  for (i = 0; i < num_elems; i++) {
668  _cairo_output_stream_printf (surface->output, " %d 0 R\n", node->res.id);
669  }
671  "]\n"
672  "endobj\n");
674  surface->page_parent_tree = _cairo_array_num_elements (&ic->parent_tree) - 1;
675  }
676 
677  return status;
678 }
679 
680 static cairo_int_status_t
682 {
683  int num_elems, i;
685  cairo_pdf_interchange_t *ic = &surface->interchange;
686 
687  num_elems = _cairo_array_num_elements (&ic->parent_tree);
688  if (num_elems > 0) {
691  "%d 0 obj\n"
692  "<< /Nums [\n",
693  ic->parent_tree_res.id);
694  for (i = 0; i < num_elems; i++) {
696  if (res->id) {
698  " %d %d 0 R\n",
699  i,
700  res->id);
701  }
702  }
704  " ]\n"
705  ">>\n"
706  "endobj\n");
707  }
708 
709  return CAIRO_STATUS_SUCCESS;
710 }
711 
712 static cairo_int_status_t
714 {
715  int num_elems, i;
717  cairo_pdf_interchange_t *ic = &surface->interchange;
719  char *name = NULL;
720 
721  num_elems = _cairo_array_num_elements (&ic->outline);
722  if (num_elems < 2)
724 
727  surface->outlines_dict_res = outline->res;
729  "%d 0 obj\n"
730  "<< /Type /Outlines\n"
731  " /First %d 0 R\n"
732  " /Last %d 0 R\n"
733  " /Count %d\n"
734  ">>\n"
735  "endobj\n",
736  outline->res.id,
737  outline->first_child->res.id,
738  outline->last_child->res.id,
739  outline->count);
740 
741  for (i = 1; i < num_elems; i++) {
744 
746  if (unlikely (status))
747  return status;
748 
750  "%d 0 obj\n"
751  "<< /Title %s\n"
752  " /Parent %d 0 R\n",
753  outline->res.id,
754  name,
755  outline->parent->res.id);
756  free (name);
757 
758  if (outline->prev) {
760  " /Prev %d 0 R\n",
761  outline->prev->res.id);
762  }
763 
764  if (outline->next) {
766  " /Next %d 0 R\n",
767  outline->next->res.id);
768  }
769 
770  if (outline->first_child) {
772  " /First %d 0 R\n"
773  " /Last %d 0 R\n"
774  " /Count %d\n",
775  outline->first_child->res.id,
776  outline->last_child->res.id,
777  outline->count);
778  }
779 
780  if (outline->flags) {
781  int flags = 0;
783  flags |= 1;
785  flags |= 2;
787  " /F %d\n",
788  flags);
789  }
790 
792  if (unlikely (status))
793  return status;
794 
796  ">>\n"
797  "endobj\n");
798  }
799 
800  return status;
801 }
802 
803 /*
804  * Split a page label into a text prefix and numeric suffix. Leading '0's are
805  * included in the prefix. eg
806  * "3" => NULL, 3
807  * "cover" => "cover", 0
808  * "A-2" => "A-", 2
809  * "A-002" => "A-00", 2
810  */
811 static char *
812 split_label (const char* label, int *num)
813 {
814  int len, i;
815 
816  *num = 0;
817  len = strlen (label);
818  if (len == 0)
819  return NULL;
820 
821  i = len;
822  while (i > 0 && _cairo_isdigit (label[i-1]))
823  i--;
824 
825  while (i < len && label[i] == '0')
826  i++;
827 
828  if (i < len)
829  sscanf (label + i, "%d", num);
830 
831  if (i > 0) {
832  char *s;
833  s = _cairo_malloc (i + 1);
834  if (!s)
835  return NULL;
836 
837  memcpy (s, label, i);
838  s[i] = 0;
839  return s;
840  }
841 
842  return NULL;
843 }
844 
845 /* strcmp that handles NULL arguments */
846 static cairo_bool_t
847 strcmp_null (const char *s1, const char *s2)
848 {
849  if (s1 && s2)
850  return strcmp (s1, s2) == 0;
851 
852  if (!s1 && !s2)
853  return TRUE;
854 
855  return FALSE;
856 }
857 
858 static cairo_int_status_t
860 {
861  int num_elems, i;
862  char *label;
863  char *prefix;
864  char *prev_prefix;
865  int num, prev_num;
867  cairo_bool_t has_labels;
868 
869  /* Check if any labels defined */
870  num_elems = _cairo_array_num_elements (&surface->page_labels);
871  has_labels = FALSE;
872  for (i = 0; i < num_elems; i++) {
873  _cairo_array_copy_element (&surface->page_labels, i, &label);
874  if (label) {
875  has_labels = TRUE;
876  break;
877  }
878  }
879 
880  if (!has_labels)
881  return CAIRO_STATUS_SUCCESS;
882 
883  surface->page_labels_res = _cairo_pdf_surface_new_object (surface);
885  "%d 0 obj\n"
886  "<< /Nums [\n",
887  surface->page_labels_res.id);
888  prefix = NULL;
889  prev_prefix = NULL;
890  num = 0;
891  prev_num = 0;
892  for (i = 0; i < num_elems; i++) {
893  _cairo_array_copy_element (&surface->page_labels, i, &label);
894  if (label) {
895  prefix = split_label (label, &num);
896  } else {
897  prefix = NULL;
898  num = i + 1;
899  }
900 
901  if (!strcmp_null (prefix, prev_prefix) || num != prev_num + 1) {
902  _cairo_output_stream_printf (surface->output, " %d << ", i);
903 
904  if (num)
905  _cairo_output_stream_printf (surface->output, "/S /D /St %d ", num);
906 
907  if (prefix) {
908  char *s;
910  if (unlikely (status))
911  return status;
912 
913  _cairo_output_stream_printf (surface->output, "/P %s ", s);
914  free (s);
915  }
916 
917  _cairo_output_stream_printf (surface->output, ">>\n");
918  }
919  free (prev_prefix);
920  prev_prefix = prefix;
921  prefix = NULL;
922  prev_num = num;
923  }
924  free (prefix);
925  free (prev_prefix);
927  " ]\n"
928  ">>\n"
929  "endobj\n");
930 
931  return CAIRO_STATUS_SUCCESS;
932 }
933 
934 static void
936 {
939  cairo_pdf_interchange_t *ic = &surface->interchange;
940 
941  ic->sorted_dests[ic->num_dests++] = dest;
942 }
943 
944 static int
945 _dest_compare (const void *a, const void *b)
946 {
947  const cairo_pdf_named_dest_t * const *dest_a = a;
948  const cairo_pdf_named_dest_t * const *dest_b = b;
949 
950  return strcmp ((*dest_a)->attrs.name, (*dest_b)->attrs.name);
951 }
952 
953 static cairo_int_status_t
955 {
956  int i;
957  cairo_pdf_interchange_t *ic = &surface->interchange;
958 
959  if (ic->num_dests == 0) {
960  ic->dests_res.id = 0;
961  return CAIRO_STATUS_SUCCESS;
962  }
963 
965  if (unlikely (ic->sorted_dests == NULL))
967 
968  ic->num_dests = 0;
971 
974  "%d 0 obj\n"
975  "<< /Names [\n",
976  ic->dests_res.id);
977  for (i = 0; i < ic->num_dests; i++) {
979  cairo_pdf_resource_t page_res;
980  double x = 0;
981  double y = 0;
982  double height;
983 
984  if (dest->attrs.internal)
985  continue;
986 
987  if (dest->extents.valid) {
988  x = dest->extents.extents.x;
989  y = dest->extents.extents.y;
990  }
991 
992  if (dest->attrs.x_valid)
993  x = dest->attrs.x;
994 
995  if (dest->attrs.y_valid)
996  y = dest->attrs.y;
997 
998  _cairo_array_copy_element (&surface->pages, dest->page - 1, &page_res);
999  _cairo_array_copy_element (&surface->page_heights, dest->page - 1, &height);
1001  " (%s) [%d 0 R /XYZ %f %f 0]\n",
1002  dest->attrs.name,
1003  page_res.id,
1004  x,
1005  height - y);
1006  }
1008  " ]\n"
1009  ">>\n"
1010  "endobj\n");
1011 
1012  return CAIRO_STATUS_SUCCESS;
1013 }
1014 
1015 static cairo_int_status_t
1017 {
1018  cairo_pdf_interchange_t *ic = &surface->interchange;
1020 
1022  if (unlikely (status))
1023  return status;
1024 
1025  surface->names_dict_res.id = 0;
1026  if (ic->dests_res.id != 0) {
1027  surface->names_dict_res = _cairo_pdf_surface_new_object (surface);
1029  "%d 0 obj\n"
1030  "<< /Dests %d 0 R >>\n"
1031  "endobj\n",
1032  surface->names_dict_res.id,
1033  ic->dests_res.id);
1034  }
1035 
1036  return CAIRO_STATUS_SUCCESS;
1037 }
1038 
1039 static cairo_int_status_t
1041 {
1042  cairo_pdf_interchange_t *ic = &surface->interchange;
1043 
1045  if (surface->docinfo_res.id == 0)
1047 
1049  "%d 0 obj\n"
1050  "<< /Producer (cairo %s (https://cairographics.org))\n",
1051  surface->docinfo_res.id,
1053 
1054  if (ic->docinfo.title)
1055  _cairo_output_stream_printf (surface->output, " /Title %s\n", ic->docinfo.title);
1056 
1057  if (ic->docinfo.author)
1058  _cairo_output_stream_printf (surface->output, " /Author %s\n", ic->docinfo.author);
1059 
1060  if (ic->docinfo.subject)
1061  _cairo_output_stream_printf (surface->output, " /Subject %s\n", ic->docinfo.subject);
1062 
1063  if (ic->docinfo.keywords)
1064  _cairo_output_stream_printf (surface->output, " /Keywords %s\n", ic->docinfo.keywords);
1065 
1066  if (ic->docinfo.creator)
1067  _cairo_output_stream_printf (surface->output, " /Creator %s\n", ic->docinfo.creator);
1068 
1069  if (ic->docinfo.create_date)
1070  _cairo_output_stream_printf (surface->output, " /CreationDate %s\n", ic->docinfo.create_date);
1071 
1072  if (ic->docinfo.mod_date)
1073  _cairo_output_stream_printf (surface->output, " /ModDate %s\n", ic->docinfo.mod_date);
1074 
1076  ">>\n"
1077  "endobj\n");
1078 
1079  return CAIRO_STATUS_SUCCESS;
1080 }
1081 
1082 static cairo_int_status_t
1084  cairo_tag_type_t tag_type,
1085  const char *name,
1086  const char *attributes)
1087 {
1088  int page_num, mcid;
1090  cairo_pdf_interchange_t *ic = &surface->interchange;
1091 
1092  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1094  if (unlikely (status))
1095  return status;
1096 
1098 
1099  if (tag_type & TAG_TYPE_LINK) {
1100  status = add_annotation (surface, ic->current_node, name, attributes);
1101  if (unlikely (status))
1102  return status;
1103 
1105  }
1106 
1107  } else if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER) {
1109  assert (ic->current_node != NULL);
1110  if (is_leaf_node (ic->current_node)) {
1111  page_num = _cairo_array_num_elements (&surface->pages);
1112  add_mcid_to_node (surface, ic->current_node, page_num, &mcid);
1113  status = _cairo_pdf_operators_tag_begin (&surface->pdf_operators, name, mcid);
1114  }
1115  }
1116 
1117  return status;
1118 }
1119 
1120 static cairo_int_status_t
1122  cairo_tag_type_t tag_type,
1123  const char *name,
1124  const char *attributes)
1125 {
1127  cairo_pdf_interchange_t *ic = &surface->interchange;
1129 
1130  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1131  dest = calloc (1, sizeof (cairo_pdf_named_dest_t));
1132  if (unlikely (dest == NULL))
1134 
1135  status = _cairo_tag_parse_dest_attributes (attributes, &dest->attrs);
1136  if (unlikely (status))
1137  return status;
1138 
1139  dest->page = _cairo_array_num_elements (&surface->pages);
1142  if (unlikely (status))
1143  return status;
1144 
1146  cairo_list_add_tail (&dest->extents.link, &ic->extents_list);
1147  ic->num_dests++;
1148  }
1149 
1150  return status;
1151 }
1152 
1155  const char *name,
1156  const char *attributes)
1157 {
1159  cairo_tag_type_t tag_type;
1160  cairo_pdf_interchange_t *ic = &surface->interchange;
1161  void *ptr;
1162 
1163  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1164  status = _cairo_tag_stack_push (&ic->analysis_tag_stack, name, attributes);
1165 
1166  } else if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER) {
1167  status = _cairo_tag_stack_push (&ic->render_tag_stack, name, attributes);
1170  }
1171 
1172  if (unlikely (status))
1173  return status;
1174 
1175  tag_type = _cairo_tag_get_type (name);
1176  if (tag_type & TAG_TYPE_STRUCTURE) {
1178  if (unlikely (status))
1179  return status;
1180  }
1181 
1182  if (tag_type & TAG_TYPE_DEST) {
1183  status = _cairo_pdf_interchange_begin_dest_tag (surface, tag_type, name, attributes);
1184  if (unlikely (status))
1185  return status;
1186  }
1187 
1188  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1191  }
1192 
1193  return status;
1194 }
1195 
1196 static cairo_int_status_t
1198  cairo_tag_type_t tag_type,
1199  cairo_tag_stack_elem_t *elem)
1200 {
1202  struct tag_extents *tag, *next;
1203  cairo_pdf_interchange_t *ic = &surface->interchange;
1205 
1206  assert (elem->data != NULL);
1207  node = elem->data;
1208  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1209  if (tag_type & TAG_TYPE_LINK) {
1211  &ic->extents_list, link) {
1212  if (tag == &node->extents) {
1213  cairo_list_del (&tag->link);
1214  break;
1215  }
1216  }
1217  }
1218  } else if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER) {
1219  if (is_leaf_node (ic->current_node)) {
1220  status = _cairo_pdf_operators_tag_end (&surface->pdf_operators);
1221  if (unlikely (status))
1222  return status;
1223  }
1224  }
1225 
1226  ic->current_node = ic->current_node->parent;
1227  assert (ic->current_node != NULL);
1228 
1229  return status;
1230 }
1231 
1232 static cairo_int_status_t
1234  cairo_tag_type_t tag_type,
1235  cairo_tag_stack_elem_t *elem)
1236 {
1237  struct tag_extents *tag, *next;
1239  cairo_pdf_interchange_t *ic = &surface->interchange;
1240 
1241  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1242  assert (elem->data != NULL);
1243  dest = (cairo_pdf_named_dest_t *) elem->data;
1245  &ic->extents_list, link) {
1246  if (tag == &dest->extents) {
1247  cairo_list_del (&tag->link);
1248  break;
1249  }
1250  }
1251  }
1252 
1253  return CAIRO_STATUS_SUCCESS;
1254 }
1255 
1258  const char *name)
1259 {
1261  cairo_pdf_interchange_t *ic = &surface->interchange;
1262  cairo_tag_type_t tag_type;
1263  cairo_tag_stack_elem_t *elem;
1264 
1265  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE)
1267  else if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER)
1269 
1270  if (unlikely (status))
1271  return status;
1272 
1273  tag_type = _cairo_tag_get_type (name);
1274  if (tag_type & TAG_TYPE_STRUCTURE) {
1276  if (unlikely (status))
1277  goto cleanup;
1278  }
1279 
1280  if (tag_type & TAG_TYPE_DEST) {
1282  if (unlikely (status))
1283  goto cleanup;
1284  }
1285 
1286  cleanup:
1288 
1289  return status;
1290 }
1291 
1295 {
1296  cairo_pdf_interchange_t *ic = &surface->interchange;
1297  struct tag_extents *tag;
1298 
1299  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1301  if (tag->valid) {
1302  _cairo_rectangle_union (&tag->extents, extents);
1303  } else {
1304  tag->extents = *extents;
1305  tag->valid = TRUE;
1306  }
1307  }
1308  }
1309 
1310  return CAIRO_STATUS_SUCCESS;
1311 }
1312 
1315 {
1316  cairo_pdf_interchange_t *ic = &surface->interchange;
1318  int page_num, mcid;
1319 
1320  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE) {
1322  _cairo_array_truncate (&ic->push_data, 0);
1323  ic->begin_page_node = ic->current_node;
1324  } else if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER) {
1325  ic->push_data_index = 0;
1326  ic->current_node = ic->begin_page_node;
1327  if (ic->end_page_node && is_leaf_node (ic->end_page_node)) {
1328  page_num = _cairo_array_num_elements (&surface->pages);
1329  add_mcid_to_node (surface, ic->end_page_node, page_num, &mcid);
1330  status = _cairo_pdf_operators_tag_begin (&surface->pdf_operators,
1331  ic->end_page_node->name,
1332  mcid);
1333  }
1334  }
1335 
1336  return status;
1337 }
1338 
1341 {
1342  cairo_pdf_interchange_t *ic = &surface->interchange;
1344 
1345  if (surface->paginated_mode == CAIRO_PAGINATED_MODE_RENDER) {
1346  ic->end_page_node = ic->current_node;
1347  if (is_leaf_node (ic->current_node))
1348  status = _cairo_pdf_operators_tag_end (&surface->pdf_operators);
1349  }
1350 
1351  return status;
1352 }
1353 
1356 {
1358 
1360  if (unlikely (status))
1361  return status;
1362 
1364 
1366 }
1367 
1370 {
1371  cairo_pdf_interchange_t *ic = &surface->interchange;
1374 
1376  if (tag_type == TAG_TREE_TYPE_TAGGED || tag_type == TAG_TREE_TYPE_STRUCTURE) {
1377 
1379  if (unlikely (status))
1380  return status;
1381 
1383  if (unlikely (status))
1384  return status;
1385 
1386  if (tag_type == TAG_TREE_TYPE_TAGGED)
1387  surface->tagged = TRUE;
1388  }
1389 
1391  if (unlikely (status))
1392  return status;
1393 
1395  if (unlikely (status))
1396  return status;
1397 
1399  if (unlikely (status))
1400  return status;
1401 
1403 
1404  return status;
1405 }
1406 
1407 static void
1409 {
1410  time_t utc, local, offset;
1411  struct tm tm_local, tm_utc;
1412  char buf[50];
1413  int buf_size;
1414  char *p;
1415  cairo_pdf_interchange_t *ic = &surface->interchange;
1416 
1417  utc = time (NULL);
1418  localtime_r (&utc, &tm_local);
1419  strftime (buf, sizeof(buf), "(D:%Y%m%d%H%M%S", &tm_local);
1420 
1421  /* strftime "%z" is non standard and does not work on windows (it prints zone name, not offset).
1422  * Calculate time zone offset by comparing local and utc time_t values for the same time.
1423  */
1424  gmtime_r (&utc, &tm_utc);
1425  tm_utc.tm_isdst = tm_local.tm_isdst;
1426  local = mktime (&tm_utc);
1427  offset = difftime (utc, local);
1428 
1429  if (offset == 0) {
1430  strcat (buf, "Z");
1431  } else {
1432  if (offset > 0) {
1433  strcat (buf, "+");
1434  } else {
1435  strcat (buf, "-");
1436  offset = -offset;
1437  }
1438  p = buf + strlen (buf);
1439  buf_size = sizeof (buf) - strlen (buf);
1440  snprintf (p, buf_size, "%02d'%02d", (int)(offset/3600), (int)(offset%3600)/60);
1441  }
1442  strcat (buf, ")");
1443  ic->docinfo.create_date = strdup (buf);
1444 }
1445 
1448 {
1449  cairo_pdf_interchange_t *ic = &surface->interchange;
1450  cairo_pdf_outline_entry_t *outline_root;
1452 
1455  _cairo_array_init (&ic->push_data, sizeof(void *));
1456  ic->struct_root = calloc (1, sizeof(cairo_pdf_struct_tree_node_t));
1457  if (unlikely (ic->struct_root == NULL))
1459 
1461  _cairo_array_init (&ic->struct_root->mcid, sizeof(struct page_mcid));
1462  ic->current_node = ic->struct_root;
1463  ic->begin_page_node = NULL;
1464  ic->end_page_node = NULL;
1468  ic->parent_tree_res.id = 0;
1471  if (unlikely (ic->named_dests == NULL))
1473 
1474  ic->num_dests = 0;
1475  ic->sorted_dests = NULL;
1476  ic->dests_res.id = 0;
1477 
1479  outline_root = calloc (1, sizeof(cairo_pdf_outline_entry_t));
1480  if (unlikely (outline_root == NULL))
1482 
1483  memset (&ic->docinfo, 0, sizeof (ic->docinfo));
1485  status = _cairo_array_append (&ic->outline, &outline_root);
1486 
1487  return status;
1488 }
1489 
1490 static void
1492 {
1493  cairo_pdf_interchange_t *ic = &surface->interchange;
1494  int num_elems, i;
1495 
1496  num_elems = _cairo_array_num_elements (&ic->outline);
1497  for (i = 0; i < num_elems; i++) {
1499 
1501  free (outline->name);
1502  free (outline->link_attrs.dest);
1503  free (outline->link_attrs.uri);
1504  free (outline->link_attrs.file);
1505  free (outline);
1506  }
1507  _cairo_array_fini (&ic->outline);
1508 }
1509 
1512 {
1513  cairo_pdf_interchange_t *ic = &surface->interchange;
1514 
1518  free_node (ic->struct_root);
1521  _cairo_array_fini (&ic->annots);
1525  free (ic->sorted_dests);
1527  free (ic->docinfo.title);
1528  free (ic->docinfo.author);
1529  free (ic->docinfo.subject);
1530  free (ic->docinfo.keywords);
1531  free (ic->docinfo.creator);
1532  free (ic->docinfo.create_date);
1533  free (ic->docinfo.mod_date);
1534 
1535  return CAIRO_STATUS_SUCCESS;
1536 }
1537 
1540  int parent_id,
1541  const char *name,
1542  const char *link_attribs,
1544  int *id)
1545 {
1546  cairo_pdf_interchange_t *ic = &surface->interchange;
1550 
1551  if (parent_id < 0 || parent_id >= (int)_cairo_array_num_elements (&ic->outline))
1552  return CAIRO_STATUS_SUCCESS;
1553 
1555  if (unlikely (outline == NULL))
1557 
1558  status = _cairo_tag_parse_link_attributes (link_attribs, &outline->link_attrs);
1559  if (unlikely (status)) {
1560  free (outline);
1561  return status;
1562  }
1563 
1565  if (outline->res.id == 0)
1567 
1568  outline->name = strdup (name);
1569  outline->flags = flags;
1570  outline->count = 0;
1571 
1572  _cairo_array_copy_element (&ic->outline, parent_id, &parent);
1573 
1574  outline->parent = parent;
1575  outline->first_child = NULL;
1576  outline->last_child = NULL;
1577  outline->next = NULL;
1578  if (parent->last_child) {
1579  parent->last_child->next = outline;
1580  outline->prev = parent->last_child;
1581  parent->last_child = outline;
1582  } else {
1583  parent->first_child = outline;
1584  parent->last_child = outline;
1585  outline->prev = NULL;
1586  }
1587 
1588  *id = _cairo_array_num_elements (&ic->outline);
1590  if (unlikely (status))
1591  return status;
1592 
1593  /* Update Count */
1594  outline = outline->parent;
1595  while (outline) {
1597  outline->count++;
1598  } else {
1599  outline->count--;
1600  break;
1601  }
1602  outline = outline->parent;
1603  }
1604 
1605  return CAIRO_STATUS_SUCCESS;
1606 }
1607 
1608 /*
1609  * Date must be in the following format:
1610  *
1611  * YYYY-MM-DDThh:mm:ss[Z+-]hh:mm
1612  *
1613  * Only the year is required. If a field is included all preceding
1614  * fields must be included.
1615  */
1616 static char *
1618 {
1619  char buf[40];
1620  const char *p;
1621  int i;
1622 
1623  /* Check that utf8 contains only the characters "0123456789-T:Z+" */
1624  p = iso;
1625  while (*p) {
1626  if (!_cairo_isdigit (*p) && *p != '-' && *p != 'T' &&
1627  *p != ':' && *p != 'Z' && *p != '+')
1628  return NULL;
1629  p++;
1630  }
1631 
1632  p = iso;
1633  strcpy (buf, "(");
1634 
1635  /* YYYY (required) */
1636  if (strlen (p) < 4)
1637  return NULL;
1638 
1639  strncat (buf, p, 4);
1640  p += 4;
1641 
1642  /* -MM, -DD, Thh, :mm, :ss */
1643  for (i = 0; i < 5; i++) {
1644  if (strlen (p) < 3)
1645  goto finish;
1646 
1647  strncat (buf, p + 1, 2);
1648  p += 3;
1649  }
1650 
1651  /* Z, +, - */
1652  if (strlen (p) < 1)
1653  goto finish;
1654  strncat (buf, p, 1);
1655  p += 1;
1656 
1657  /* hh */
1658  if (strlen (p) < 2)
1659  goto finish;
1660 
1661  strncat (buf, p, 2);
1662  strcat (buf, "'");
1663  p += 2;
1664 
1665  /* :mm */
1666  if (strlen (p) < 3)
1667  goto finish;
1668 
1669  strncat (buf, p + 1, 3);
1670 
1671  finish:
1672  strcat (buf, ")");
1673  return strdup (buf);
1674 }
1675 
1679  const char *utf8)
1680 {
1681  cairo_pdf_interchange_t *ic = &surface->interchange;
1683  char *s = NULL;
1684 
1685  if (utf8) {
1689  } else {
1691  if (unlikely (status))
1692  return status;
1693  }
1694  }
1695 
1696  switch (metadata) {
1698  free (ic->docinfo.title);
1699  ic->docinfo.title = s;
1700  break;
1702  free (ic->docinfo.author);
1703  ic->docinfo.author = s;
1704  break;
1706  free (ic->docinfo.subject);
1707  ic->docinfo.subject = s;
1708  break;
1710  free (ic->docinfo.keywords);
1711  ic->docinfo.keywords = s;
1712  break;
1714  free (ic->docinfo.creator);
1715  ic->docinfo.creator = s;
1716  break;
1718  free (ic->docinfo.create_date);
1719  ic->docinfo.create_date = s;
1720  break;
1722  free (ic->docinfo.mod_date);
1723  ic->docinfo.mod_date = s;
1724  break;
1725  }
1726 
1727  return CAIRO_STATUS_SUCCESS;
1728 }
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 strdup
Definition: Utility.h:167
#define name
#define height(a)
Definition: aptex-macros.h:200
#define next(a)
Definition: aptex-macros.h:924
void _cairo_array_fini(cairo_array_t *array)
Definition: cairo-array.c:75
unsigned int _cairo_array_num_elements(const cairo_array_t *array)
Definition: cairo-array.c:338
void * _cairo_array_index(cairo_array_t *array, unsigned int index)
Definition: cairo-array.c:166
void _cairo_array_truncate(cairo_array_t *array, unsigned int num_elements)
Definition: cairo-array.c:137
void _cairo_array_copy_element(const cairo_array_t *array, unsigned int index, void *dst)
Definition: cairo-array.c:239
void _cairo_array_init(cairo_array_t *array, unsigned int element_size)
Definition: cairo-array.c:58
cairo_status_t _cairo_array_append(cairo_array_t *array, const void *element)
Definition: cairo-array.c:262
#define CAIRO_INT_STATUS_SUCCESS
unsigned long _cairo_hash_bytes(unsigned long hash, const void *ptr, unsigned int length)
Definition: cairo-cache.c:329
cairo_status_t _cairo_error(cairo_status_t status)
Definition: cairo-error.c:65
enum _cairo_int_status cairo_int_status_t
@ CAIRO_INT_STATUS_TAG_ERROR
cairo_status_t _cairo_hash_table_insert(cairo_hash_table_t *hash_table, cairo_hash_entry_t *entry)
Definition: cairo-hash.c:455
void _cairo_hash_table_remove(cairo_hash_table_t *hash_table, cairo_hash_entry_t *key)
Definition: cairo-hash.c:520
void _cairo_hash_table_destroy(cairo_hash_table_t *hash_table)
Definition: cairo-hash.c:214
cairo_hash_table_t * _cairo_hash_table_create(cairo_hash_keys_equal_func_t keys_equal)
Definition: cairo-hash.c:163
void * _cairo_hash_table_lookup(cairo_hash_table_t *hash_table, cairo_hash_entry_t *key)
Definition: cairo-hash.c:338
void _cairo_hash_table_foreach(cairo_hash_table_t *hash_table, cairo_hash_callback_func_t hash_callback, void *closure)
Definition: cairo-hash.c:555
#define cairo_list_first_entry(ptr, type, member)
static cairo_bool_t cairo_list_is_empty(const cairo_list_t *head)
static cairo_bool_t cairo_list_is_singular(const cairo_list_t *head)
#define cairo_list_foreach_entry(pos, type, head, member)
static void cairo_list_init(cairo_list_t *entry)
#define cairo_list_foreach_entry_safe(pos, n, type, head, member)
static void cairo_list_del(cairo_list_t *entry)
static void cairo_list_add_tail(cairo_list_t *entry, cairo_list_t *head)
#define _cairo_malloc(size)
cairo_status_t _cairo_output_stream_get_status(cairo_output_stream_t *stream)
void _cairo_output_stream_printf(cairo_output_stream_t *stream, const char *fmt,...)
cairo_int_status_t _cairo_pdf_interchange_write_page_objects(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_end_page_content(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_set_metadata(cairo_pdf_surface_t *surface, cairo_pdf_metadata_t metadata, const char *utf8)
cairo_int_status_t _cairo_pdf_interchange_add_operation_extents(cairo_pdf_surface_t *surface, const cairo_rectangle_int_t *extents)
cairo_int_status_t _cairo_pdf_interchange_tag_begin(cairo_pdf_surface_t *surface, const char *name, const char *attributes)
cairo_int_status_t _cairo_pdf_interchange_write_document_objects(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_begin_page_content(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_add_outline(cairo_pdf_surface_t *surface, int parent_id, const char *name, const char *link_attribs, cairo_pdf_outline_flags_t flags, int *id)
cairo_int_status_t _cairo_pdf_interchange_init(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_fini(cairo_pdf_surface_t *surface)
cairo_int_status_t _cairo_pdf_interchange_tag_end(cairo_pdf_surface_t *surface, const char *name)
cairo_int_status_t _cairo_pdf_operators_tag_begin(cairo_pdf_operators_t *pdf_operators, const char *tag_name, int mcid)
cairo_int_status_t _cairo_pdf_operators_tag_end(cairo_pdf_operators_t *pdf_operators)
cairo_int_status_t _cairo_utf8_to_pdf_string(const char *utf8, char **str_out)
cairo_pdf_resource_t _cairo_pdf_surface_new_object(cairo_pdf_surface_t *surface)
void _cairo_pdf_surface_update_object(cairo_pdf_surface_t *surface, cairo_pdf_resource_t resource)
enum _cairo_pdf_outline_flags cairo_pdf_outline_flags_t
enum _cairo_pdf_metadata cairo_pdf_metadata_t
@ CAIRO_PDF_OUTLINE_FLAG_ITALIC
Definition: cairo-pdf.h:104
@ CAIRO_PDF_OUTLINE_FLAG_BOLD
Definition: cairo-pdf.h:103
@ CAIRO_PDF_OUTLINE_FLAG_OPEN
Definition: cairo-pdf.h:102
@ CAIRO_PDF_METADATA_SUBJECT
Definition: cairo-pdf.h:134
@ CAIRO_PDF_METADATA_CREATOR
Definition: cairo-pdf.h:136
@ CAIRO_PDF_METADATA_AUTHOR
Definition: cairo-pdf.h:133
@ CAIRO_PDF_METADATA_KEYWORDS
Definition: cairo-pdf.h:135
@ CAIRO_PDF_METADATA_TITLE
Definition: cairo-pdf.h:132
@ CAIRO_PDF_METADATA_CREATE_DATE
Definition: cairo-pdf.h:137
@ CAIRO_PDF_METADATA_MOD_DATE
Definition: cairo-pdf.h:138
void _cairo_rectangle_union(cairo_rectangle_int_t *dst, const cairo_rectangle_int_t *src)
void _cairo_rectangle_int_from_double(cairo_rectangle_int_t *recti, const cairo_rectangle_t *rectf)
cairo_int_status_t _cairo_tag_parse_link_attributes(const char *attributes, cairo_link_attrs_t *link_attrs)
cairo_int_status_t _cairo_tag_parse_dest_attributes(const char *attributes, cairo_dest_attrs_t *dest_attrs)
void _cairo_tag_stack_set_top_data(cairo_tag_stack_t *stack, void *data)
@ TAG_TYPE_STRUCTURE
cairo_int_status_t _cairo_tag_stack_push(cairo_tag_stack_t *stack, const char *name, const char *attributes)
void _cairo_tag_stack_fini(cairo_tag_stack_t *stack)
void _cairo_tag_stack_init(cairo_tag_stack_t *stack)
enum _cairo_tag_stack_structure_type cairo_tag_stack_structure_type_t
cairo_tag_stack_structure_type_t _cairo_tag_stack_get_structure_type(cairo_tag_stack_t *stack)
cairo_tag_stack_elem_t * _cairo_tag_stack_top_elem(cairo_tag_stack_t *stack)
cairo_int_status_t _cairo_tag_stack_pop(cairo_tag_stack_t *stack, const char *name, cairo_tag_stack_elem_t **elem)
cairo_tag_type_t _cairo_tag_get_type(const char *name)
void _cairo_tag_stack_free_elem(cairo_tag_stack_elem_t *elem)
@ TAG_TREE_TYPE_STRUCTURE
@ TAG_TREE_TYPE_TAGGED
@ CAIRO_PAGINATED_MODE_ANALYZE
@ CAIRO_PAGINATED_MODE_RENDER
const char * cairo_version_string(void)
int cairo_bool_t
Definition: cairo.h:107
@ CAIRO_STATUS_SUCCESS
Definition: cairo.h:315
@ CAIRO_STATUS_NO_MEMORY
Definition: cairo.h:317
enum _cairo_status cairo_status_t
#define CAIRO_TAG_LINK
Definition: cairo.h:1032
static int _cairo_isdigit(int c)
Definition: cairoint.h:286
#define _CAIRO_HASH_INIT_VALUE
Definition: cairoint.h:421
static cairo_bool_t _named_dest_equal(const void *key_a, const void *key_b)
static char * split_label(const char *label, int *num)
static cairo_int_status_t cairo_pdf_interchange_write_outline(cairo_pdf_surface_t *surface)
static void _named_dest_pluck(void *entry, void *closure)
static cairo_int_status_t _cairo_pdf_interchange_begin_dest_tag(cairo_pdf_surface_t *surface, cairo_tag_type_t tag_type, const char *name, const char *attributes)
static cairo_int_status_t cairo_pdf_interchange_write_annot(cairo_pdf_surface_t *surface, cairo_pdf_annotation_t *annot)
static char * iso8601_to_pdf_date_string(const char *iso)
static cairo_int_status_t cairo_pdf_interchange_write_page_parent_elems(cairo_pdf_surface_t *surface)
static void _cairo_pdf_interchange_free_outlines(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_write_page_annots(cairo_pdf_surface_t *surface)
static cairo_int_status_t _cairo_pdf_interchange_end_structure_tag(cairo_pdf_surface_t *surface, cairo_tag_type_t tag_type, cairo_tag_stack_elem_t *elem)
#define localtime_r(T, BUF)
static cairo_int_status_t add_annotation(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *node, const char *name, const char *attributes)
static cairo_int_status_t _cairo_pdf_interchange_begin_structure_tag(cairo_pdf_surface_t *surface, cairo_tag_type_t tag_type, const char *name, const char *attributes)
static cairo_int_status_t _cairo_pdf_interchange_write_document_dests(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_write_dest(cairo_pdf_surface_t *surface, cairo_link_attrs_t *link_attrs)
static cairo_int_status_t cairo_pdf_interchange_write_parent_tree(cairo_pdf_surface_t *surface)
#define gmtime_r(T, BUF)
static int _dest_compare(const void *a, const void *b)
static void _cairo_pdf_interchange_set_create_date(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_write_node_object(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *node)
static void free_annotation(cairo_pdf_annotation_t *annot)
static cairo_int_status_t add_tree_node(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *parent, const char *name, cairo_pdf_struct_tree_node_t **new_node)
static void write_rect_int_to_pdf_bbox(cairo_output_stream_t *stream, const cairo_rectangle_int_t *rect, double surface_height)
static void init_named_dest_key(cairo_pdf_named_dest_t *dest)
static void cairo_pdf_interchange_clear_annotations(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_walk_struct_tree(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *node, cairo_int_status_t(*func)(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *node))
static cairo_int_status_t cairo_pdf_interchange_write_struct_tree(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_write_docinfo(cairo_pdf_surface_t *surface)
static cairo_int_status_t cairo_pdf_interchange_write_link_action(cairo_pdf_surface_t *surface, cairo_link_attrs_t *link_attrs)
static cairo_int_status_t cairo_pdf_interchange_write_explicit_dest(cairo_pdf_surface_t *surface, int page, cairo_bool_t has_pos, double x, double y)
static cairo_int_status_t cairo_pdf_interchange_write_page_labels(cairo_pdf_surface_t *surface)
static cairo_status_t add_mcid_to_node(cairo_pdf_surface_t *surface, cairo_pdf_struct_tree_node_t *node, int page, int *mcid)
static void free_node(cairo_pdf_struct_tree_node_t *node)
static void write_rect_to_pdf_quad_points(cairo_output_stream_t *stream, const cairo_rectangle_t *rect, double surface_height)
static void _collect_dest(void *entry, void *closure)
static cairo_int_status_t _cairo_pdf_interchange_end_dest_tag(cairo_pdf_surface_t *surface, cairo_tag_type_t tag_type, cairo_tag_stack_elem_t *elem)
static cairo_int_status_t cairo_pdf_interchange_write_names_dict(cairo_pdf_surface_t *surface)
static cairo_bool_t strcmp_null(const char *s1, const char *s2)
static cairo_bool_t is_leaf_node(cairo_pdf_struct_tree_node_t *node)
mrb_ast_node node
Definition: codegen.c:30
#define b
Definition: jpegint.h:372
@ FALSE
Definition: dd.h:101
@ TRUE
Definition: dd.h:102
#define free(a)
Definition: decNumber.cpp:310
int strcmp()
Definition: coll.cpp:143
int sscanf()
char * strcpy()
#define s
Definition: afcover.h:80
#define a(n)
Definition: gpos-common.c:148
#define memcpy(d, s, n)
Definition: gsftopk.c:64
assert(pcxLoadImage24((char *)((void *) 0), fp, pinfo, hdr))
#define unlikely(x)
Definition: jbig2arith.cc:116
#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
sizeof(AF_ModuleRec)
#define local
Definition: zutil.h:30
kerning y
Definition: ttdriver.c:212
voidp calloc()
int num
Definition: disdvi.c:621
#define buf
pdf_obj * entry
Definition: pdfdoc.c:64
char * closure
Definition: font.h:85
#define buf_size
Definition: ctangleboot.c:104
#define prefix
Definition: cwebboot.c:154
#define malloc
Definition: alloca.c:91
#define dest
long time_t
Definition: types.h:18
#define snprintf
Definition: snprintf.c:41
#define qsort
Definition: includes.h:72
static struct tm tm
Definition: localtime.c:216
time_t mktime(struct tm *const tmp)
Definition: localtime.c:1932
static luaL_Reg func[]
Definition: except.c:32
float x
Definition: cordic.py:15
utf< uint8 > utf8
Definition: UtfCodec.h:249
rectangle< double > rectf
static cairo_surface_t * surface
Definition: pdftocairo.cc:234
#define res(length)
Definition: picttoppm.c:287
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld cleanup[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld_src SRC pixld MASK if DST_R else pixld DST_R endif if src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head if pixblock_size cache_preload_simple endif process_pixblock_tail pixinterleave dst_w_basereg irp if pixblock_size chunk_size tst beq if DST_W else pixst DST_W else mov ORIG_W endif add lsl if lsl endif if lsl endif lsl endif lsl endif lsl endif subs mov DST_W if regs_shortage str endif bge start_of_loop_label endm macro generate_composite_function
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 ptr
static int offset
Definition: ppmtogif.c:642
bstring c int memset(void *s, int c, int length)
time_t time()
struct stream_s stream
Definition: pts_fax.h:93
#define status
#define flags
static avl_node * new_node(void *item, avl_node *up, mp_avl_tree t)
Definition: avl.c:147
#define parent(a, t)
Definition: interp.c:105
TT_Byte * flags
Definition: freetype.h:179
cairo_pdf_struct_tree_node_t * node
cairo_pdf_struct_tree_node_t * current_node
cairo_pdf_resource_t parent_tree_res
cairo_hash_table_t * named_dests
cairo_pdf_struct_tree_node_t * struct_root
cairo_pdf_struct_tree_node_t * end_page_node
cairo_pdf_struct_tree_node_t * begin_page_node
cairo_pdf_named_dest_t ** sorted_dests
struct _cairo_pdf_struct_tree_node * parent
Definition: job.h:44
Definition: mendex.h:14
Definition: dvipdfm.c:55
double height
Definition: dvipdfm.c:57
double width
Definition: dvipdfm.c:56
Definition: sh2.c:920
Definition: table.h:30
cairo_rectangle_int_t extents
Definition: xmlparse.c:179
struct def_label label[1024]
Definition: t1part.c:286
s1
Definition: t4ht.c:1059
char * s2
Definition: t4ht.c:1062
*job_name strlen((char *) job_name) - 4)
#define key
Definition: tex2xindy.c:753
tag int tag
Definition: tex4ht.c:2554
page
Definition: tex4ht.c:3916
#define sp
Definition: stack.c:11
TT_Outline outline
Definition: ttf2pfb.c:167
MaybeStackVector< UnitPreferenceMetadata > * metadata
Definition: units_data.cpp:228