- The function is static inside your implementation
- If the precondition fails the entire module you have is in an inconsistent state
- For pre-conditions and post-conditions.
| testdiff --git a/gtk/gtktextview.c b/gtk/gtktextview.c | |
| index 3aa1047..1dff1e2 100644 | |
| --- a/gtk/gtktextview.c | |
| +++ b/gtk/gtktextview.c | |
| @@ -53,6 +53,7 @@ | |
| #include "gtkcssstylepropertyprivate.h" | |
| #include "gtkbubblewindowprivate.h" | |
| #include "gtktoolbar.h" | |
| +#include "gtkpixelcacheprivate.h" | |
| #include <limits.h> | |
| #include <pthread.h> | |
| #include <stdlib.h> | |
| typedef struct _queue_t queue_t; | |
| typedef struct _queue_node_t queue_node_t; | |
| struct _queue_node_t |
| /* g-interval-source.c | |
| * | |
| * Copyright (C) 2013 Christian Hergert <christian@hergert.me> | |
| * | |
| * This file is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * This file is distributed in the hope that it will be useful, |
| /* | |
| * Copyright 2013 Christian Hergert <christian@hergert.me> | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright 2013 10gen Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* gcc iobomb.c -o libiobomb.so -shared -fPIC -lpthread */ | |
| #include <assert.h> | |
| #include <dlfcn.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <pthread.h> | |
| #include <unistd.h> | |
| Things that need to be written | |
| ============================== | |
| GbProject // A project container. Can be saved/loaded to/from disk. | |
| GbProjectItem // Base class, for items in a project. | |
| GbProjectFile // A file that can exist in a project. | |
| GbProjectTarget // A target within a project, like a library/program. | |
| GbProjectDependency // Base class, handles success/failure cases. | |
| GbProjectDependencyFramework // Depends on availability of a gnome framework. |
| #!/usr/bin/env python | |
| import cairo | |
| from gi.repository import Gdk | |
| from gi.repository import Gtk | |
| colors = ['a40000', '75507b', '8ae234', '729fcf', 'f57900', | |
| 'c4a000', 'ce5c00', 'eeeeec', '4e9a06', '204a87'] | |
| def next_idx(seq): |
| #include "url-router.h" | |
| static void | |
| user_cb (UrlRouter *router, | |
| SoupServer *server, | |
| SoupMessage *message, | |
| const gchar *path, | |
| GHashTable *params, | |
| GHashTable *query, | |
| SoupClientContext *client, |