Re: [Rpm-maint] [rpm-software-management/rpm] Refactor %__file_lineno management into an auxiliary macro (PR #2746)

2023-11-07 Thread Panu Matilainen
Merged #2746 into master.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2746#event-10883260238
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Refactor %__file_lineno management into an auxiliary macro (PR #2746)

2023-11-06 Thread Panu Matilainen
Now that we can, just define __file_lineno as an auxiliary macro that only does 
any work in the rare case where an error or warning occurred. This saves an 
enormous amount of huffing and puffing defining and undefining macros that are 
not used at all in the normal paths, on every rpm startup and spec parse.

Technically we could use a common macro function for both but as theyre in 
separate libraries, this doesnt seem worth the few lines of saving.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2746

-- Commit Summary --

  * Refactor %__file_lineno management into an auxiliary macro

-- File Changes --

M build/parseSpec.c (25)
M rpmio/macro.c (18)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2746.patch
https://github.com/rpm-software-management/rpm/pull/2746.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2746
You are receiving this because you are subscribed to this thread.

Message ID: rpm-software-management/rpm/pull/2...@github.com
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint