Skip to content

Commit

Permalink
remove util/strings
Browse files Browse the repository at this point in the history
there was a copy of clibs/strings in util that caused conflicts.
  • Loading branch information
ennorehling committed Aug 26, 2023
1 parent d7dd6f4 commit 9c52e33
Show file tree
Hide file tree
Showing 65 changed files with 107 additions and 861 deletions.
2 changes: 1 addition & 1 deletion clibs
Submodule clibs updated 4 files
+31 −18 strings.c
+36 −48 strings.h
+5 −0 test_cmdline.c
+9 −0 test_strings.c
1 change: 0 additions & 1 deletion se/eressea.vpj
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@
<F N="../src/kernel/spellbook.c"/>
<F N="../src/spells/spells.c"/>
<F N="../src/spy.c"/>
<F N="../src/util/strings.c"/>
<F N="../critbit/strtolh.c"/>
<F N="../src/study.c"/>
<F N="../src/summary.c"/>
Expand Down
2 changes: 1 addition & 1 deletion src/attributes/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include <util/log.h>
#include <kernel/gamedata.h>
#include <util/resolve.h>
#include <util/strings.h>

#include <strings.h>
#include <storage.h>

/* stdc includes */
Expand Down
3 changes: 2 additions & 1 deletion src/attributes/racename.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "racename.h"

#include <kernel/attrib.h>
#include <util/strings.h>

#include <strings.h>

/* libc includes */
#include <stdlib.h>
Expand Down
3 changes: 2 additions & 1 deletion src/attributes/raceprefix.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "raceprefix.h"

#include <kernel/attrib.h>
#include <util/strings.h>

#include <strings.h>

#include <assert.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion src/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
#include "util/macros.h"
#include "util/message.h"
#include "util/parser.h"
#include "util/strings.h"
#include "util/stats.h"
#include "util/rand.h"
#include "util/rng.h"

#include <strings.h>
#include <selist.h>

/* libc includes */
Expand Down
3 changes: 2 additions & 1 deletion src/battle.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include "util/language.h"
#include "util/message.h"
#include "util/rand.h"
#include "util/strings.h"
#include "util/variant.h"

#include <strings.h>

#include <CuTest.h>

#include <stdbool.h>
Expand Down
3 changes: 2 additions & 1 deletion src/bind_building.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

#include <util/log.h>
#include <util/language.h>
#include <util/strings.h>

#include <strings.h>

#include <lua.h>
#include <lauxlib.h>
Expand Down
3 changes: 2 additions & 1 deletion src/bind_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#include <util/language.h>
#include <util/log.h>
#include <util/path.h>
#include <util/strings.h>

#include <strings.h>

#include <cJSON.h>

Expand Down
3 changes: 2 additions & 1 deletion src/bind_region.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include <util/base36.h>
#include <util/log.h>
#include <util/message.h>
#include <util/strings.h>

#include <strings.h>

#include <attributes/key.h>
#include <attributes/racename.h>
Expand Down
3 changes: 2 additions & 1 deletion src/bind_ship.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

#include <util/language.h>
#include <util/log.h>
#include <util/strings.h>

#include <strings.h>

#include <tolua.h>
#include <lauxlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/bind_unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#include <util/base36.h>
#include <util/log.h>
#include <util/order_parser.h> // for OP_Parser, OrderParserStruct
#include <util/strings.h>
#include <util/variant.h>

#include <selist.h>
#include <strings.h>

#include <stb_ds.h>

Expand Down
4 changes: 2 additions & 2 deletions src/creport.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ static char g_bigbuf[BUFFERSIZE];
#include <kernel/attrib.h>
#include <util/base36.h>
#include <util/crmessage.h>
#include <util/strings.h>
#include <util/language.h>
#include <util/log.h>
#include <util/macros.h>
#include <util/message.h>
#include <util/nrmessage.h>

#include <selist.h>
#include <filestream.h>
#include <selist.h>
#include <stream.h>
#include <strings.h>

#include <stb_ds.h>

Expand Down
4 changes: 2 additions & 2 deletions src/defaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include <util/path.h>
#include <util/rand.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/umlaut.h>
#include <util/unicode.h>

Expand All @@ -64,8 +63,9 @@
#include <spells/regioncurse.h>
#include <spells/unitcurse.h>

#include <selist.h>
#include <iniparser.h>
#include <selist.h>
#include <strings.h>

#include <stb_ds.h>

Expand Down
2 changes: 1 addition & 1 deletion src/eressea.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#include "vortex.h"
#include "wormhole.h"

#include <util/strings.h>
#include <strings.h>

#include <assert.h>
#include <errno.h>
Expand Down
3 changes: 2 additions & 1 deletion src/exparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#include "util/message.h"
#include "util/crmessage.h"
#include "util/nrmessage.h"
#include "util/strings.h"

#include <strings.h>

#include <expat.h>
#include <stb_ds.h>
Expand Down
2 changes: 1 addition & 1 deletion src/gamedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "kernel/faction.h"
#include "kernel/db/driver.h"

#include "util/strings.h"
#include <strings.h>

static int generate_factions(void *data, db_faction *results, int nresults)
{
Expand Down
2 changes: 1 addition & 1 deletion src/jsonconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include "util/param.h"
#include "util/path.h"
#include "util/pofile.h"
#include "util/strings.h"

#include <strings.h>

/* external libraries */
#include <stb_ds.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/alliance.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include <util/message.h>
#include <util/parser.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/umlaut.h>

#include <selist.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/ally.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include "objtypes.h"

#include <kernel/attrib.h>
#include <util/strings.h>
#include <kernel/gamedata.h>

#include <storage.h>
#include <strings.h>

#include <assert.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/kernel/attrib.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "attrib.h"

#include <util/log.h>
#include <util/strings.h>
#include <util/variant.h>
#include <kernel/gamedata.h>

#include <storage.h>
#include <critbit.h>
#include <storage.h>
#include <strings.h>

#include <assert.h>
#include <string.h>
Expand Down
6 changes: 4 additions & 2 deletions src/kernel/attrib.test.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#include "attrib.h"

#include <kernel/gamedata.h>
#include <util/strings.h>
#include <util/variant.h> // for variant

#include <memstream.h>
#include <storage.h>
#include <stream.h> // for stream, stream_i
#include <memstream.h>
#include <strings.h>

#include <CuTest.h>
#include <tests.h>

#include <string.h>

static void test_attrib_new(CuTest * tc)
Expand Down
3 changes: 2 additions & 1 deletion src/kernel/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
#include <util/param.h>
#include <util/parser.h>
#include <util/resolve.h>
#include <util/strings.h>

#include <strings.h>

/* from libc */
#include <assert.h>
Expand Down
6 changes: 3 additions & 3 deletions src/kernel/building.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
#include <util/param.h>
#include <util/resolve.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/umlaut.h>

#include <storage.h>
#include <selist.h>
#include <critbit.h>
#include <selist.h>
#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
3 changes: 2 additions & 1 deletion src/kernel/building.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
#include "region.h"
#include "unit.h"

#include <util/strings.h>
#include "util/variant.h" // for variant

#include <strings.h>

#include <CuTest.h>
#include <tests.h>
#include <stdbool.h> // for false, true
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include <util/log.h>
#include <util/macros.h>
#include <util/rng.h>
#include <util/strings.h>

#include <selist.h>
#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
3 changes: 2 additions & 1 deletion src/kernel/equipment.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#include <util/log.h>
#include <util/rand.h>
#include <util/rng.h>
#include <util/strings.h>

#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/* util includes */
#include <kernel/gamedata.h>
#include <util/log.h>
#include <util/strings.h>

#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/faction.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
#include <util/password.h>
#include <util/path.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/variant.h>

#include <selist.h>
#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#include <util/base36.h>
#include <kernel/gamedata.h>
#include <util/resolve.h>
#include <util/strings.h>
#include <util/unicode.h>

#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#include <util/macros.h>
#include <util/message.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/umlaut.h>

#include <critbit.h>
#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/order.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <util/log.h>
#include <util/param.h>
#include <util/parser.h>
#include <util/strings.h>

#include <stream.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/* util includes */
#include <kernel/attrib.h>
#include <util/resolve.h>
#include <util/strings.h>
#include <util/lists.h>

#include <storage.h>
#include <strings.h>

/* libc includes */
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/race.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#include <util/language.h>
#include <util/log.h>
#include <util/rng.h>
#include <util/strings.h>
#include <util/variant.h>

#include <storage.h>
#include <strings.h>

/* attrib includes */
#include <attributes/raceprefix.h>
Expand Down
Loading

0 comments on commit 9c52e33

Please sign in to comment.