Skip to content

Commit f8c8994

Browse files
committed
s/intern/strings/
1 parent 49b0ca5 commit f8c8994

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
CFLAGS += -Os
1919
endif
2020

21-
libintern.a: intern.o block.o optimize.o
21+
libintern.a: strings.o block.o optimize.o
2222
$(AR) rs $@ $^
2323

2424
tests: test.o libintern.a

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
- String repository optimization based on frequency analysis (improve locality)
1111
- Snapshots + restore to a previous state
1212

13-
See [intern.h][intern.h] and [optimize.h][optimize.h] for usage.
13+
See [strings.h][strings.h] and [optimize.h][optimize.h] for usage.
1414

1515

16-
[intern.h]: https://github.com/chriso/intern.c/blob/master/intern.h
16+
[strings.h]: https://github.com/chriso/intern.c/blob/master/strings.h
1717
[optimize.h]: https://github.com/chriso/intern.c/blob/master/optimize.h

benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <string.h>
33
#include <assert.h>
44

5-
#include "intern.h"
5+
#include "strings.h"
66
#include "unsigned.h"
77

88
int main() {

block.h

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef INTERN_BLOCK_H_
2+
#define INTERN_BLOCK_H_
3+
14
#include <stddef.h>
25
#include <stdbool.h>
36

@@ -33,3 +36,5 @@ bool block_restore(struct block*, const struct block_snapshot*);
3336

3437
// Get the total bytes allocated, including overhead
3538
size_t block_allocated_bytes(const struct block*);
39+
40+
#endif

optimize.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef INTERN_OPTIMIZE_H_
22
#define INTERN_OPTIMIZE_H_
33

4-
#include "intern.h"
4+
#include "strings.h"
55

66
struct strings_frequency;
77

intern.c strings.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <string.h>
33
#include <limits.h>
44

5-
#include "intern.h"
5+
#include "strings.h"
66
#include "tree.h"
77
#include "branch.h"
88

intern.h strings.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INTERN_H_
2-
#define INTERN_H_
1+
#ifndef INTERN_STRINGS_H_
2+
#define INTERN_STRINGS_H_
33

44
#include <stdint.h>
55

test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# include <limits.h>
77
#endif
88

9-
#include "intern.h"
9+
#include "strings.h"
1010
#include "optimize.h"
1111
#include "unsigned.h"
1212

0 commit comments

Comments
 (0)