Paul Beckingham
ec1323d9ee
util: Migrated osName to libshared
2017-01-08 11:52:04 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
dc851fe4b2
util: Migrated obfuscateText calls to libshared
2016-12-17 16:54:11 -05:00
Paul Beckingham
c77487994e
util: Added missing include
2016-12-12 08:28:24 -05:00
Paul Beckingham
b2ad9e96bd
text: Eliminated module
2016-12-11 17:51:44 -05:00
Paul Beckingham
87757fb36f
util: Migrated optionalBlankLine from text
2016-12-11 17:46:06 -05:00
Paul Beckingham
a0d88aaef8
util: Migrated strippedLength from text
2016-12-11 17:39:11 -05:00
Paul Beckingham
0027c9face
util: Migrated nontrivial from text
2016-12-11 17:34:50 -05:00
Paul Beckingham
a7d90fa1fa
util: Migrated obfuscateText from text
2016-12-11 17:29:03 -05:00
Paul Beckingham
6cdb0d4b95
util: Removed confirm
2016-12-06 07:32:19 -05:00
Paul Beckingham
c12deb535e
util: Removed execute
2016-12-06 07:28:50 -05:00
Paul Beckingham
45e1622358
util: Removed formatBytes
2016-12-06 07:26:06 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00
Paul Beckingham
8922728888
Cleanup: Don't use string literals when character literals are needed
2016-10-14 23:11:28 -04:00
Paul Beckingham
d27cb75ec1
util: Corrected comment
2016-05-08 16:36:25 -04:00
Paul Beckingham
2d20f4d57b
Cleanup: Converted all sprintf to snprintf
2016-02-25 00:19:38 -05:00
Paul Beckingham
549b970e49
Cleanup: Removed redundant processing of OS name
2016-02-24 23:43:23 -05: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
Paul Beckingham
adee92a6b9
Code Cleanup
...
- Removed unused util.cpp escape function.
2014-09-07 17:27:50 -04:00
Paul Beckingham
66bb5b3906
Code Cleanup
...
- Removed unused util.cpp encode and decode functions.
2014-09-07 17:25:47 -04:00
Paul Beckingham
bffc7a2ac8
Code Cleanup
...
- Removed unused util.cpp combine function.
2014-09-07 17:14:03 -04:00
Paul Beckingham
4aa79dccfa
Code Cleanup
...
- Removed unused util.cpp round_up_to and burndown_size functions.
2014-09-07 17:10:06 -04:00
Paul Beckingham
4f54578241
Code Cleanup
...
- Removed unused util.cpp compressIds function.
2014-09-07 16:57:05 -04:00
Paul Beckingham
8a31ccabdc
Code Cleanup
...
- Removed unused util.cpp delay function.
2014-09-07 16:48:42 -04:00