Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 948ffa1

Browse files
committed
core.stdc.stdio: Move 'pure' to the RHS
1 parent 891eaf7 commit 948ffa1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/core/stdc/string.d

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,49 +29,49 @@ nothrow:
2929
@nogc:
3030

3131
///
32-
pure void* memchr(return const void* s, int c, size_t n);
32+
void* memchr(return const void* s, int c, size_t n) pure;
3333
///
34-
pure int memcmp(scope const void* s1, scope const void* s2, size_t n);
34+
int memcmp(scope const void* s1, scope const void* s2, size_t n) pure;
3535
///
36-
pure void* memcpy(return void* s1, scope const void* s2, size_t n);
36+
void* memcpy(return void* s1, scope const void* s2, size_t n) pure;
3737
version (Windows)
3838
{
3939
///
4040
int memicmp(scope const char* s1, scope const char* s2, size_t n);
4141
}
4242
///
43-
pure void* memmove(return void* s1, scope const void* s2, size_t n);
43+
void* memmove(return void* s1, scope const void* s2, size_t n) pure;
4444
///
45-
pure void* memset(return void* s, int c, size_t n);
45+
void* memset(return void* s, int c, size_t n) pure;
4646

4747
///
48-
pure char* strcpy(return char* s1, scope const char* s2);
48+
char* strcpy(return char* s1, scope const char* s2) pure;
4949
///
50-
pure char* strncpy(return char* s1, scope const char* s2, size_t n);
50+
char* strncpy(return char* s1, scope const char* s2, size_t n) pure;
5151
///
52-
pure char* strcat(return char* s1, scope const char* s2);
52+
char* strcat(return char* s1, scope const char* s2) pure;
5353
///
54-
pure char* strncat(return char* s1, scope const char* s2, size_t n);
54+
char* strncat(return char* s1, scope const char* s2, size_t n) pure;
5555
///
56-
pure int strcmp(scope const char* s1, scope const char* s2);
56+
int strcmp(scope const char* s1, scope const char* s2) pure;
5757
///
5858
int strcoll(scope const char* s1, scope const char* s2);
5959
///
60-
pure int strncmp(scope const char* s1, scope const char* s2, size_t n);
60+
int strncmp(scope const char* s1, scope const char* s2, size_t n) pure;
6161
///
6262
size_t strxfrm(scope char* s1, scope const char* s2, size_t n);
6363
///
64-
pure inout(char)* strchr(return inout(char)* s, int c);
64+
inout(char)* strchr(return inout(char)* s, int c) pure;
6565
///
66-
pure size_t strcspn(scope const char* s1, scope const char* s2);
66+
size_t strcspn(scope const char* s1, scope const char* s2) pure;
6767
///
68-
pure inout(char)* strpbrk(return inout(char)* s1, scope const char* s2);
68+
inout(char)* strpbrk(return inout(char)* s1, scope const char* s2) pure;
6969
///
70-
pure inout(char)* strrchr(return inout(char)* s, int c);
70+
inout(char)* strrchr(return inout(char)* s, int c) pure;
7171
///
72-
pure size_t strspn(scope const char* s1, scope const char* s2);
72+
size_t strspn(scope const char* s1, scope const char* s2) pure;
7373
///
74-
pure inout(char)* strstr(return inout(char)* s1, scope const char* s2);
74+
inout(char)* strstr(return inout(char)* s1, scope const char* s2) pure;
7575
///
7676
char* strtok(return char* s1, scope const char* s2);
7777
///
@@ -121,6 +121,6 @@ else version (CRuntime_UClibc)
121121
const(char)* strerror_r(int errnum, return char* buf, size_t buflen);
122122
}
123123
///
124-
pure size_t strlen(scope const char* s);
124+
size_t strlen(scope const char* s) pure;
125125
///
126126
char* strdup(scope const char *s);

0 commit comments

Comments
 (0)