Kaydet (Commit) f492e45d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Convert sal/osl/unx/tempfile.c to C++

...for easier future maintenance

Change-Id: I501076882daa7f36f414f9fa62f790eb85ac3259
üst d62b6d84
...@@ -165,6 +165,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ ...@@ -165,6 +165,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/process_impl \ sal/osl/unx/process_impl \
sal/osl/unx/profile \ sal/osl/unx/profile \
sal/osl/unx/security \ sal/osl/unx/security \
sal/osl/unx/tempfile \
$(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \ $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
)) ))
$(eval $(call gb_Library_add_cobjects,sal,\ $(eval $(call gb_Library_add_cobjects,sal,\
...@@ -175,7 +176,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\ ...@@ -175,7 +176,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\
sal/osl/unx/readwrite_helper \ sal/osl/unx/readwrite_helper \
sal/osl/unx/socket \ sal/osl/unx/socket \
sal/osl/unx/system \ sal/osl/unx/system \
sal/osl/unx/tempfile \
sal/osl/unx/thread \ sal/osl/unx/thread \
sal/osl/unx/time \ sal/osl/unx/time \
)) ))
......
...@@ -217,7 +217,7 @@ static oslFileError osl_create_temp_file_impl_( ...@@ -217,7 +217,7 @@ static oslFileError osl_create_temp_file_impl_(
offset_file_name++; offset_file_name++;
} }
while(1) /* try until success */ while(true) /* try until success */
{ {
osl_gen_random_name_impl_(&rand_name); osl_gen_random_name_impl_(&rand_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment