Commit Graph

4 Commits

Author SHA1 Message Date
Xiang Xiao 6a3c2aded6 Fix wait loop and void cast (#24)
* Simplify EINTR/ECANCEL error handling

1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx

* Unify the void cast usage

1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt a8da0e977a Addition of trivial comment 2019-01-22 13:04:02 -06:00
Gregory Nutt b4373e21e7 tools/convert-comments.c: Fix an error in handling of a blank C++ comment before a comment block. For example, this testfile:
1
2  //
3  // Multi-line comment
4  // The second line
5

Was generating this output:

1
2
3   * Multi-line comment
4   * The second line
5   */
6

Now correctly generates:

1
2  /* Multi-line comment
3   * The second line
4   */
5
2019-01-22 10:45:06 -06:00
Gregory Nutt e0608386f3 tools/convert-comments.c: Add a tool to convert C++-style comments to C89 C-style comments. 2018-12-01 19:15:54 -06:00