Comments (3)
Yes, I would not have noticed this error if I hadn't been using my old pc, which has v9.3.0
installed.
and i used gcc -o editor src/editor.c
to compile the source
from jate.
Thanks for pointing this out.
weirdly enough, my compiler fails to catch this ( even with -Wall
and -pedantic
)
May I know what compiler command did you gave to compile the source ?
Also what version of gcc are you using ? (gcc -v
)
from jate.
looks like you are using gcc 10.x ( or older ), because GCC dropped this after the release of GCC 11 ( In preparation of C2x ).
According to the Release Notes
Several new features from the upcoming C2X revision of the ISO C standard are supported with -std=c2x and -std=gnu2x. Some of these features are also supported as extensions when compiling for older language versions. In addition to the features listed, some features previously supported as extensions and now added to the C standard are enabled by default in C2X mode and not diagnosed with -std=c2x -Wpedantic.
.....
- Labels may appear before declarations and at the end of a compound statement.
Although it should be still be caught, and my compiler should have given out a warning about the same ( given the fact that I have enabled -pedantic
in the command ). I am still investigating to why it failed to do so.
But as the project targets C99, it should be fixed.
from jate.
Related Issues (20)
- implement vertical and horizontal scrolling in the text editor
- implement line navigation
- Make the editor understand tabs
- Editor confusing empty line with end of file
- Status Bar
- Create a message bar to display the info about the editor
- get file to open via command line argument
- Typo mistake HOT 2
- Make the editor render ordinary characters HOT 1
- Render special characters properly when in edit mode HOT 5
- Add "Save to disk" feature HOT 7
- Warn about unsaved changes HOT 2
- Implement a "Save as" feature
- navigation breaks when character is deleted at the starting of line HOT 2
- Editor crashing when user tries to delete character at the beginning of the line. HOT 2
- warnings while doing make [related to c99] HOT 3
- Add functionality to `DEL_KEY`
- Build instructions HOT 1
- Buggy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jate.