#include <string.h>
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
◆ max
◆ main()
Definition at line 78 of file mkconfig.c.
79{
80 int include_tests;
82 char* outbuf;
85
87 {
89 return(1);
90 }
91
92 outbuf =
malloc(256 * 1024);
94 {
96 return(1);
97 }
98
100 s =
s +
sprintf(
s,
"/* Automatically generated, ");
101 s =
s +
sprintf(
s,
"Edit the Makefile to change configuration */\n");
102 s =
s +
sprintf(
s,
"#ifndef __INCLUDE_CONFIG_H\n");
103 s =
s +
sprintf(
s,
"#define __INCLUDE_CONFIG_H\n");
105 include_tests = 0;
107 {
109 {
110 include_tests = 1;
111 }
112 else
113 {
117 }
120 {
122 }
123 }
124 if (include_tests)
125 {
127 s =
s +
sprintf(
s,
"extern void PrepareTests();\n");
128 s =
s +
sprintf(
s,
"#define PREPARE_TESTS PrepareTests();\n");
130 }
131 else
132 {
133 s =
s +
sprintf(
s,
"#define PREPARE_TESTS\n");
134 }
136 s =
s +
sprintf(
s,
"#endif /* __INCLUDE_CONFIG_H */\n");
137
139}
char * strcat(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
char * strcpy(char *DstString, const char *SrcString)
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
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int write_if_change(char *outbuf, char *filename)
#define sprintf(buf, format,...)
◆ write_if_change()
Definition at line 10 of file mkconfig.c.
11{
14 char* cmpbuf;
16
19 {
22 {
24 return(1);
25 }
28 return(0);
29 }
30
35 {
38 return(1);
39 }
40
44 {
48 return(1);
49 }
51 {
54 return(0);
55 }
56
61 {
63 return(1);
64 }
65
68 {
71 return(1);
72 }
74 return(0);
75}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP long __cdecl ftell(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
Referenced by main().