mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Use C11 types instead of GLib types
This is an almost entirely mechanical* conversion from (for example) `gint` → `int`, `guint8` → `uint8_t`, etc. It is not entirely complete, as many GLib functions are still used in libsysprof-capture, which necessitate some use of GLib types. It also avoids renaming `gboolean` → `bool` as that’s a slightly more controversial change which will happen in the following commit. *Code was manually realigned afterwards. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -68,10 +68,10 @@ typedef const SysprofCaptureFrame *(*ReadDelegate) (SysprofCaptureReader *);
|
||||
|
||||
struct _SysprofCaptureCursor
|
||||
{
|
||||
volatile gint ref_count;
|
||||
volatile int ref_count;
|
||||
GPtrArray *conditions;
|
||||
SysprofCaptureReader *reader;
|
||||
guint reversed : 1;
|
||||
unsigned int reversed : 1;
|
||||
};
|
||||
|
||||
static void
|
||||
@ -138,7 +138,7 @@ sysprof_capture_cursor_unref (SysprofCaptureCursor *self)
|
||||
void
|
||||
sysprof_capture_cursor_foreach (SysprofCaptureCursor *self,
|
||||
SysprofCaptureCursorCallback callback,
|
||||
gpointer user_data)
|
||||
void *user_data)
|
||||
{
|
||||
g_return_if_fail (self != NULL);
|
||||
g_return_if_fail (self->reader != NULL);
|
||||
@ -231,7 +231,7 @@ sysprof_capture_cursor_foreach (SysprofCaptureCursor *self,
|
||||
}
|
||||
else
|
||||
{
|
||||
for (guint i = 0; i < self->conditions->len; i++)
|
||||
for (size_t i = 0; i < self->conditions->len; i++)
|
||||
{
|
||||
const SysprofCaptureCondition *condition = g_ptr_array_index (self->conditions, i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user