Commit 31f1087
committed
Registry + parser fixes: fn-ptr disambiguation, namespace scope, shader overloads
Parser:
- looksLikeFunctionPointerDeclarator: (*name) only matches fn-ptr when
followed by ( or [ -- fixes shader(*ptr) being parsed as fn-ptr decl
- postfix++/-- normalized to prefix universally (Rule C)
- float literals get f suffix (Rule D)
- final keyword consumed, mapped to constexpr (Rule E)
CppBuild:
- User NamespaceDecl hoisted to preNs (before namespace Processing)
fixes std:: becoming Processing::std:: inside user namespaces
- fixColorTypes: skip single-letter and loop-counter variables
- E0007: warn on Processing API name collisions
- translate(0,0) no-op elimination (Problem 7.2)
Processing.h (engine):
- shader(PShader*) pointer overload
- texture(PImage*) pointer overload
- addChild(const PShape*) pointer overload
- PShader::set() double overloads (1-4 args)1 parent 50d52fb commit 31f1087
3 files changed
Lines changed: 24 additions & 1 deletion
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1066 | 1082 | | |
1067 | 1083 | | |
| 1084 | + | |
1068 | 1085 | | |
| 1086 | + | |
1069 | 1087 | | |
1070 | 1088 | | |
1071 | 1089 | | |
| |||
1250 | 1268 | | |
1251 | 1269 | | |
1252 | 1270 | | |
1253 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1254 | 1276 | | |
1255 | 1277 | | |
1256 | 1278 | | |
| |||
0 commit comments