Git Product home page Git Product logo

Comments (16)

davidzchen avatar davidzchen commented on May 20, 2024

Thank you! A modern Vim should be written in a modern C.

from neovim.

iamjboyd avatar iamjboyd commented on May 20, 2024

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.

Gaelan avatar Gaelan commented on May 20, 2024

@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.

mtayler avatar mtayler commented on May 20, 2024

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.

Gaelan avatar Gaelan commented on May 20, 2024

@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.

Gaelan avatar Gaelan commented on May 20, 2024

I'm going to do digraph.c.

from neovim.

Gaelan avatar Gaelan commented on May 20, 2024

Also, please try and compile on your own machine before pushing instead of using Travis, so we can avoid "fixup" commits.

from neovim.

iamjboyd avatar iamjboyd commented on May 20, 2024

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.

Gaelan avatar Gaelan commented on May 20, 2024

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.

iamjboyd avatar iamjboyd commented on May 20, 2024

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.

Gaelan avatar Gaelan commented on May 20, 2024

Thanks! However, I've done and pushed arabic.c through digraph.c, so those should be marked as pushed.

from neovim.

iamjboyd avatar iamjboyd commented on May 20, 2024

OK, I'll go ahead and update.

from neovim.

mtayler avatar mtayler commented on May 20, 2024

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.

Gaelan avatar Gaelan commented on May 20, 2024

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.

mtayler avatar mtayler commented on May 20, 2024

Sounds good to me. Not going to argue if it works, and makes much less work.

from neovim.

tarruda avatar tarruda commented on May 20, 2024

closed by #91

from neovim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.