Comments (16)
Thank you! A modern Vim should be written in a modern C.
from neovim.
I'd like to contribute and this seems like a pretty easy way to get started. Is this something that is done by hand, file by file? Should Gaelan and I coordinate to make sure we don't edit the same files?
This is my first time contributing to an OS project. Help me to help you!
from neovim.
@iamjboyd Thank you so much! As far as I can tell, the best way to do is to do it by hand, unfortunately. There is a script that will automate it, but it is not very smart about things like comments on the old-style declarations, so even if we used it, we would have to fix it by hand afterward. If you would like to help out, let me know and I can add you as a collaborator on the fork.
Welcome to the OSS community!
from neovim.
I'd just like to throw out that I'm also entirely open to help with this simple bit. (Good excuse to get familiar with the new style).
EDIT: Damn, I didn't realize how old Vim was.
from neovim.
@Tamul @iamjboyd I added you both to the fork, so you can help out. Please comment before you start on a file, so that we don't waste effort on the same file.
from neovim.
I'm going to do digraph.c
.
from neovim.
Also, please try and compile on your own machine before pushing instead of using Travis, so we can avoid "fixup" commits.
from neovim.
OK!
I'll take os_unix.c
Some function calls have the following syntax:
long_u mch_total_mem(special)
int special UNUSED;
I'm guessing UNUSED is to eliminate compiler warnings. Anything special need to be done for the "UNUSED"s?
from neovim.
As far as I can tell, all you need to do is put it after the variable name in the prototype, basically in the same place it is now. Thanks!
from neovim.
I've created a table to keep track of who has done what:
Last Updated 2/23/2014 4:56 US Central Time
Directory | Filename | Assignee | Pushed? |
---|---|---|---|
src | CMakeLists.txt | None | Yes |
src | arabic.c | Gaelan | Yes |
src | arabic.h | Gaelan | Yes |
src | ascii.h | Gaelan | Yes |
src | blowfish.c | Gaelan | Yes |
src | buffer.c | Gaelan | Yes |
src | charset.c | Gaelan | Yes |
src | diff.c | Gaelan | Yes |
src | digraph.c | Gaelan | Yes |
src | edit.c | None | No |
src | eval.c | None | No |
src | ex_cmds.c | None | No |
src | ex_cmds.h | None | No |
src | ex_cmds2.c | None | No |
src | ex_docmd.c | None | No |
src | ex_eval.c | None | No |
src | ex_getln.c | None | No |
src | farsi.c | None | No |
src | farsi.h | None | No |
src | fileio.c | None | No |
src | fold.c | None | No |
src | getchar.c | None | No |
src | globals.h | None | No |
src | hangulin.c | None | No |
src | hardcopy.c | None | No |
src | hashtab.c | None | No |
src | if_cscope.c | None | No |
src | if_cscope.h | None | No |
src | keymap.h | None | No |
src | macros.h | None | No |
src | main.c | None | No |
src | mark.c | None | No |
src | mbyte.c | None | No |
src | memfile.c | None | No |
src | memline.c | None | No |
src | menu.c | None | No |
src | message.c | None | No |
src | misc1.c | None | No |
src | misc2.c | None | No |
src | move.c | None | No |
src | normal.c | None | No |
src | ops.c | None | No |
src | option.c | None | No |
src | option.h | None | No |
src | os_unix.c | iamjboyd | No |
src | os_unix.h | None | No |
src | os_unixx.h | None | No |
src | po/ | None | No |
src | popupmnu.c | None | No |
src | proto/ | None | No |
src | proto.h | None | No |
src | quickfix.c | None | No |
src | regexp.c | None | No |
src | regexp.h | None | No |
src | regexp_nfa.c | None | No |
src | screen.c | None | No |
src | search.c | None | No |
src | sha256.c | None | No |
src | spell.c | None | No |
src | structs.h | None | No |
src | syntax.c | None | No |
src | tag.c | None | No |
src | term.c | None | No |
src | term.h | None | No |
src | testdir/ | None | No |
src | ui.c | None | No |
src | undo.c | None | No |
src | version.c | None | No |
src | version.h | None | No |
src | vim.h | None | No |
src | window.c | None | No |
from neovim.
Thanks! However, I've done and pushed arabic.c
through digraph.c
, so those should be marked as pushed.
from neovim.
OK, I'll go ahead and update.
from neovim.
Should this be compartmentalized in Gaelan’s repo? To me at least, it would make sense to make an issue for each file, or categories of files, and then one of us can assign ourselves to the issue. This makes sure no two people are working on the same file.
from neovim.
Looks like someone used cproto
(which I hadn't heard of before) to automate it it in #91, so I say we just fix the two files that cproto
botched, then call it good.
from neovim.
Sounds good to me. Not going to argue if it works, and makes much less work.
from neovim.
closed by #91
from neovim.
Related Issues (20)
- Commenting prioritizes treesitter injected languages' filetypes' `'commentstring'`, which may be incorrect HOT 2
- Relative floating window rendered on wrong tab page HOT 5
- [Feature request] Make t motion match self closed tags HOT 3
- <C-u>zz does not work on the last line, when the last line is centered, and `scrollof` set to value >0 HOT 1
- C-d and C-u don't move the cursor half the page when viewport collides with the start/end of the file HOT 3
- typst syntax HOT 1
- LSP: configure inlay hint visualization position HOT 12
- crash when typing println!(" in Rust: ts_parser__handle_error: Assertion `did_merge' failed HOT 2
- WSL2: high cpu usage when copy/pastes with win32yank HOT 2
- Feature request: highlight driven `cpo-$` behaviour HOT 1
- Support autocompletion for braces HOT 1
- LSP: tolerate invalid paths in locations_to_items HOT 3
- neovim simply exits while editing a file HOT 3
- When applying a macro in visual mode, the visual selection is lost HOT 5
- `decor_virt_lines` fails on scroll when there are virt_lines outside the viewport HOT 2
- Add better terminal + Vim Session support HOT 3
- Fix wrong type in documentation of `vim.spell.check()` in `runtime/lua/vim/_meta/spell.lua` HOT 1
- omnifunc value gets overriden even when no additional plugins installed HOT 7
- Adding git to build prerequisites HOT 6
- netrw "-" go up dir not working HOT 2
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 neovim.