Commit Graph

190 Commits

Author SHA1 Message Date
Paul Beckingham
bc90b9a4e1 l10n: Eliminated STRING_UTIL_CONFIRM_* 2018-05-13 23:46:17 -04:00
Paul Beckingham
ff02cf8613 l10n: Eliminated STRING_ERROR_CONFIRM_SIGINT 2018-05-13 23:45:58 -04:00
Paul Beckingham
216d4d63bc Copyright 2018 2018-05-13 23:30:21 -04:00
Paul Beckingham
8f2059a4c4 util: Removed unused strippedLength() function 2018-05-13 23:05:35 -04:00
Paul Beckingham
b6d65a434b util: Added helper function to properly manage table header color/underline 2018-05-13 23:01:45 -04:00
Paul Beckingham
180e018a36 util: Removed unused header 2018-05-13 22:50:21 -04:00
Paul Beckingham
14e047e7c4 util: Migrated osName to libshared 2018-05-13 22:21:16 -04:00
Paul Beckingham
88516acdaa Copyright update 2018-05-13 20:50:26 -04:00
Paul Beckingham
74e50359b5 util: Migrated obfuscateText calls to libshared 2018-05-13 20:40:34 -04:00
Paul Beckingham
abac5bdf48 util: Added missing include 2018-05-13 20:37:08 -04:00
Paul Beckingham
a6c8303839 text: Eliminated module 2018-05-13 20:32:05 -04:00
Paul Beckingham
ec84d0f372 util: Migrated optionalBlankLine from text 2018-05-13 20:31:47 -04:00
Paul Beckingham
b4e4727887 util: Migrated strippedLength from text 2018-05-13 20:31:11 -04:00
Paul Beckingham
14e3038571 util: Migrated nontrivial from text 2018-05-13 20:30:51 -04:00
Paul Beckingham
9ae171f57c util: Migrated obfuscateText from text 2018-05-13 20:30:34 -04:00
Paul Beckingham
db0f8d33e1 util: Removed confirm 2018-05-13 20:27:57 -04:00
Paul Beckingham
f99fc16e14 util: Removed execute 2018-05-13 20:27:42 -04:00
Paul Beckingham
4bbb5fadb3 util: Removed formatBytes 2018-05-13 20:27:23 -04:00
Paul Beckingham
8a43f4902d libhsared: migrating from local to libshared 2018-05-13 20:26:34 -04:00
Paul Beckingham
814d7d69fa Cleanup: Don't use string literals when character literals are needed 2018-05-13 20:14:11 -04:00
Paul Beckingham
f29583d81d util: Corrected comment 2018-05-13 19:47:17 -04:00
Paul Beckingham
48167f53eb Cleanup: Converted all sprintf to snprintf 2018-05-13 19:11:52 -04:00
Paul Beckingham
abefdd506c Cleanup: Removed redundant processing of OS name 2018-05-13 19:10:06 -04:00
Kent R. Spillner
933b2d8ebe OpenBSD also provides uuid support directly in its libc, same as FreeBSD. 2016-01-15 12:35:10 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
5c8b7148b4 Task: Moved include to top of list, per flint++ recommendation 2015-11-01 19:59:10 -05:00
Paul Beckingham
182b5427cd Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer 2015-10-30 11:17:23 -04:00
Paul Beckingham
51def4b12b Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer 2015-10-30 10:57:14 -04:00
Paul Beckingham
5110a83efa Cleanup: Corrected object initialization using {} 2015-10-16 08:22:03 -04:00
Paul Beckingham
0772f7ea36 Code Cleanup: Removed unnecessary include 2015-10-03 19:28:40 -04:00
Paul Beckingham
27fd8910ae TW-1655: Inform "No changes made." when quitting early due to signal
- Thanks to Daniel Shahaf.
2015-08-14 17:20:16 -04:00
Paul Beckingham
5914418fb1 Test: Corrected util.cpp/confirm calls to check std::cin::eof 2015-07-29 22:37:59 -04:00
Paul Beckingham
70e4d16768 util: Sends all read input to debug output 2015-07-24 12:51:52 -04:00
Paul Beckingham
18046ae92d util: Deliberately initializing confirmation responses inside the loop 2015-07-24 12:49:11 -04:00
Paul Beckingham
ff88d9da16 Bug: ::execute concatenates output
- The ::execute function concatenates output to the std::string provided, which
  is almost never wanted. Now it clears first.
2015-05-25 09:22:14 -04:00
Paul Beckingham
7bbc794d3a C++11: N2672 Initializer lists
- Modified code to use the more compact and readable initializer lists.
2015-05-24 13:03:02 -04:00
Wilhelm Schuermann
8800ad33cf Util: Minor formatting cleanup of execute() 2015-05-13 20:59:59 +02:00
Paul Beckingham
e74c6963a9 C++11: Cleaned up program framework with range-based for 2015-05-11 17:50:53 -04:00
Paul Beckingham
c346cf9395 Portability: Use fcntl instead of flock
- POSIX file locking mechanism, eliminating platform-specific code.
2015-05-02 11:47:39 -04:00
Wilhelm Schuermann
af772f4c49 Util
- Closed dangling pipes in execute (), resolving problems when a hook script
  forks.
2015-02-22 14:03:30 -05:00
Paul Beckingham
528e72062b Hooks
- Fixed the ::execute function used by Hooks and CmdCalendar to run commands,
  by following the convention:

    "The first argument, by convention, should point to the file name associated
     with the file being executed."
     (man execvp)
2015-02-07 14:08:58 -05:00
Paul Beckingham
41003fc78b Code Cleanup
- Removed whitespace at EOL.
2015-01-17 19:05:09 -05:00
Wilhelm Schuermann
d2928dc4e4 TW-1516 Hook input not ended with EOF
- Made execute() send EOF when all input is written.
- Minor code cleanup.
2015-01-17 19:04:31 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
9a95696872 Code Cleanup
- Improved white space for readability and style compliance.
2014-11-28 12:15:00 -05:00
Paul Beckingham
8ca096689c Util
- Minor formatting.
2014-10-06 23:10:19 -04:00
Wilhelm Schuermann
d5648b511c Util
- Added includes to make FreeBSD happy.
- Added more error handling.
2014-10-03 14:15:11 -04:00
Wilhelm Schuermann
1fa4c8ff7b Util
- Reimplemented execute(), this time (hopefully) deadlock-proof.
- Added error handling.
2014-10-02 14:50:47 -04:00
Paul Beckingham
5b7e6df00b Util
- The execute() function needed to fill the STDIN pipe before the fork, not
  after the fork, so the data is ready before the child process reads.
2014-09-14 17:43:19 -04:00
Paul Beckingham
e15907f3f1 Code Cleanup
- Removed unused uti.cpp indentTree function.
2014-09-07 17:32:46 -04:00