diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..228924728 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +end_of_line = lf +indent_style = space +tab_width = 4 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/completions/bash b/completions/bash index 63ea3ccd8..f83f4d546 100644 --- a/completions/bash +++ b/completions/bash @@ -178,4 +178,4 @@ __fastfetch_completion() fi } -complete -F __fastfetch_completion fastfetch \ No newline at end of file +complete -F __fastfetch_completion fastfetch diff --git a/src/common.c b/src/common.c index ec67fc2e9..d13caf1ad 100644 --- a/src/common.c +++ b/src/common.c @@ -13,7 +13,7 @@ void ffInitState(FFstate* state) state->passwd = getpwuid(getuid()); uname(&state->utsname); sysinfo(&state->sysinfo); - + ffStrbufInit(&state->terminal.value); state->terminal.error = NULL; state->terminal.calculated = false; @@ -193,7 +193,7 @@ void ffParseFont(char* font, char* buffer) char name[64]; char size[32]; int scanned = sscanf(font, "%[^,], %[^,]", name, size); - + if(scanned == 0) strcpy(buffer, font); else if(scanned == 1) @@ -361,14 +361,14 @@ void ffParseFormatStringV(FFstrbuf* buffer, FFstrbuf* formatstr, uint32_t numArg ffStrbufAppendS(buffer, "{}"); continue; } - + argIndex = argCounter++; } else { FFstrbuf argnumstr; ffStrbufInit(&argnumstr); - + while(formatstr->chars[i] != '}' && i < formatstr->length) ffStrbufAppendC(&argnumstr, formatstr->chars[i++]); @@ -388,7 +388,7 @@ void ffParseFormatStringV(FFstrbuf* buffer, FFstrbuf* formatstr, uint32_t numArg ffStrbufDestroy(&argnumstr); } - + if(argIndex == 0) argIndex = 1; @@ -444,4 +444,4 @@ void ffPrintFormatString(FFinstance* instance, const char* key, FFstrbuf* format } ffStrbufDestroy(&buffer); -} \ No newline at end of file +} diff --git a/src/fastfetch.c b/src/fastfetch.c index c6b60be11..f123204f3 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -314,7 +314,7 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con } else if(strcasecmp(key, "-r") == 0 || strcasecmp(key, "--recache") == 0) { - //Set cacheSave as well, beacuse the user expects the values to be cached when expliciting using --recache + //Set cacheSave as well, beacuse the user expects the values to be cached when expliciting using --recache instance->config.recache = optionParseBoolean(value); instance->config.cacheSave = instance->config.recache; } @@ -400,7 +400,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data) strcpy(fileName, xdgConfig); } mkdir(fileName, S_IRWXU | S_IXGRP | S_IRGRP | S_IXOTH | S_IROTH); //I hope everybody has a config folder but whow knews - + strcat(fileName, "/fastfetch/"); mkdir(fileName, S_IRWXU | S_IRGRP | S_IROTH); @@ -413,7 +413,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data) fclose(file); return; } - + FILE* file = fopen(fileName, "r"); char* lineStart = NULL; @@ -572,19 +572,19 @@ static void run(FFinstance* instance, FFdata* data) { if(data->structure.length == 0) ffStrbufSetS(&data->structure, FASTFETCH_DEFAULT_STRUCTURE); - + char* remaining = data->structure.chars; char* colon = NULL; while(true) { colon = strchr(remaining, ':'); - + if(colon != NULL) *colon = '\0'; - + parseStructureCommand(instance, data, remaining); - + if(colon != NULL) remaining = colon + 1; else diff --git a/src/fastfetch.h b/src/fastfetch.h index ccb873a2a..014ab9fb6 100644 --- a/src/fastfetch.h +++ b/src/fastfetch.h @@ -66,7 +66,7 @@ typedef struct FFconfig FFstrbuf diskFormat; FFstrbuf batteryFormat; FFstrbuf localeFormat; - + FFstrbuf libPCI; FFstrbuf libX11; FFstrbuf libXrandr; @@ -171,4 +171,4 @@ void ffPrintBattery(FFinstance* instance); void ffPrintLocale(FFinstance* instance); void ffPrintColors(FFinstance* instance); -#endif \ No newline at end of file +#endif diff --git a/src/fastfetch_config.h.in b/src/fastfetch_config.h.in index 18905e234..806356eb3 100644 --- a/src/fastfetch_config.h.in +++ b/src/fastfetch_config.h.in @@ -4,4 +4,4 @@ #define FASTFETCH_PROJECT_NAME "@PROJECT_NAME@" #define FASTFETCH_PROJECT_VERSION "@PROJECT_VERSION@" -#endif // FASTFETCH_INDLUDED_fastfetch_config_h_in \ No newline at end of file +#endif // FASTFETCH_INDLUDED_fastfetch_config_h_in diff --git a/src/flashfetch.c b/src/flashfetch.c index a0ce2a016..5ed3019e1 100644 --- a/src/flashfetch.c +++ b/src/flashfetch.c @@ -9,7 +9,7 @@ int main(int argc, char** argv) //Configuration ffLoadLogoSet(&instance.config, "arch"); ffStrbufSetS(&instance.config.color, instance.config.logo.color); //Use the primary color of the logo as key color - + //Printing ffPrintTitle(&instance); ffPrintSeperator(&instance); @@ -38,4 +38,4 @@ int main(int argc, char** argv) ffFinish(&instance); return 0; -} \ No newline at end of file +} diff --git a/src/modules/battery.c b/src/modules/battery.c index 7dd427e78..c863a87bd 100644 --- a/src/modules/battery.c +++ b/src/modules/battery.c @@ -38,7 +38,7 @@ static void printBattery(FFinstance* instance, uint8_t index) manufactor.length == 0 && model.length == 0 && technology.length == 0 && - capacity.length == 0 && + capacity.length == 0 && status.length == 0 ) { ffPrintError(instance, key, "No file in /sys/class/power_supply/BAT0/ could be read or all battery options are disabled"); @@ -59,7 +59,7 @@ static void printBattery(FFinstance* instance, uint8_t index) if(capacity.length > 0) { printf("[%s%%", capacity.chars); - + if(status.length == 0) puts("]"); else @@ -105,4 +105,4 @@ void ffPrintBattery(FFinstance* instance) closedir(dir); } } -} \ No newline at end of file +} diff --git a/src/modules/break.c b/src/modules/break.c index 717ec3f7c..1a3a208e6 100644 --- a/src/modules/break.c +++ b/src/modules/break.c @@ -4,4 +4,4 @@ void ffPrintBreak(FFinstance* instance) { ffPrintLogoLine(instance); putchar('\n'); -} \ No newline at end of file +} diff --git a/src/modules/colors.c b/src/modules/colors.c index a6f655750..49848d8d3 100644 --- a/src/modules/colors.c +++ b/src/modules/colors.c @@ -15,4 +15,4 @@ void ffPrintColors(FFinstance* instance) printf("\033[48;5;%dm ", i); puts("\033[0m"); -} \ No newline at end of file +} diff --git a/src/modules/cpu.c b/src/modules/cpu.c index b56a4a760..e16421200 100644 --- a/src/modules/cpu.c +++ b/src/modules/cpu.c @@ -12,7 +12,7 @@ void ffPrintCPU(FFinstance* instance) ffPrintError(instance, "CPU", "\"model name%*s %[^\\n]\" not found in \"/proc/cpuinfo\""); return; } - + FILE* frequencyFile = fopen("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "r"); if(frequencyFile == NULL) { @@ -40,14 +40,14 @@ void ffPrintCPU(FFinstance* instance) ffStrbufSetF(&cpu, "%s (%i) @ %.9gGHz", name, numProcs, ghz); } else - { + { ffParseFormatString(&cpu, &instance->config.cpuFormat, 3, (FFformatarg){FF_FORMAT_ARG_TYPE_STRING, name}, (FFformatarg){FF_FORMAT_ARG_TYPE_INT, &numProcs}, (FFformatarg){FF_FORMAT_ARG_TYPE_DOUBLE, &ghz} ); } - + ffPrintAndSaveCachedValue(instance, "CPU", &cpu); ffStrbufDestroy(&cpu); -} \ No newline at end of file +} diff --git a/src/modules/custom.c b/src/modules/custom.c index c712d9dc1..28fc03b7c 100644 --- a/src/modules/custom.c +++ b/src/modules/custom.c @@ -4,4 +4,4 @@ void ffPrintCustom(FFinstance* instance, const char* key, const char* value) { ffPrintLogoAndKey(instance, key); puts(value); -} \ No newline at end of file +} diff --git a/src/modules/de.c b/src/modules/de.c index 19497e54d..47b64e30d 100644 --- a/src/modules/de.c +++ b/src/modules/de.c @@ -78,4 +78,4 @@ void ffPrintDesktopEnvironment(FFinstance* instance) ffStrbufDestroy(&sessionType); ffStrbufDestroy(&sessionVersion); ffStrbufDestroy(&sessionDesktop); -} \ No newline at end of file +} diff --git a/src/modules/disk.c b/src/modules/disk.c index b659cb27a..89949a3fe 100644 --- a/src/modules/disk.c +++ b/src/modules/disk.c @@ -32,4 +32,4 @@ void ffPrintDisk(FFinstance* instance) (FFformatarg){FF_FORMAT_ARG_TYPE_UINT8, &percentage} ); } -} \ No newline at end of file +} diff --git a/src/modules/font.c b/src/modules/font.c index 3610e1078..14b42da6d 100644 --- a/src/modules/font.c +++ b/src/modules/font.c @@ -4,7 +4,7 @@ void ffPrintFont(FFinstance* instance) { char plasma[256]; ffParsePropFileHome(instance, ".config/kdeglobals", "font=%[^\n]", plasma); - + char plasmaPretty[256]; if(plasma[0] == '\0') strcpy(plasmaPretty, "Noto Sans (10pt)"); @@ -13,7 +13,7 @@ void ffPrintFont(FFinstance* instance) char gtk2[256]; ffParsePropFileHome(instance, ".gtkrc-2.0", "gtk-font-name=\"%[^\"]+", gtk2); - + char gtk2Pretty[256]; if(gtk2[0] == '\0') gtk2Pretty[0] = '\0'; @@ -22,7 +22,7 @@ void ffPrintFont(FFinstance* instance) char gtk3[256]; ffParsePropFileHome(instance, ".config/gtk-3.0/settings.ini", "gtk-font-name=%[^\n]", gtk3); - + char gtk3Pretty[256]; if(gtk3[0] == '\0') gtk3Pretty[0] = '\0'; @@ -37,7 +37,7 @@ void ffPrintFont(FFinstance* instance) gtk4Pretty[0] = '\0'; else ffParseFont(gtk4, gtk4Pretty); - + FF_STRBUF_CREATE(gtkPretty); ffFormatGtkPretty(>kPretty, gtk2Pretty, gtk3Pretty, gtk4Pretty); @@ -59,4 +59,4 @@ void ffPrintFont(FFinstance* instance) } ffStrbufDestroy(>kPretty); -} \ No newline at end of file +} diff --git a/src/modules/gpu.c b/src/modules/gpu.c index ff2d4dec3..5f29a114b 100644 --- a/src/modules/gpu.c +++ b/src/modules/gpu.c @@ -4,7 +4,7 @@ #include static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_dev* dev, uint16_t counter, char*(*ffpci_lookup_name)(struct pci_access*, char*, int, int, ...)) -{ +{ char key[8]; sprintf(key, "GPU%hu", counter); @@ -31,7 +31,7 @@ static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_ } else { - ffParseFormatString(&gpu, &instance->config.gpuFormat, 2, + ffParseFormatString(&gpu, &instance->config.gpuFormat, 2, (FFformatarg){FF_FORMAT_ARG_TYPE_STRING, vendorPretty}, (FFformatarg){FF_FORMAT_ARG_TYPE_STRING, name} ); @@ -120,4 +120,4 @@ void ffPrintGPU(FFinstance* instance) ffpci_cleanup(pacc); dlclose(pci); -} \ No newline at end of file +} diff --git a/src/modules/host.c b/src/modules/host.c index a08872419..358fad1d6 100644 --- a/src/modules/host.c +++ b/src/modules/host.c @@ -10,7 +10,7 @@ void ffPrintHost(FFinstance* instance) FF_STRBUF_CREATE(name); ffGetFileContent("/sys/devices/virtual/dmi/id/product_name", &name); - + FF_STRBUF_CREATE(version); ffGetFileContent("/sys/devices/virtual/dmi/id/product_version", &version); @@ -62,4 +62,4 @@ void ffPrintHost(FFinstance* instance) ffStrbufDestroy(&family); ffStrbufDestroy(&name); ffStrbufDestroy(&version); -} \ No newline at end of file +} diff --git a/src/modules/icons.c b/src/modules/icons.c index a56738989..df79bbf18 100644 --- a/src/modules/icons.c +++ b/src/modules/icons.c @@ -4,7 +4,7 @@ void ffPrintIcons(FFinstance* instance) { char plasma[256]; ffParsePropFileHome(instance, ".config/kdeglobals", "Theme=%[^\n]", plasma); - + char gtk2[256]; ffParsePropFileHome(instance, ".gtkrc-2.0", "gtk-icon-theme-name=\"%[^\"]+", gtk2); if(gtk2[0] == '\0') @@ -26,7 +26,7 @@ void ffPrintIcons(FFinstance* instance) if(instance->config.iconsFormat.length == 0) { ffPrintLogoAndKey(instance, "Icons"); - + if(plasma[0] == '\0') printf("Breeze [Plasma], "); else @@ -46,4 +46,4 @@ void ffPrintIcons(FFinstance* instance) } ffStrbufDestroy(>kPretty); -} \ No newline at end of file +} diff --git a/src/modules/kernel.c b/src/modules/kernel.c index 861e4cf0d..71147614a 100644 --- a/src/modules/kernel.c +++ b/src/modules/kernel.c @@ -15,4 +15,4 @@ void ffPrintKernel(FFinstance* instance) (FFformatarg){FF_FORMAT_ARG_TYPE_STRING, instance->state.utsname.version} ); } -} \ No newline at end of file +} diff --git a/src/modules/locale.c b/src/modules/locale.c index dac90646a..636be611e 100644 --- a/src/modules/locale.c +++ b/src/modules/locale.c @@ -52,7 +52,6 @@ void ffPrintLocale(FFinstance* instance) ); } - ffPrintAndSaveCachedValue(instance, "Locale", &locale); ffStrbufDestroy(&locale); } diff --git a/src/modules/memory.c b/src/modules/memory.c index 8d3d46354..51d7f14b0 100644 --- a/src/modules/memory.c +++ b/src/modules/memory.c @@ -43,4 +43,4 @@ void ffPrintMemory(FFinstance* instance) (FFformatarg){FF_FORMAT_ARG_TYPE_UINT8, &percentage} ); } -} \ No newline at end of file +} diff --git a/src/modules/os.c b/src/modules/os.c index a726bd1a7..e63d4f12b 100644 --- a/src/modules/os.c +++ b/src/modules/os.c @@ -52,7 +52,7 @@ void ffPrintOS(FFinstance* instance) } fclose(osRelease); - + if(line != NULL) free(line); @@ -71,7 +71,7 @@ void ffPrintOS(FFinstance* instance) else { if(name[0] != '\0') - ffStrbufAppendS(&os, name); + ffStrbufAppendS(&os, name); else ffStrbufAppendS(&os, id); @@ -126,4 +126,4 @@ void ffPrintOS(FFinstance* instance) ffPrintAndSaveCachedValue(instance, "OS", &os); ffStrbufDestroy(&os); -} \ No newline at end of file +} diff --git a/src/modules/packages.c b/src/modules/packages.c index 870335f5b..f89e4efab 100644 --- a/src/modules/packages.c +++ b/src/modules/packages.c @@ -15,7 +15,7 @@ static uint32_t get_num_dirs(const char* dirname) { if(entry->d_type == DT_DIR) ++num_dirs; } - + num_dirs -= 2; // accounting for . and .. closedir(dirp); @@ -60,7 +60,7 @@ void ffPrintPackages(FFinstance* instance) ffPrintFormatString(instance, "Packages", &instance->config.packagesFormat, 3, (FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &all}, (FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &pacman}, - (FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &flatpak} - ); + (FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &flatpak} + ); } -} \ No newline at end of file +} diff --git a/src/modules/resolution.c b/src/modules/resolution.c index aa42afbee..b512c8643 100644 --- a/src/modules/resolution.c +++ b/src/modules/resolution.c @@ -94,4 +94,4 @@ void ffPrintResolution(FFinstance* instance) ffPrintAndSaveCachedValue(instance, "Resolution", &resolution); ffStrbufDestroy(&resolution); -} \ No newline at end of file +} diff --git a/src/modules/seperator.c b/src/modules/seperator.c index 8d6195cb4..1b6040031 100644 --- a/src/modules/seperator.c +++ b/src/modules/seperator.c @@ -7,4 +7,4 @@ void ffPrintSeperator(FFinstance* instance) for(uint8_t i = 0; i < instance->config.titleLength; i++) putchar('-'); putchar('\n'); -} \ No newline at end of file +} diff --git a/src/modules/shell.c b/src/modules/shell.c index 06c33d5eb..ff99727c7 100644 --- a/src/modules/shell.c +++ b/src/modules/shell.c @@ -43,4 +43,4 @@ void ffPrintShell(FFinstance* instance) ffPrintAndSaveCachedValue(instance, "Shell", &shell); ffStrbufDestroy(&shell); -} \ No newline at end of file +} diff --git a/src/modules/terminal.c b/src/modules/terminal.c index 186359fb2..0d98375c2 100644 --- a/src/modules/terminal.c +++ b/src/modules/terminal.c @@ -36,7 +36,7 @@ static void getTerminalName(FFinstance* instance, const char* pid, char* termina getTerminalName(instance, ppid, terminal, error); return; } - + if( strcasecmp(name, "systemd") == 0 || strcasecmp(name, "init") == 0 || @@ -85,7 +85,7 @@ void ffPrintTerminal(FFinstance* instance) ffPrintError(instance, "Terminal", instance->state.terminal.error); return; } - + if(instance->config.terminalFormat.length == 0) { ffPrintLogoAndKey(instance, "Terminal"); diff --git a/src/modules/terminalfont.c b/src/modules/terminalfont.c index b7197a5ca..6ee0f3128 100644 --- a/src/modules/terminalfont.c +++ b/src/modules/terminalfont.c @@ -48,14 +48,14 @@ static void printTTY(FFinstance* instance) ffParsePropFile("/etc/vconsole.conf", "Font=%[^\n]", font); if(font[0] == '\0') strcpy(font, "hardware-supplied VGA font"); - + printTerminalFont(instance, font); } void ffPrintTerminalFont(FFinstance* instance) { ffPopulateTerminal(instance); - + if(instance->state.terminal.error != NULL) { ffPrintError(instance, "Terminal Font", "Terminal Font needs successfull terminal detection"); @@ -68,4 +68,4 @@ void ffPrintTerminalFont(FFinstance* instance) printTTY(instance); else ffPrintError(instance, "Terminal Font", "Unknown terminal: %s", instance->state.terminal.value); -} \ No newline at end of file +} diff --git a/src/modules/theme.c b/src/modules/theme.c index 6352a1ccf..0eaea0b20 100644 --- a/src/modules/theme.c +++ b/src/modules/theme.c @@ -4,7 +4,7 @@ void ffPrintTheme(FFinstance* instance) { char plasma[256]; ffParsePropFileHome(instance, ".config/kdeglobals", "Name=%[^\n]", plasma); - + char gtk2[256]; ffParsePropFileHome(instance, ".gtkrc-2.0", "gtk-theme-name=\"%[^\"]+", gtk2); if(gtk2[0] == '\0') @@ -42,4 +42,4 @@ void ffPrintTheme(FFinstance* instance) (FFformatarg){FF_FORMAT_ARG_TYPE_STRBUF, >kPretty} ); } -} \ No newline at end of file +} diff --git a/src/modules/title.c b/src/modules/title.c index b94785602..4c18290cb 100644 --- a/src/modules/title.c +++ b/src/modules/title.c @@ -12,4 +12,4 @@ void ffPrintTitle(FFinstance* instance) printf(FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"@"FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"\n", instance->config.color.chars, instance->state.passwd->pw_name, instance->config.color.chars, hostname ); -} \ No newline at end of file +} diff --git a/src/modules/uptime.c b/src/modules/uptime.c index fd31ccabb..15df0c513 100644 --- a/src/modules/uptime.c +++ b/src/modules/uptime.c @@ -3,7 +3,7 @@ void ffPrintUptime(FFinstance* instance) { uint32_t days = instance->state.sysinfo.uptime / 86400; - uint32_t hours = (instance->state.sysinfo.uptime - (days * 86400)) / 3600; + uint32_t hours = (instance->state.sysinfo.uptime - (days * 86400)) / 3600; uint32_t minutes = (instance->state.sysinfo.uptime - (days * 86400) - (hours * 3600)) / 60; uint32_t seconds = instance->state.sysinfo.uptime - (days * 86400) - (hours * 3600) - (minutes * 60); @@ -35,4 +35,4 @@ void ffPrintUptime(FFinstance* instance) (FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &seconds} ); } -} \ No newline at end of file +} diff --git a/src/modules/wm.c b/src/modules/wm.c index a127ed93f..0c9d211da 100644 --- a/src/modules/wm.c +++ b/src/modules/wm.c @@ -9,7 +9,7 @@ static bool parseProcessName(FFstrbuf* name) else return false; - return true; + return true; } void ffPrintWM(FFinstance* instance) @@ -62,4 +62,4 @@ void ffPrintWM(FFinstance* instance) } ffStrbufDestroy(&name); -} \ No newline at end of file +} diff --git a/src/util/FFstrbuf.c b/src/util/FFstrbuf.c index 460befe93..a9235ae7f 100644 --- a/src/util/FFstrbuf.c +++ b/src/util/FFstrbuf.c @@ -40,7 +40,7 @@ void ffStrbufInitA(FFstrbuf* strbuf, uint32_t allocate) strbuf->allocated = allocate; strbuf->chars = (char*) malloc(sizeof(char) * strbuf->allocated); - + ffStrbufClear(strbuf); } @@ -168,7 +168,7 @@ void ffStrbufAppendNS(FFstrbuf* strbuf, uint32_t length, const char* value) { if(value[i] == '\0') break; - + strbuf->chars[strbuf->length++] = value[i]; } strbuf->chars[strbuf->length] = '\0'; @@ -204,7 +204,7 @@ void ffStrbufAppendVF(FFstrbuf* strbuf, const char* format, va_list arguments) int written = vsnprintf(strbuf->chars + strbuf->length, strbuf->allocated - strbuf->length, format, localArguments); va_end(localArguments); - + if(strbuf->length + written >= strbuf->allocated) { ffStrbufEnsureCapacity(strbuf, strbuf->allocated * 2); @@ -283,7 +283,7 @@ void ffStrbufTrimLeft(FFstrbuf* strbuf, char c) } void ffStrbufTrimRight(FFstrbuf* strbuf, char c) -{ +{ while(strbuf->length > 0 && strbuf->chars[strbuf->length - 1] == c) --strbuf->length; @@ -302,4 +302,4 @@ void ffStrbufDestroy(FFstrbuf* strbuf) strbuf->allocated = 0; strbuf->chars = NULL; strbuf->length = 0; -} \ No newline at end of file +} diff --git a/src/util/FFvaluestore.c b/src/util/FFvaluestore.c index 8a037a0da..1b42b4b67 100644 --- a/src/util/FFvaluestore.c +++ b/src/util/FFvaluestore.c @@ -53,4 +53,4 @@ bool ffValuestoreContains(FFvaluestore* vs, const char* name) void ffValuestoreDelete(FFvaluestore* vs) { free(vs->pairs); -} \ No newline at end of file +} diff --git a/src/util/FFvaluestore.h b/src/util/FFvaluestore.h index 50926cf6d..4fcf2eb60 100644 --- a/src/util/FFvaluestore.h +++ b/src/util/FFvaluestore.h @@ -24,4 +24,4 @@ const char* ffValuestoreGet(FFvaluestore* vs, const char* name); bool ffValuestoreContains(FFvaluestore* vs, const char* name); void ffValuestoreDelete(FFvaluestore* vs); -#endif \ No newline at end of file +#endif diff --git a/tests/performance.c b/tests/performance.c index 82283a8ff..86febad2e 100644 --- a/tests/performance.c +++ b/tests/performance.c @@ -17,7 +17,7 @@ int main(int argc, char** argv) { FFinstance instance; - + FASTFETCH_TEST_PERFORMANCE( puts("Initialization"); ffInitState(&instance.state); @@ -56,4 +56,4 @@ int main(int argc, char** argv) FASTFETCH_TEST_PERFORMANCE(ffPrintColors(&instance)) return 0; -} \ No newline at end of file +}