Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and CMake support #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Prince213
Copy link
Contributor

No description provided.

@aligrudi
Copy link
Owner

aligrudi commented Sep 20, 2021 via email

@Prince213
Copy link
Contributor Author

@aligrudi To be honest I don't like CMake either (weird syntax), but it has become some standard and really saves the hassle of maintaining build files for environments such as Visual Studio.

@Alhadis
Copy link

Alhadis commented Dec 11, 2021

@Prince213 Supporting two different build systems for the same project is unwise, IMHO. Any updates to Neatroff's Makefile will likely need to be reflected in CMakeLists.txt (and vice versa).

saves the hassle of maintaining build files for environments such as Visual Studio.

What exactly does that involve, just out of curiosity?

@polluks
Copy link

polluks commented Jul 14, 2023

I get these warnings:

cc -c -Wall -O2 "-DTROFFFDIR=\"/neatroff/font\"" "-DTROFFMDIR=\"/neatroff/tmac\"" dev.c
dev.c: In function 'dev_mnt':
dev.c:62:35: warning: '/dev' directive output may be truncated writing 4 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
   snprintf(path, sizeof(path), "%s/dev%s/%s", dev_dir, dev_dev, name);
                                   ^~~~
dev.c:62:3: note: 'snprintf' output 6 or more bytes (assuming 2052) into a destination of size 1024
   snprintf(path, sizeof(path), "%s/dev%s/%s", dev_dir, dev_dev, name);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -c -Wall -O2 "-DTROFFFDIR=\"/neatroff/font\"" "-DTROFFMDIR=\"/neatroff/tmac\"" reg.c
reg.c: In function 'num_str':
reg.c:114:21: warning: '%s' directive writing up to 1023 bytes into a region of size 128 [-Wformat-overflow=]
    sprintf(numbuf, "%s", directory(in_filename()));
                     ^~
reg.c:114:4: note: 'sprintf' output between 1 and 1024 bytes into a destination of size 128
    sprintf(numbuf, "%s", directory(in_filename()));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@polluks
Copy link

polluks commented Oct 23, 2023

By the way why are issues disabled for this repo?
https://www.reddit.com/r/groff/comments/qrfvkh/fractions_in_neatroff/?rdt=53160

@aligrudi
Copy link
Owner

aligrudi commented Nov 25, 2023 via email

@aligrudi
Copy link
Owner

aligrudi commented Nov 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants