Add ChangeLog to ntpd project for easy editing within VS.
bk: 640c3a9bo23uPY1V54Gsc4IKReVTVg
---
* [Bug 3800] libopts-42.1.17 does not compile with Microsoft C. <hart@ntp.org>
+* [Bug 3799] Enable libopts noreturn compiler advice for MSC. <hart@ntp.org>
* [Bug 3797] Windows getaddrinfo w/AI_ADDRCONFIG fails for localhost when
disconnected, breaking ntpq and ntpdc. <hart@ntp.org>
* [Bug 3795] pollskewlist documentation uses | when it shouldn't.
</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\version.c;%(Outputs)</Outputs>
</CustomBuild>
+ <None Include="..\..\..\..\ChangeLog" />
<None Include="..\..\libntp\MSG00001.bin" />
<None Include="..\libntp\messages.mc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project>
\ No newline at end of file
<None Include="..\libntp\messages.mc">
<Filter>Resource Files</Filter>
</None>
+ <None Include="..\..\..\..\ChangeLog" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\..\..\ntpd\ntp_parser.h">
</CustomBuild>
<CustomBuild Include="..\..\..\..\packageinfo.sh" />
</ItemGroup>
-</Project>
+</Project>
\ No newline at end of file
static tOptionLoadMode option_load_mode = OPTION_LOAD_UNCOOKED;
static tePagerState pagerState = PAGER_STATE_INITIAL;
-static noreturn void option_exits(int exit_code);
-static noreturn void fserr_exit(char const * prog, char const * op,
- char const * fname);
-static void fserr_warn(char const * prog, char const * op,
- char const * fname);
-static noreturn void ao_bug(char const * msg);
+static lo_noreturn void option_exits(int exit_code);
+static lo_noreturn void fserr_exit(char const * prog, char const * op,
+ char const * fname);
+static void fserr_warn(char const * prog, char const * op,
+ char const * fname);
+static lo_noreturn void ao_bug(char const * msg);
FILE * option_usage_fp = NULL;
#define MOD_LOCAL static
#define parse_duration option_parse_duration
+#ifdef _MSC_VER
+#define lo_noreturn __declspec(noreturn)
+#else
+#define lo_noreturn noreturn
+#endif
+
#endif /* AUTOGEN_PROJECT_H */
/* end of project.h */
#define UPPER(_c) (toupper(to_uchar(_c)))
#define LOWER(_c) (tolower(to_uchar(_c)))
-noreturn static void
+lo_noreturn static void
option_exits(int exit_code)
{
if (print_exit)
exit(exit_code);
}
-noreturn static void
+lo_noreturn static void
ao_bug(char const * msg)
{
fprintf(stderr, zao_bug_msg, msg);
op, fname);
}
-noreturn static void
+lo_noreturn static void
fserr_exit(char const * prog, char const * op, char const * fname)
{
fserr_warn(prog, op, fname);
/*
* Static declarations from makeshell.c
*/
-noreturn static void
+lo_noreturn static void
option_exits(int exit_code);
-noreturn static void
+lo_noreturn static void
ao_bug(char const * msg);
static void
fserr_warn(char const * prog, char const * op, char const * fname);
-noreturn static void
+lo_noreturn static void
fserr_exit(char const * prog, char const * op, char const * fname);
static void
* If "exitCode" is "AO_EXIT_REQ_USAGE" (normally 64), then output will to
* to stdout and the actual exit code will be "EXIT_SUCCESS".
=*/
-noreturn void
+lo_noreturn void
optionUsage(tOptions * opts, int usage_exit_code)
{
int exit_code = (usage_exit_code == AO_EXIT_REQ_USAGE)