#include "tif_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tif_fax3.h"
Go to the source code of this file.
◆ streq
◆ FillTable()
Definition at line 318 of file mkg3states.c.
319{
321
325 int incr = 1 <<
width;
332 }
334 }
335}
GLint GLint GLsizei width
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by main().
◆ getopt()
Definition at line 20 of file getopt.c.
21{
22 char *curopt;
24 int cursubopt;
25
28 } else {
30 if (curopt ==
NULL || curopt[0] !=
'-' ||
strcmp(curopt,
"-") == 0)
31 return -1;
35 if (
strcmp(curopt,
"--") == 0)
36 return -1;
37 }
39 if ((
p =
strchr(optstring, curopt[cursubopt])) ==
NULL) {
40 optopt = curopt[cursubopt];
43 return '?';
44 }
46 if (curopt[cursubopt+1] != '\0') {
47 optarg = curopt+cursubopt+1;
50 }
55 if (*optstring == ':')
56 return ':';
57 return '?';
58 }
60 }
62}
int strcmp(const char *String1, const char *String2)
char * strchr(const char *String, int ch)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
Referenced by main().
◆ main()
Definition at line 379 of file mkg3states.c.
380{
382 char* outputfile;
384
385#if !HAVE_DECL_OPTARG
388#endif
389
392 case 'c':
394 break;
395 case 's':
397 break;
398 case 'p':
400 break;
401 case 'b':
404 break;
405 case '?':
407 "usage: %s [-c const] [-s storage] [-p] [-b] file\n",
409 return (-1);
410 }
415 argv[0], outputfile);
416 return (-2);
417 }
433
434 fprintf(
fd,
"/* WARNING, this file was automatically generated by the\n");
437 fprintf(
fd,
"#include \"tif_fax3.h\"\n");
442 return (0);
443}
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
static struct proto EOLV[]
static struct proto Pass[]
static struct proto Ext[]
static void FillTable(TIFFFaxTabEnt *T, int Size, struct proto *P, int State)
TIFFFaxTabEnt BlackTable[8192]
static struct proto MakeUp[]
static struct proto TermW[]
TIFFFaxTabEnt WhiteTable[4096]
static char * const_class
static struct proto MakeUpW[]
int getopt(int argc, char *const argv[], const char *optstring)
static struct proto TermB[]
TIFFFaxTabEnt MainTable[128]
static struct proto EOLH[]
void WriteTable(FILE *fd, const TIFFFaxTabEnt *T, int Size, const char *name)
static struct proto Horiz[]
static struct proto MakeUpB[]
◆ WriteTable()
Definition at line 344 of file mkg3states.c.
345{
347 char* sep;
348
349 fprintf(
fd,
"%s %s TIFFFaxTabEnt %s[%d] = {",
352 sep = "\n";
356 if (((
i+1) % 10) == 0)
357 sep = ",\n";
358 else
359 sep = ",";
361 }
362 } else {
363 sep = "\n ";
367 if (((
i+1) % 6) == 0)
368 sep = ",\n ";
369 else
370 sep = ",";
372 }
373 }
375}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by main().
◆ BlackTable
◆ const_class
◆ EOLH
Initial value:= {
{ 0x0000, 11 },
{ 0, 0 }
}
Definition at line 312 of file mkg3states.c.
Referenced by main().
◆ EOLV
Initial value:= {
{ 0x0000, 7 },
{ 0, 0 }
}
Definition at line 92 of file mkg3states.c.
Referenced by main().
◆ Ext
Initial value:= {
{ 0x0040, 7 },
{ 0, 0 }
}
Definition at line 87 of file mkg3states.c.
Referenced by AssocFindByBuiltinExtension(), GetTempFileNameW(), main(), UDFAllocateFESpace(), UDFAllocFreeExtent_(), UDFFlushAllCachedAllocations(), UDFFreeFESpace(), UDFGetCachedAllocation(), UDFStoreCachedAllocation(), and UDFUpdateNonAllocated().
◆ Horiz
Initial value:= {
{ 0x0004, 3 },
{ 0, 0 }
}
Definition at line 63 of file mkg3states.c.
Referenced by main().
◆ MainTable
◆ MakeUp
Initial value:= {
{ 0x0080, 28683 },
{ 0x0180, 29707 },
{ 0x0580, 30731 },
{ 0x0480, 31756 },
{ 0x0c80, 32780 },
{ 0x0280, 33804 },
{ 0x0a80, 34828 },
{ 0x0680, 35852 },
{ 0x0e80, 36876 },
{ 0x0380, 37900 },
{ 0x0b80, 38924 },
{ 0x0780, 39948 },
{ 0x0f80, 40972 },
{ 0, 0 }
}
Definition at line 159 of file mkg3states.c.
Referenced by main().
◆ MakeUpB
Initial value:= {
{ 0x03c0, 1034 },
{ 0x0130, 2060 },
{ 0x0930, 3084 },
{ 0x0da0, 4108 },
{ 0x0cc0, 5132 },
{ 0x02c0, 6156 },
{ 0x0ac0, 7180 },
{ 0x06c0, 8205 },
{ 0x16c0, 9229 },
{ 0x0a40, 10253 },
{ 0x1a40, 11277 },
{ 0x0640, 12301 },
{ 0x1640, 13325 },
{ 0x09c0, 14349 },
{ 0x19c0, 15373 },
{ 0x05c0, 16397 },
{ 0x15c0, 17421 },
{ 0x0dc0, 18445 },
{ 0x1dc0, 19469 },
{ 0x0940, 20493 },
{ 0x1940, 21517 },
{ 0x0540, 22541 },
{ 0x1540, 23565 },
{ 0x0b40, 24589 },
{ 0x1b40, 25613 },
{ 0x04c0, 26637 },
{ 0x14c0, 27661 },
{ 0, 0 }
}
Definition at line 128 of file mkg3states.c.
Referenced by main().
◆ MakeUpW
Initial value:= {
{ 0x001b, 1029 },
{ 0x0009, 2053 },
{ 0x003a, 3078 },
{ 0x0076, 4103 },
{ 0x006c, 5128 },
{ 0x00ec, 6152 },
{ 0x0026, 7176 },
{ 0x00a6, 8200 },
{ 0x0016, 9224 },
{ 0x00e6, 10248 },
{ 0x0066, 11273 },
{ 0x0166, 12297 },
{ 0x0096, 13321 },
{ 0x0196, 14345 },
{ 0x0056, 15369 },
{ 0x0156, 16393 },
{ 0x00d6, 17417 },
{ 0x01d6, 18441 },
{ 0x0036, 19465 },
{ 0x0136, 20489 },
{ 0x00b6, 21513 },
{ 0x01b6, 22537 },
{ 0x0032, 23561 },
{ 0x0132, 24585 },
{ 0x00b2, 25609 },
{ 0x0006, 26630 },
{ 0x01b2, 27657 },
{ 0, 0 }
}
Definition at line 97 of file mkg3states.c.
Referenced by main().
◆ packoutput
◆ Pass
◆ postbrace
◆ prebrace
◆ storage_class
◆ TermB
◆ TermW
◆ V0
Initial value:= {
{ 0x0001, 1 },
{ 0, 0 }
}
Definition at line 68 of file mkg3states.c.
Referenced by main().
◆ VL
Initial value:= {
{ 0x0002, (1<<4)+3 },
{ 0x0010, (2<<4)+6 },
{ 0x0020, (3<<4)+7 },
{ 0, 0 }
}
Definition at line 80 of file mkg3states.c.
Referenced by main().
◆ VR
Initial value:= {
{ 0x0006, (1<<4)+3 },
{ 0x0030, (2<<4)+6 },
{ 0x0060, (3<<4)+7 },
{ 0, 0 }
}
Definition at line 73 of file mkg3states.c.
Referenced by main().
◆ WhiteTable