Merge branch 'wip/smcv/normalize-trailing-newlines' into 'master'

Normalize C source files to end with exactly one newline

See merge request GNOME/glib!1525
This commit is contained in:
Philip Withnall 2020-06-10 09:19:55 +00:00
commit b202604389
65 changed files with 2 additions and 77 deletions

View File

@ -311,4 +311,3 @@ g_dbus_auth_observer_allow_mechanism (GDBusAuthObserver *observer,
&ret); &ret);
return ret; return ret;
} }

View File

@ -63,4 +63,3 @@ G_END_DECLS
#endif /* __G_FILE_DESCRIPTOR_BASED_H__ */ #endif /* __G_FILE_DESCRIPTOR_BASED_H__ */

View File

@ -866,4 +866,3 @@ g_file_enumerator_real_close_finish (GFileEnumerator *enumerator,
return g_task_propagate_boolean (G_TASK (result), error); return g_task_propagate_boolean (G_TASK (result), error);
} }

View File

@ -121,4 +121,3 @@ gboolean g_inet_address_get_is_mc_site_local (GInetAddress
G_END_DECLS G_END_DECLS
#endif /* __G_INET_ADDRESS_H__ */ #endif /* __G_INET_ADDRESS_H__ */

View File

@ -82,4 +82,3 @@ gboolean g_inet_address_mask_equal (GInetAddressMask *mask,
G_END_DECLS G_END_DECLS
#endif /* __G_INET_ADDRESS_MASK_H__ */ #endif /* __G_INET_ADDRESS_MASK_H__ */

View File

@ -108,4 +108,3 @@ handle_mkdir (int argc, char *argv[], gboolean do_help)
return retval; return retval;
} }

View File

@ -200,4 +200,3 @@ handle_save (int argc, char *argv[], gboolean do_help)
return res ? 0 : 2; return res ? 0 : 2;
} }

View File

@ -175,4 +175,3 @@
#undef __GIO_GIO_H_INSIDE__ #undef __GIO_GIO_H_INSIDE__
#endif /* __G_IO_H__ */ #endif /* __G_IO_H__ */

View File

@ -94,5 +94,3 @@ gboolean _g_local_file_info_set_attributes (char *filename,
G_END_DECLS G_END_DECLS
#endif /* __G_FILE_LOCAL_FILE_INFO_H__ */ #endif /* __G_FILE_LOCAL_FILE_INFO_H__ */

View File

@ -2629,4 +2629,3 @@ _g_cclosure_marshal_VOID__VARIANT_BOXEDv (GClosure *closure,
if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL) if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
g_boxed_free (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1); g_boxed_free (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
} }

View File

@ -73,4 +73,3 @@ void g_network_service_set_scheme (GNetworkService *srv, cons
G_END_DECLS G_END_DECLS
#endif /* __G_NETWORK_SERVICE_H__ */ #endif /* __G_NETWORK_SERVICE_H__ */

View File

@ -102,4 +102,3 @@ G_END_DECLS
#endif /* __G_POLLABLE_INPUT_STREAM_H__ */ #endif /* __G_POLLABLE_INPUT_STREAM_H__ */

View File

@ -123,4 +123,3 @@ G_END_DECLS
#endif /* __G_POLLABLE_OUTPUT_STREAM_H__ */ #endif /* __G_POLLABLE_OUTPUT_STREAM_H__ */

View File

@ -44,4 +44,3 @@ GType g_proxy_resolver_portal_get_type (void);
G_END_DECLS G_END_DECLS
#endif /* __G_PROXY_RESOLVER_PORTAL_H__ */ #endif /* __G_PROXY_RESOLVER_PORTAL_H__ */

View File

@ -6173,4 +6173,3 @@ g_socket_set_option (GSocket *socket,
#endif #endif
return FALSE; return FALSE;
} }

View File

@ -56,4 +56,3 @@ GList *g_srv_target_list_sort (GList *targets);
G_END_DECLS G_END_DECLS
#endif /* __G_SRV_TARGET_H__ */ #endif /* __G_SRV_TARGET_H__ */

View File

@ -534,4 +534,3 @@ dl_calculate (dep_list *before,
dl_shallow_free (pre); dl_shallow_free (pre);
dl_shallow_free (was); dl_shallow_free (was);
} }

View File

@ -194,5 +194,3 @@ _kh_dir_diff (kqueue_sub *sub, gboolean handle_deleted)
dl_free (was); dl_free (was);
} }

View File

@ -26,4 +26,3 @@ main (int argc, char *argv[])
return 0; return 0;
} }

View File

@ -600,4 +600,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -221,4 +221,3 @@ main (int argc,
return g_test_run(); return g_test_run();
} }

View File

@ -310,4 +310,3 @@ main (int argc,
return ret; return ret;
} }

View File

@ -223,4 +223,3 @@ main (int argc,
return g_test_run (); return g_test_run ();
} }

View File

@ -1451,4 +1451,3 @@ main (int argc,
return g_test_run(); return g_test_run();
} }

View File

@ -181,4 +181,4 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -292,4 +292,3 @@ main (int argc,
return g_test_run(); return g_test_run();
} }

View File

@ -1387,4 +1387,3 @@ main (int argc,
return result; return result;
} }

View File

@ -26,4 +26,3 @@ g_io_module_query (void)
{ {
return NULL; return NULL;
} }

View File

@ -92,4 +92,3 @@ main (int argc,
return g_test_run(); return g_test_run();
} }

View File

@ -1957,4 +1957,3 @@ main (int argc,
return g_test_run(); return g_test_run();
} }

View File

@ -211,4 +211,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -178,4 +178,3 @@ main (int argc, char *argv[])
return ret; return ret;
} }

View File

@ -467,4 +467,3 @@ main (int argc,
return g_test_run (); return g_test_run ();
} }

View File

@ -178,4 +178,3 @@ _xdg_mime_icon_list_dump (XdgIconList *list)
} }
#endif #endif

View File

@ -215,4 +215,3 @@ _xdg_mime_parent_list_dump (XdgParentList *list)
} }
#endif #endif

View File

@ -635,4 +635,3 @@ g_dngettext (const gchar *domain,
* *
* Since: 2.18 * Since: 2.18
*/ */

View File

@ -59,4 +59,3 @@ glib__private__ (void)
return &table; return &table;
} }

View File

@ -44,4 +44,3 @@
#endif /* __G_GNULIB_H__ */ #endif /* __G_GNULIB_H__ */

View File

@ -27,4 +27,4 @@ int
gl_isinfl (long double x) gl_isinfl (long double x)
{ {
return gl_isinfd (x); return gl_isinfd (x);
} }

View File

@ -143,8 +143,3 @@ int _g_gnulib_vasprintf (char **result, char const *format, va_list args)
return length; return length;
} }

View File

@ -50,6 +50,3 @@ int _g_gnulib_vasprintf (char **result,
#endif /* __GNULIB_PRINTF_H__ */ #endif /* __GNULIB_PRINTF_H__ */

View File

@ -54,4 +54,3 @@
#endif #endif
#endif /* __G_PRINTF_H__ */ #endif /* __G_PRINTF_H__ */

View File

@ -1769,4 +1769,3 @@ g_close (gint fd,
} }
return TRUE; return TRUE;
} }

View File

@ -209,4 +209,3 @@ g_uuid_string_random (void)
return g_uuid_to_string (&uuid); return g_uuid_to_string (&uuid);
} }

View File

@ -2033,4 +2033,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -312,4 +312,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -784,5 +784,3 @@ main (int argc, char** argv)
return g_test_run (); return g_test_run ();
} }

View File

@ -94,4 +94,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -92,4 +92,3 @@ int main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -346,4 +346,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -513,4 +513,3 @@ main (int argc,
return g_test_run (); return g_test_run ();
} }

View File

@ -238,5 +238,3 @@ main (int argc, char** argv)
return g_test_run (); return g_test_run ();
} }

View File

@ -114,4 +114,3 @@ main (int argc,
return g_test_run (); return g_test_run ();
} }

View File

@ -1416,4 +1416,3 @@ main (int argc,
return g_test_run (); return g_test_run ();
} }

View File

@ -125,4 +125,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -463,4 +463,3 @@ main (int argc, char *argv[])
return g_test_run (); return g_test_run ();
} }

View File

@ -4907,4 +4907,3 @@ g_type_ensure (GType type)
if (G_UNLIKELY (type == (GType)-1)) if (G_UNLIKELY (type == (GType)-1))
g_error ("can't happen"); g_error ("can't happen");
} }

View File

@ -5,4 +5,3 @@ int main(int argc, char **argv)
g_assert(42 < 0); g_assert(42 < 0);
return 0; return 0;
} }

View File

@ -116,4 +116,3 @@ main (int argc,
return 0; return 0;
} }

View File

@ -418,4 +418,3 @@ main (int argc,
return 0; return 0;
} }

View File

@ -64,4 +64,3 @@ test_module_new (TestModuleRegisterFunc register_func)
return G_TYPE_MODULE (module); return G_TYPE_MODULE (module);
} }

View File

@ -134,4 +134,3 @@ main (int argc,
return 0; return 0;
} }

View File

@ -509,5 +509,3 @@ g_print ("testing %d years\n", n_check_years);
return (notpassed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; return (notpassed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
} }

View File

@ -96,5 +96,3 @@ int main(int argc, char** argv)
return 0; return 0;
} }

View File

@ -234,4 +234,3 @@ main (int argc, char **argv)
return 0; return 0;
} }