[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 4e9297233d 273/427: Don't rely on C99 mode.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 4e9297233d 273/427: Don't rely on C99 mode. |
Date: |
Tue, 13 Dec 2022 02:59:51 -0500 (EST) |
branch: elpa/emacsql
commit 4e9297233daf885784d8379a387c23e7de13fea7
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Don't rely on C99 mode.
---
sqlite/Makefile | 2 +-
sqlite/emacsql.c | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/sqlite/Makefile b/sqlite/Makefile
index 71e67453cf..dae2ecd5a5 100644
--- a/sqlite/Makefile
+++ b/sqlite/Makefile
@@ -9,7 +9,7 @@ else
LDLIBS = -ldl
endif
-CFLAGS = -O2 --std=c99 -W -Wall -Wextra
+CFLAGS = -O2 -W -Wall -Wextra
CFLAGS += -DSQLITE_THREADSAFE=0
CFLAGS += -DSQLITE_DEFAULT_FOREIGN_KEYS=1
CFLAGS += -DSQLITE_ENABLE_FTS4
diff --git a/sqlite/emacsql.c b/sqlite/emacsql.c
index 3fcc5655b1..a3f4484d7b 100644
--- a/sqlite/emacsql.c
+++ b/sqlite/emacsql.c
@@ -7,8 +7,8 @@
#define FALSE 0
char* escape(const char *message) {
- int count = 0, length_orig = strlen(message);
- for (int i = 0; i < length_orig; i++) {
+ int i, count = 0, length_orig = strlen(message);
+ for (i = 0; i < length_orig; i++) {
if (message[i] == '"') {
count++;
}
@@ -136,7 +136,8 @@ int main(int argc, char **argv) {
} else {
printf("\n (");
}
- for (int i = 0; i < ncolumns; i++) {
+ int i;
+ for (i = 0; i < ncolumns; i++) {
if (i > 0) {
printf(" ");
}
- [nongnu] elpa/emacsql ed77eac846 237/427: Add string prepared statements., (continued)
- [nongnu] elpa/emacsql ed77eac846 237/427: Add string prepared statements., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 847196cafa 226/427: Set tty to raw in psql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3e5ce21b0d 242/427: Tweak the new implementation notes., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a459708684 244/427: Move tests into their own directory., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4db068920d 247/427: Provide MySQL front-end., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dce6736e04 249/427: Oops, add new MySQL module to the Makefile., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fcba876d0e 251/427: Solve the tty (pty) issue in MySQL., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fb0e2d5423 256/427: Fix typecase typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a6e859f1b5 260/427: Normalize darwin OS., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4332bd67ec 271/427: Flesh out the main header a bit more., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4e9297233d 273/427: Don't rely on C99 mode.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 7963261ef3 270/427: Bump to version 1.0.0., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6f6533ab70 272/427: Add Cygwin note., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 45f43323ad 275/427: Check the compiler error code., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2f606fdd2d 300/427: Fix with-transaction macro to return results., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 76acd4f8a1 304/427: Add a test for reserved word escaping., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a6155464c7 274/427: Try to build the package locally if possible., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4a58806d64 299/427: Improve new indentation a little bit., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c512f4287c 315/427: Add back-end note to README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a0587f1b5f 311/427: Fix docstring on emacsql-enable-debugging., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9cf4e267cc 310/427: Bump up to version 1.0.2., ELPA Syncer, 2022/12/13