restructurization

This commit is contained in:
2026-05-28 14:23:39 +03:00
parent aca7e3617d
commit b493b36948
211 changed files with 28 additions and 161 deletions

View File

@@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.9)
project(examples)
link_libraries(usefull_macros)
include_directories(../)
#target_link_libraries(hello -lm)
add_executable(hello helloworld.c)

View File

@@ -0,0 +1,15 @@
#include <locale.h>
#include <libintl.h>
#include <usefull_macros.h>
int main(){
setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C");
#if defined GETTEXT_PACKAGE && defined LOCALEDIR
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);
#endif
helloworld();
return 0;
}