mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
AK: Add a forward declaration header
You can now #include <AK/Forward.h> to get most of the AK types as forward declarations. Header dependency explosion is one of the main contributors to compile times at the moment, so this is a step towards smaller include graphs.
This commit is contained in:
parent
8249e666fc
commit
3bbf4610d2
35 changed files with 178 additions and 53 deletions
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
|
@ -69,7 +70,7 @@ int main(int argc, char** argv)
|
|||
if (!ok) {
|
||||
new_gid = getgrnam(parts[1].characters())->gr_gid;
|
||||
|
||||
if(!new_gid) {
|
||||
if (!new_gid) {
|
||||
fprintf(stderr, "Invalid gid: '%s'\n", parts[1].characters());
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue